Cant get routine to activate


#1

1) Give a description of the problem
Can’t get piston to execute routine when triggered

2) What is the expected behavior?
One lamps turn off the selected routine will activate

3) What is happening/not happening?
Routine isn’t activating

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

**5) Attach any logs


#2

Change your last line from

ALL switches PROGRAMATICALLY change to off

to

ANY switches change to off

The way it’s written now, both switches would have to change at the same time. And the programatically/physically doesn’t work in my experience and is best left out of the equation.


#3

Okay so I just tried that and it still seems to no be working. Let me post the logs


#4
2ms ╔Received event [lamp].switch = off with a delay of 951ms
+84ms ║RunTime Analysis CS > 20ms > PS > 42ms > PE > 22ms > CE
+87ms ║Runtime (38548 bytes) successfully initialized in 42ms (v0.3.104.20180323) (83ms)
+87ms ║╔Execution stage started
+99ms ║║Comparison (time) 80370028 is_after (time) 75600000 = true (4ms)
+100ms ║║Time restriction check passed
+101ms ║║Condition #5 evaluated true (8ms)
+102ms ║║Condition group #4 evaluated true (state did not change) (9ms)
+113ms ║║Comparison (enum) closed is (string) closed = true (1ms)
+115ms ║║Comparison (enum) closed is (string) closed = true (1ms)
+117ms ║║Condition #8 evaluated true (13ms)
+126ms ║║Condition #9 evaluated false (8ms)
+126ms ║║Condition group #1 evaluated false (state did not change) (34ms)
+128ms ║╚Execution stage complete. (41ms)
+129ms ╚Event processed successfully (129ms)

#5

You may want to change all of lights to any of lights… otherwise you would need to turn off both lights for it to work. From your description above, it sounds like you want it to activate if one is turned off.


#6

okay so it seems to work now but only if i turn off those lights through smartthings. they are hue lights i use with a dimmer switch. if i press off on the dimmer switch then it doesnt work. any idea why that might be?