Every one and then I have house keepers coming to clean the house. During this period I dont want automations regarding lighting to be active.
I have setup a boolean switch which I trigger manually when I know they will be arriving later that day that turns on all the lights. But when I leave home, that automation triggers all lights to be off.
How can I solve this? (Same will be true for when grandma babysits)
And also, how does home assistant handle multiple automations which may be conflicting? For example If i create two automations to trigger the same time, but one turns on the lights and one turns them off, which will win?
When you toggle your housekeeper boolean, you could have it trigger an automation that turns off all of your lighting automatons (homeassistant.turn_off) and then turns on all of the lights. Turning off the boolean would do the opposite.
I’m in the process of adding a ‘vacation mode’ to my setup.
Going through all my automations and pasting three lines doesn’t seem too much effort:
- condition: state
entity_id: 'input_boolean.ht_vacation_mode'
state: 'off'
I have to admit that I have only very few automations that have an ‘OR’ condition like @BVE’s second example.
But even in his first one, the ‘AND’ part could be skipped because conditions are considered to be ‘AND’ unless declared specifically as ‘OR’.
So, adding these lines in the existing automations (and the new ones) will future-proof my setup, i.e. I don’t have to add anything anywhere else later on when I create a new automation that might impact the vacation mode - or delete it so that it doesn’t blow up the vacation mode automation.