I made an automation “bedtime”: simply clicking on a dash button beside bed and:
-turn off lights
-shutdown pc
-upstrais climate off
…
I would like to add this:
“check if the upstair windows are open and, if yes, send me a notification”.
I saw a lot of automations checking doors and windows but all have a trigger and I don’t need it: I just need to check them!
I was thinking to create an input_boolean “bedtime_boolean” as a trigger to another “check windows” automation (of course “bedtime” has to put “bedtime_boolean” to on)
I am not sure if this is the correct way!
Plus: I would like to reuse “check windows” when I go away from home.
in the above action for one of my automations, the control of the light only happens between the assigned hours because there is a condition within the actions. You can put the status of the upstairs windows as that condition to determine if the notification is to be sent.