Fish Tank Light Piston based on location mode and/or time ON


#1

1) Give a description of the problem
If the light is on (due to location mode changing away from sleep but not away) and the second trigger at 10:00am happens the “stays on for 10 hours” trigger stops counting down, and sometimes the light turns off without either the time on or location mode trigger.

2) What is the expected behavior?
I want the light to come on when location mode leaves sleep (but not to away) or at 10:00 am (regardless of location mode). Then I want it to turn off after it’s been on for 10 hours or when location mode changes to sleep (whichever comes first).

3) What is happening/not happening?

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)

REMOVE BELOW AFTER READING


#2

I should also mention, that I have achieved my goal by creating two separate pistons (one to turn on and one for turn off) so I’m assuming the problem with the combined piston has something to do with task cancellation policy?