1) Give a description of the problem
I have a piston that turns on my closet light when the door opens and my automation switch is set to on. If the door closes it turns off the light. If the door stays open for X minutes it turns off the light.
If the light was turned off by the piston and I then turn it on with the switch while the door is open I want the light to turn off again after X minutes. I am not sure how to go about adding that piece to this piston or even if it needs to be its own piston.
2) What is the expected behavior?
3) What is happening/not happening?
**4) Post a Green Snapshot of the piston!
**5) Attach any logs (From [ST IDE]