rg65 Posted February 26 Posted February 26 I've come across a need for a program and can't figure out how to write the IF statement. We have a long driveway without a view to the garage door and we ALMOST always close it without thinking about it. I have a tilt sensor on a garage door that is obviously closed most of the time. I already have a timer that notifies me if it is left open, but I would like to know before we leave the house. I want to run a program on the transition from open to closed but there is no option in that device for "changes and becomes" to qualify the event. I'm sure there is a way, but I'm having no luck making it happen. Ultimately, I am going to flash the driveway lights at the street a couple of times so we have verification the door closed. Eisy - 5.8.0
gzahar Posted February 26 Posted February 26 2 hours ago, rg65 said: I've come across a need for a program and can't figure out how to write the IF statement. We have a long driveway without a view to the garage door and we ALMOST always close it without thinking about it. I have a tilt sensor on a garage door that is obviously closed most of the time. I already have a timer that notifies me if it is left open, but I would like to know before we leave the house. I want to run a program on the transition from open to closed but there is no option in that device for "changes and becomes" to qualify the event. I'm sure there is a way, but I'm having no luck making it happen. Ultimately, I am going to flash the driveway lights at the street a couple of times so we have verification the door closed. Eisy - 5.8.0 IF device = closed THEN flash lights This will run whenever the device transitions to closed. There is no need to qualify it any more. It will not run [THEN] again until the devices changes to something else and back to closed. (It will run ELSE statements whenever it leaves the closed state) You may want to add a several seconds WAIT before the flash lights depending on the device. This will de-bounce any open/close back and forth states during the transition that may start your flash routine several times.
rg65 Posted February 26 Author Posted February 26 Well-I was overthinking it......ALOT. Thank you! I will try it!
Recommended Posts