Auto shutoff lights after 10


#1

1) Give a description of the problem
Want a piston to shutoff some of my lights after they’ve been on for 10 minutes

2) What is the expected behaviour?
10 minutes after lights are turned on they shut off

3) What is happening/not happening?
Not working reliably. Added push notifications to test and am not receiving the 2nd msg at all and sometimes I get the first message when the light turns off.

**4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)


#2

Patio lights and downstairs bathroom lights the first push works and shuts the lights off but I never get the second push. The lights shut off and I get the first push again. These are switches.

Master Closet and pantry lights I get the first push and they shut off and no second push. These are dimmers.


#3

Wheres the piston that shutoff the lights?


#4

Hmm… Whatcha mean? Just the turn off action after the 2nd PUSH notification.

So if I turn on any of those lights (physically or digitally) this piston should run and shut them back off after 10 seconds (will be 10 minutes)


#5

Try this.

IF Any of Light1, Light2, Light3 stays on for 10 minutes
Then turn off
END IF


#6

Ohhh. Thanks I’ll try that one. Thank you :grin:


#7

The second send push notification does not have “store in messages” enabled.


#8

Sorry. Too lazy reading to the finish line


#9

@travsav, did our suggestions help you?


#10

Yes your code worked perfectly thank you! Sorry I marked your post as the solution. Thanks again :grin: