I'm wondering if there is an app that can do the following:
If all of the doors and windows in that same group are closed, turn off the light
If any door or window in a group of doors and windows are open, turn on a light
Turn the light on again if any of the doors or windows re-open
Restrict to between 10PM and 2AM
Monitorng a set of contact sensors in all or nothing mode (all open or all closed) is pretty standard, but I haven't found an app that monitors whether any one door or window of a set of doors and windows is open or closed. Not whether a specific door or window is open, but if any of them is.
Yeah, Groups and Scenes asks for bulbs, dimmers, and switches. I haven't done any mirroring before, but so seems like I'd have to create a lot of virtual bulbs w/bulb on=contact open.
It is working, light came on. Just needed a few minutes to start checking the contacts and report back. Happy. Next step, since I swant to learn Node Red is to replicate this there...[eek]
Thanks very much for your suggestion, I hadn't noticed the "Wait" option in RM before.
That seems to want to run at a specific time...I need something that watches the doors/windows during a specified time. I'm going to look into using it in my other goodnight routine, though.
I noticed one issue...I'd like the light to turn off even if doors/windows are open, after the monitoring period. So after 2AM even if we've gone to bed, turn off the light.
Added the final action below to turn off the light when the IF/Then is exited, that seemed to work.
Thanks...it seemed to work, but given your comment, I realize I need to watch at the moment the period ends to confirm it worked as expected. I'll do a little more testing w/a time-frame not at 2AM and confirm, and then write a second off rule.
Just did a quick test, and it does seem to work w/the code as I posted.
Set it up to run from 12:25 - 12:27. Turned on at 12:25 (doors/windows are open) and didn't turn off until 12:28, almost 12:29. So it didn't seem to just run through and turn the light off right away, it sat and waited until the time period was over, and then turned off. At least that's how it looks to me.