I’ve created this piston to close my garage door after sunset and if I open the garage door at night then in 15 min it should close again.
My question is what if I’m not home and something prevents the door from closing all the way. The door will cycle every 15 min nonstop till midnight.
Is there a way to maybe only try to close the door 3 times
or
if anyone has any other sugestions
Thanks
Garage door caught in loop
Thanks
It does not seem to work until I click on test.
As you can see in the log I clicked on test at 8:10 now its going to close at 8:33 not sure y
Thanks orangebucket
So if the door attempts to close but hits something and does not close the contact the piston will not run again until I hit test in within webcore and the piston
Gord
Pistons are event handlers. They subscribe to device events or schedule time events and run when one occurs to see what they have to do. The little lightning strike icon you can see next to line number 18 indicates that the piston is subscribing to the events that will affect how that line is evaluated, which means the events for the contact
attribute of ‘Contact Sensor 4’. Any time a contact event is received the piston is executed.
By default there would also be timer events at sunset and 11:59PM but you seem to have disabled those. So yes, the only thing that will make your piston run automatically is the contact opening or closing. In this context, ‘automatically’ means in response to events it sets up by itself.
The piston will also run ‘manually’ in response to the Test button, being called by the external URL, being executed by other pistons, and in response to recovery events if something goes wrong with the wait timer.