Simple porch light piston


#1

1) Give a description of the problem
Porch light not turning off after 30 seconds

2) What is the expected behavior?
I would like when I arrive home to turn the porch light on between the designated times and stay on until I open the front door, which it would then turn off after 30 seconds

3) What is happening/not happening?
Porch light fails to turn off

**4) Post a Green Snapshot of the piston

I’m new to webcore; however, I’ve created some complex (complex to me haha) pistons and figured this one would be easy. But I’m not sure what I’m missing in having it turn off after the set time when I open the door.


#2

@Jmoyer90

I would write the piston slightly different.

for the turn OFF part, if I understand corretly you want light to be OFF after your close the door. (if you are opening the door I assume you will close the door??)

IF Contact sensor 1 contact changes to CLOSED
and
IF light bulb 1 is ON
Then
With lightbulb 1 (never cancel task)
Wait 30 seconds
Turn OFF

please let mw know if I misunderstand your needs.
Maybe I can help?