What I would like to achieve is to have a switch on my front end which allows me to deactivate all automations at once. I know that I can simply add a single automation to the front end and it should appear as switch (and possibly group.all_automations
as well). But what I try to achieve is an inverse switch, once the switch is on, the automations should be off.
I tried the following which works in terms of correctly showing the state of group.all_automations
but I cannot interact with it: Once I switch it on, it quickly goes back to the off state.
switch:
- platform: template
switches:
all_automations:
friendly_name: Disable automation
value_template: "{{ is_state('group.all_automations', 'off') }}"
turn_on:
entity_id: group.all_automations
service: homeassistant.turn_on
turn_off:
entity_id: group.all_automations
service: homeassistant.turn_off
Any inputs on what I am doing wrong?