Is there an option to set the visibility of an entity via an automation so that it is included or excluded from the default dashboard?
Example: My heating setup is not needed during the Summer season, and I’m switching a lot of devices off. Result → my default dashboard is polluted with a lot of unavailable statuses.
For your example, make the visibility dependant on the season sensor.
No automation required.
But yes you can turn on (or off) input booleans that entire dashboard visibilities depends upon.
Thank you for the season example.
Can you share an example how exactly to turn on or off the visibility?
Actually, I just found that spook offers the hide/unhide entity service call, so I’ll probably go that way. A pity there are no native services tho.
To completely close my own topic, here’s a script that does the job for me.
sequence:
- variables:
entities: '{{ label_entities("central_heating") }}'
- condition: template
value_template: '{{ entities | length > 0 }}'
- action: homeassistant.hide_entity
data:
entity_id: '{{ entities }}'
alias: hide_central_heating_entities
description: >-
the script calls the spook action hide_entity for all entities with the label
'central_heating'. Used to tidy-up automatic dashboards.
icon: mdi:heating-coil