using:
cards:
- type: map
entities: []
geo_location_sources:
- wwlln
title: Lightning Strikes
default_zoom: 6
results in a map with lightning strikes. However, if no strikes are available, it still shows the, albeit empty, map. Can we somehow use a condition for the map to only show if the entities exist?
I’ve tried the conditional card, but think we can only use verbose conditional entities, and not use something like:
type: conditional
conditions:
- entity_id: '*.lightning_strike*'
like we can do with the monster card:
card:
type: custom:monster-card
show_empty: false
card:
type: entities
show_header_toggle: false
title: Lightning strikes
filter:
include:
# - entity_id: '*.lightning_strike*'
- attributes:
source: 'wwlln'
testing this for now:
type: custom:monster-card
show_empty: false
card:
type: map
show_header_toggle: false
title: Lightning strikes monster map
filter:
include:
# - entity_id: '*.lightning_strike*'
- attributes:
source: 'wwlln'
any help is appreciated, thanks!