Closed KeithSBB closed 5 days ago
I suspect the event does not have a name. Will add a fallback.
Unfortunately I cannot view the URL (likely geo-restricted). Can you share your config?
First of all, thanks for creating and supporting this very cool custom card. there was a typo in the URL which I fixed, try to see if you can go there now.
Here's my ha_map-card yaml:
type: custom:auto-entities
filter:
include:
- entity_id: geo_location.geo_json_events_*
options:
display: icon
size: 6
color: yellow
- entity_id: zone.home
options:
size: 32
exclude: []
card:
type: custom:map-card
theme_mode: auto
title: Fire Incidents
debug: true
focus_entity: zone.home
zoom: 8
card_size: 9
cards: []
title: Fire
Update: I manually named one of these GeoJson entities and it then shows up on the map. the problem is that the default name is terrible. The issue seems to be with the GeoJson integration as it looks for a "title" attribute in the feed properties, but this feed sets that as "name". There's a generalized GeoJson: https://github.com/Fusion/python-aio-geojson-query/tree/master/examples/homeassistant but it hasn't been updated in 4 years and seems difficult to use. Really need a good GeoJson feed to entity creation integration that supports mappings to custom attributes....
I'm using GeoJson to read fire incidents from https://www.fire.ca.gov/umbraco/api/IncidentApi/GeoJsonList?inactive=false&yer=2024 (x,y) which creates entities that work in the default HA map. When I add them to ha-map-card I encountered the following error when ha-map-card tries to read these entities:
`geo_location.geo_json_events_01j3ttrjwj15wm6wmyjs7hfw0e_5523279784558815805 skipped due to missing data TypeError: Cannot read properties of undefined (reading 'length')