1) Give a description of the problem
Sorry if this has been asked before, but I can’t find it. Whenever I let my dog out at night, I want the backyard lights to turn on. I want the lights to turn off when I open the door open again to let him back in. To complicate matters, I want the piston to ignore the command if a virtual switch (Backyard Time) is turned on.
2) What is the expected behavior?
If between sunset and sunrise and kitchen sliding door changes to open, turn on backyard lights.
If between sunset and sunrise and kitchen sliding door door changes to open again, turn off backyard lights.
Ignore all if Backyard Time is on
3) What is happening/not happening?
I can’t figure figure out how to execute the “off” action. I don’t think I can tie both “on” and “off” to “open”. And if I tie “off” to “close”, the lights will turn off the first time I close the door. I haven’t bothered to add the time of day restriction until I solve for on/off action.
4) Post a Green Snapshot of the piston