RGBW light does not turn off when zwave light turns on


#1

1) Give a description of the problem
The RGBW light does not turn off when Den Light is on

2) What is the expected behavior?
If Den light is off, turn off the RGBW light

3) What is happening/not happening?
The RGBW light doesn’t turn off. When I add an else or separate If Den light is on, turn off the Den light turns on then off in several seconds (so I removed that from this piston). Also, I am aware of the error from the Den Wemo switch since it cannot do any of the items the RGB light can do.

**4) Post a Green Snapshot of the piston![image|45x37]

**5) Attach any logs (From [ST IDE](

17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: info ╔ Event processed successfully (222ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: trace ║╔ Execution stage complete. (23ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: debug ║║ Condition group #42 evaluated false (state changed) (15ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: debug ║║ Cancelling condition #42’s schedules…
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: debug ║║ Condition #56 evaluated false (7ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: debug ║║ Cancelling condition #56’s schedules…
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: debug ║║ Comparison (enum) on is (string) off = false (2ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: debug ║║ Condition #55 evaluated true (5ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: debug ║║ Comparison (string) :4dcfa685fe0566181eb907bbf4f82d27: is (string) :4dcfa685fe0566181eb907bbf4f82d27: = true (2ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: trace ║╚ Execution stage started
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: trace ║ Runtime (44242 bytes) successfully initialized in 76ms (v0.2.102.20180116) (195ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: debug ║ RunTime Analysis CS > 17ms > PS > 76ms > PE > 102ms > CE
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:34 PM: info ╚ Received event [Light - Den Ceiling Fan Light Z-Wave Switch].switch = on with a delay of 2012ms
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: info ╔ Event processed successfully (237ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: info ║ Setting up scheduled job for Sun, Feb 11 2018 @ 10:14:26 PM MST (in 19.994s)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: trace ║╔ Execution stage complete. (40ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: trace ║║ Requesting a wake up for Sun, Feb 11 2018 @ 10:14:26 PM MST (in 20.0s)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: trace ║║ Executed virtual command [Den WeMo Switch, Light - Den SYLVANIA Smart Flex RGBW].wait (1ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: trace ║║ Executed [Light - Den SYLVANIA Smart Flex RGBW].setLevel (10ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: debug ║║ Executed physical command [Light - Den SYLVANIA Smart Flex RGBW].setLevel([90]) (8ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: trace ║╚ Execution stage started
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: trace ║ Runtime (44220 bytes) successfully initialized in 73ms (v0.2.102.20180116) (185ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: debug ║ RunTime Analysis CS > 16ms > PS > 73ms > PE > 95ms > CE
17539964-47de-4dbd-96a7-f3d27db352ce 10:14:06 PM: info ╚ Received event [Casa de Pines].time = 1518412447039 with a delay of -850ms
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: info ╔ Event processed successfully (250ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: info ║ Setting up scheduled job for Sun, Feb 11 2018 @ 10:14:07 PM MST (in 62.532s)
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: trace ║╔ Execution stage complete. (48ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: trace ║║ Requesting a wake up for Sun, Feb 11 2018 @ 10:14:07 PM MST (in 62.538s)
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: trace ║║ Executed virtual command [Den WeMo Switch, Light - Den SYLVANIA Smart Flex RGBW].waitRandom (0ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: trace ║║ Executed [Light - Den SYLVANIA Smart Flex RGBW].setSaturation (16ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: debug ║║ Executed physical command [Light - Den SYLVANIA Smart Flex RGBW].setSaturation([69]) (7ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: trace ║╚ Execution stage started
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: trace ║ Runtime (44220 bytes) successfully initialized in 78ms (v0.2.102.20180116) (192ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: debug ║ RunTime Analysis CS > 17ms > PS > 78ms > PE > 96ms > CE
17539964-47de-4dbd-96a7-f3d27db352ce 10:13:04 PM: info ╚ Received event [Casa de Pines].time = 1518412384374 with a delay of -110ms
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: trace ║╔ Execution stage complete. (647ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: debug ║║ Executed physical command [Light - Den SYLVANIA Smart Flex RGBW].setLevel([13], [delay: 10099]) (43ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: error ║║ Error while executing physical command Den WeMo Switch.setLevel([13]): java.lang.IllegalArgumentException: Command ‘setLevel’ is not supported by device a7de0a38-be39-4b39-b67c-5531eafdfb2a of type ‘Wemo Switch’. Supported commands: [on, off, poll, refresh, subscribe, resubscribe, unsubscribe, setOffline] @line 1724 (executePhysicalCommand)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: error ║║ Error while executing physical command Den WeMo Switch.setLevel([8]): java.lang.IllegalArgumentException: Command ‘setLevel’ is not supported by device a7de0a38-be39-4b39-b67c-5531eafdfb2a of type ‘Wemo Switch’. Supported commands: [on, off, poll, refresh, subscribe, resubscribe, unsubscribe, setOffline] @line 1724 (executePhysicalCommand)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: trace ║║ Executed virtual command [Den WeMo Switch].fadeLevel (34ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: error ║║ Error while executing physical command Den WeMo Switch.setLevel([7]): java.lang.IllegalArgumentException: Command ‘setLevel’ is not supported by device a7de0a38-be39-4b39-b67c-5531eafdfb2a of type ‘Wemo Switch’. Supported commands: [on, off, poll, refresh, subscribe, resubscribe, unsubscribe, setOffline] @line 1724 (executePhysicalCommand)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: error ║║ Error while executing physical command Den WeMo Switch.setLevel([4]): java.lang.IllegalArgumentException: Command ‘setLevel’ is not supported by device a7de0a38-be39-4b39-b67c-5531eafdfb2a of type ‘Wemo Switch’. Supported commands: [on, off, poll, refresh, subscribe, resubscribe, unsubscribe, setOffline] @line 1724 (executePhysicalCommand)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: trace ║║ Executed virtual command [Light - Den SYLVANIA Smart Flex RGBW].adjustHue (11ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: error ║║ Error while executing physical command Den WeMo Switch.setLevel([3]): java.lang.IllegalArgumentException: Command ‘setLevel’ is not supported by device a7de0a38-be39-4b39-b67c-5531eafdfb2a of type ‘Wemo Switch’. Supported commands: [on, off, poll, refresh, subscribe, resubscribe, unsubscribe, setOffline] @line 1724 (executePhysicalCommand)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: error ║║ Error while executing physical command Den WeMo Switch.setHue([51]): java.lang.IllegalArgumentException: Command ‘setHue’ is not supported by device a7de0a38-be39-4b39-b67c-5531eafdfb2a of type ‘Wemo Switch’. Supported commands: [on, off, poll, refresh, subscribe, resubscribe, unsubscribe, setOffline] @line 1727 (executePhysicalCommand)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: debug ║║ Executed physical command [Light - Den SYLVANIA Smart Flex RGBW].setColor([[hex:#01FEE9, hue:49, saturation:99, level:50]]) (8ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: trace ║║ Executed [Light - Den SYLVANIA Smart Flex RGBW].setColor (10ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: trace ║║ Executed [Light - Den SYLVANIA Smart Flex RGBW].setColor (7ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: trace ║║ Executed [Den WeMo Switch].on (36ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Cancelling statement #44’s schedules…
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: debug ║║ Executed physical command [Light - Den SYLVANIA Smart Flex RGBW].setHue([51]) (6ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Executed physical command [Den WeMo Switch].on() (34ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: debug ║║ Executed physical command [Light - Den SYLVANIA Smart Flex RGBW].setColor([[hex:#EE82EE, hue:83, saturation:76, level:72]]) (5ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:54 PM: trace ║║ Executed virtual command [Den WeMo Switch].adjustHue (6ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Cancelling condition #42’s schedules…
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Skipped execution of physical command [Light - Den SYLVANIA Smart Flex RGBW].on([]) because it would make no change to the device. (3ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Condition group #42 evaluated true (state changed) (14ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: trace ║║ Executed [Light - Den SYLVANIA Smart Flex RGBW].on (4ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Condition group #42 evaluated true (state did not change) (0ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Condition #56 evaluated true (6ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Cancelling condition #56’s schedules…
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Comparison (enum) off is (string) off = true (2ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Comparison (string) :4dcfa685fe0566181eb907bbf4f82d27: is (string) :4dcfa685fe0566181eb907bbf4f82d27: = true (2ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║║ Condition #55 evaluated true (4ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: trace ║╚ Execution stage started
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: trace ║ Runtime (44242 bytes) successfully initialized in 72ms (v0.2.102.20180116) (182ms)
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: debug ║ RunTime Analysis CS > 16ms > PS > 72ms > PE > 93ms > CE
17539964-47de-4dbd-96a7-f3d27db352ce 10:12:53 PM: info ╚ Received event [Light - Den Ceiling Fan Light Z-Wave Switch].switch = off with a delay of 499ms


#2

The first half of your piston has two restrictions but nothing in the ‘IF’ statement so it has no triggers.


#3

Would it make more sense for me to move the if switch is off from the top restriction into the if statement? Additionally on the else statement I do have a trigger but that one is not working at all. Is that because I don’t have the initial if trigger on the top part of my piston?


#4

Correct… the else won’t apply until an initial condition is set to achieve the else.


#5

Or to state it another way, the piston as currently written will ONLY work if the switch is off. If the switch is on, it never even checks the conditions of the If-Then-Else statements. It sees line 26 is false so it stops right there.


#6

So the reason I removed the trigger from the IF was because in this version (below) when I turn off the light (the else statement) the RGBW light does not turn off.


#7

You need to turn on switch 29 to trigger the else (not off)


#8

Line 48 says if switch 29 switches changes to on.


#9

I get that, but you have a trigger inside a trigger which will always cause issues.

IF switch changes to Off (trigger 1)
THEN

ELSE
IF switch changes to On (trigger 2)

Both triggers cannot occur at the exact same time so the last part of your piston cannot fire.

Try:

IF switch 29 IS on
THEN

ELSE


#10

I was finally able to get it to work. I needed to use the stays for x amount of time for the RGBW light to turn off when theswtich turns on.