Iv’e been trying to get this to work for a while now with all kind of different approaches, but I just can’t seem to be able to get it right. Maybe somebody else has had more success.
Basically, I’m trying to have all automation switches hidden, but to show them when I need to turn one automations on or off.
I have entered this in the customize.yaml:
group.all_automations:
hidden: false
My configuration.yaml has this entry:
input_boolean:
all_automations_visible:
name: Show All Automations
initial: off
icon: mdi:door
In my groups.yaml I have an entry that displays groups.all_automations in one of my views as well as the switch for the input_boolean.
My automations are set up as like this:
######################################################################
# Turn Visibility of All Automations OFF at HA Start
######################################################################
- alias: Hide All Automations at start
trigger:
platform: homeassistant
event: start
action:
service: group.set_visibility
entity_id: group.all_automations
data:
visible: False
######################################################################
# Show All Automations only when activated
######################################################################
- alias: Visibility All Automations On
trigger:
platform: state
entity_id: input_boolean.all_automations_visible
to: 'on'
action:
service: group.set_visibility
entity_id: group.all_automations
data:
visible: True
######################################################################
- alias: Visibility All Automations Off
trigger:
platform: state
entity_id: input_boolean.all_automations_visible
to: 'off'
action:
service: group.set_visibility
entity_id: group.all_automations
data:
visible: False
######################################################################
When I do a re-start all automations are displayed despite the first automation.
And I can’t hide them manually either by flicking the input_boolean.
If I create a group that has a number of automations in it and name it anything other than all_automations it seems to work.
But this means that I have to manually keep the group up to date whenever I create a new automation or delete an old one rather than being able to rely on the system putting it into the group.
I have also tried to put the all_automations group into a separate view but it looks like views don’t have a hidden: false/true property.
Any ideas?