I have a piston that notifies me if a door or window has been left open for longer than 60 minutes or if the heat/AC is on and the door is open. It’s working as expected but I think I’m getting some duplicate devices in my notifications as devices are not being removed from the variable I’m storing open devices in after they switch to closed. I’m having a really hard time wrapping my head around how to tackle this one. Should I use a for each device loop and write each device that is still open back to the device list? I’m assuming if that’s the best way, I would use some sort of argument or expression to append the list for each time the loop is ran? Not sure how to proceed here and looking for some opinions.
Removing single device from device list variable
eibyer
#2
Without trying it… why not just add another IF that structured like…
If any of sensors change to closed
Set variable sensor = sensor - $currentEventDevice (enter as an Expression)
madj42
#3
I just realized I never came back and said thank you. It was an easy option that I overlooked. Thank you.