I’m new to writing apps for SmartThings. I’m trying to detect if a contact sensor was in an open state within a specified timeframe. The code below isn’t working reliably. If the log trace shows recent events, doorWasOpen is still false. The code is mostly copied from and modified from “It’s Too Cold”. Can someone explain the use of the {it.value == “”}
Thanks
You realize this post is over 3 years old right? Mike is one of the founders of Hubitat and for obvious reasons pulled all his code. Search Google for “github zoneMotionChild” and maybe you will find it .