I wondered the following. When I go on vacation, it is helpful if certain lights don’t turn on and scripts aren’t running. Now I want to do this with conditional data.
You can put an on and off button in lovelance, and if you want to run a script check whether this value is off or on (and therefore perform an action or not).
I’m using this logic, but it needs to be integrated from the begining.
First of all, I have a “somebody home” boolean. It’s a bayesian binary sensor, but could be an input boolean depending on the rules you’ll make.
Then HA is connected to my calendar. Again, it’s a local Davical (caldav) server, but can work with anything (google…)
And last, there is a “holiday” input boolean. It’s turned on by automation, starting when there’s a keyword in the calendar or there’s an official day off and there’s nobody home for 12 hours.
It turns off when somebody coming home is detected.
But holiday mode is mostly used for alarm that acts differently, sending an SMS when motion is detected inside. Also turning off several plugs (like washing machine, dish washer, TV box…)
Central heater has different target temperatures, higher when somebody’s home, lowest (7°) during holidays.
Most of the rules depend on somebody home sensor : lights start only when it’s true, zoneminder goes in modect when away even short…