Trying to wrap my head around this, going to explain the situation at hand first.
My wife likes to go to bed early, and we usually set the house security alarm when she’s going to bed at around 9 pm, via triggering a goodnight input boolean that does a bunch of things in homeassistant. I am a night owl, and will be doing all kinds of things during the night. I sometimes disarm the alarm to go outside for some random thing. I don’t always remember to arm it. My wife does not like this.
I am thinking about setting an alarm that can remind me at various points of my bedtime routine if I forgot to reset the alarm. I’ve got inovelli red dimmers and a door sensor in my bedroom, and lights and a/c that I usually (might also need a reminder for this) turn off before I go to bed.
Basically what I’m trying to set up is:
After goodnight has been called, if the alarm goes to disarmed, then monitor that my office lights and AC is on, that my phone is connected to ubiquiti AP’s not in my bedroom (already monitor this via the unifi integration). If office lights and AC turn to off, and the master bedroom door opens and closes (which means I entered my bedroom and closed the door), and my iphone has hooked up to be charged, and the alarm has not been re-set, then flash inovelli dimmer led notifications with red pulses (already have this last part down with a blueprint/script)
I know how to make automations and how to make node-red flows, but I’m kinda stuck on how I can be continously monitoring all these conditions, only after goodnight has been called… any ideas?
if you are going to bed which of those is going to be the last thing that you do?
I would assume that the phone on the charger is the last thing that would happen.
if assumption is true then make that as your trigger to start the automation and use the others as conditions (office lights off, AC off, alarm not set). I don’t think I would care about the door open/close sequence because if you already have the other stuff off and your phone is charging then the door open/closed could be implied.
I think @finity is right, focus on the one or two final actions as possible triggers and make the rest conditions.
Assuming most of the outdoor excursions are short (take the trash out, walk the dog, etc), I’d probably just have a method to turn off temporarily for a desired limit and automatically re-arm.
Yeah they usually are short excursions but my alarm also has outdoor sensors, so wouldn’t want it to arm before I’m back and have it catch me outside. I could just disarm it but if a sensor triggers while I’m outside the alarm would sound, which would be the worst possible outcome for my wellbeing.