My goal was to create a switch that indicate a certain mode to be active.
So far I have created a switch for this, combined with hass variables https://github.com/rogro82/hass-variables. The switch is defined initially off, so when I switch it on, I would expect it to be on until it is switched off again. The hass variable should make it persistent over restart as well. However, When I switch this on, it will magically switch off again within 10-15 minutes…
How is that possible and what can I do to avoid that?
Not passing an entity ID to a service to target all entities is deprecated.
Update your call to switch.turn_off to be instead: entity_id: all
I do have an automation that refers to a group like the one below, Works fine, but maybe the group switch does something that has become depricated, and therefore now also switches my template switch?