GeoJSON
The GeoJSON integration lets you ingest events from GeoJSON feeds. It retrieves events from a feed and shows information of those events filtered by distance to Home Assistant’s location.
All entries in the GeoJSON feed must define a geometry
which typically is a point or polygon with geo coordinates. In addition, this platform will look for a title
key in the entry’s properties
and use that as the entity’s name.
Entities are generated, updated and removed automatically with each update from the GeoJSON feed. Each entity defines latitude and longitude and will be shown on the map automatically. The distance in kilometers is available as the state of each entity.
The data is updated every 5 minutes.
配置
要将 GeoJSON service 添加到您的 Home Assistant 实例中,请使用此 My 按钮:
手动配置步骤
如果上述 My 按钮不起作用,您也可以手动执行以下步骤:
-
浏览到您的 Home Assistant 实例。
-
转到
设置 > 设备与服务。 -
在右下角,选择
Add Integration 按钮。 -
从列表中选择 GeoJSON。
-
按照屏幕上的说明完成设置。
State attributes
The following state attributes are available for each entity in addition to the standard ones:
Attribute | Description |
---|---|
latitude | Latitude of the event. |
longitude | Longitude of the event. |
source |
geo_json_events to be used in conjunction with geo_location automation trigger. |
external_id | The external ID used in the feed to identify the event in the feed. |