Hello.
I often have friends and family staying with us and I’d like to have an override switch on my dashboard to disable a large number of my automations (i.e. stop the Roomba from starting, or lights automatically turning on in areas of the house, etc).
I’m very much a newbie to Home Assistant (but am a coder, so can get my hands dirty) so wasn’t sure how to approach something like this?
Right - so whenever you add a new automation to the group, it’ll just have that rule applied within HA.
That’s neat, considering you don’t need to touch any code
Don’t turn on/off automations as a normal means of controlling when they should or shouldn’t be operational. In other words, when you need a “mode”, where some automations are enabled and others disabled, use an input_boolean in the automation’s condition (as suggested by others).
Why? Because it provides better flexibility and control. You get two ways to control an automation’s execution and each one represents a different reason. The input_boolean is used for modal control (a car’s transmission or brakes) and the other when it should be rendered inoperative (a car’s ignition switch).
Create a card listing all of your automations, include “show_header_toggle: true” and this will give you a card showing the status of each automation (on/off) and a single switch at the top to turn them all on or off. (You can individually toggle each automation also).
Ok, but I believe this one is controlling the button you want to use to disable other automations, is that right? In this case, I would need one of those automations which would be disabled so I can show you how to change those.
Can you share one of the automations or blueprints you want disabled? Or this is not what you are trying to achieve?
Not exactly, I woul like to add a condition to this blueprint so that the butoon would not allow the action to run.
Example: This blueprint is linked to an Aqara mini zignbee switch, that whem pressed opens the garage door. Thios button is mounted in my car, and when my car can not be parked in my garage for instance when my wife’s EV needs to be charged, then I would like my Aqara button not to allow to open the garage door