Problems saving states with Lifx Bulbs


#1

1) Give a description of the problem
Save State is not working on lifx bulb

2) What is the expected behavior?
after the set action I would like the lights to return to the state they were in before the piston fired.

3) What is happening/not happening?
if the lights were off when it started, the turn back off. If they were on and say yellow. They stay red (the last color of the piston action)

4) Post a Green Snapshot of the pistonimage
image

5) Attach any logs (From ST IDE and by turning logging level to Full)
(2/4/2018, 1:30:36 PM +290ms
+1ms ╔Received event [Arlo Pro1].motion = inactive with a delay of 68ms
+93ms ║RunTime Analysis CS > 15ms > PS > 43ms > PE > 35ms > CE
+95ms ║Runtime (39857 bytes) successfully initialized in 43ms (v0.2.102.20180116) (93ms)
+96ms ║╔Execution stage started
+108ms ║║Comparison (enum) inactive is (string) active = false (2ms)
+110ms ║║Cancelling condition #20’s schedules…
+111ms ║║Condition #20 evaluated false (8ms)
+112ms ║║Cancelling condition #1’s schedules…
+113ms ║║Condition group #1 evaluated false (state changed) (10ms)
+120ms ║║Comparison (enum) inactive is (string) inactive = true (2ms)
+122ms ║║Condition #19 evaluated true (7ms)
+123ms ║║Condition group #2 evaluated true (state did not change) (8ms)
+125ms ║║Cancelling statement #9’s schedules…
+283ms ║║Executed physical command [Speaker].stop() (154ms)
+284ms ║║Executed [Speaker].stop (156ms)
+287ms ║║Cancelling statement #12’s schedules…
+307ms ║║Restoring attribute ‘color’ to value ’ #FF0000’ using command setColor( #FF0000)
+338ms ║║Executed physical command [LIFX Bulb 1].setColor([ #FF0000]) (30ms)
+339ms ║║Executed virtual command [LIFX Bulb 1].loadStateLocally (43ms)
+353ms ║║Restoring attribute ‘color’ to value ’ #FF0000’ using command setColor( #FF0000)
+380ms ║║Executed physical command [LIFX Bulb 2].setColor([ #FF0000]) (25ms)
+381ms ║║Executed virtual command [LIFX Bulb 2].loadStateLocally (40ms)
+385ms ║║Executed virtual command [LIFX Bulb 1, LIFX Bulb 2].wait (1ms)
+391ms ║║Waiting for 1000ms
+1412ms ║║Restoring attribute ‘level’ to value ‘20’ using command setLevel(20)
+2204ms ║║Executed physical command [LIFX Bulb 1].setLevel([20]) (791ms)
+2205ms ║║Executed virtual command [LIFX Bulb 1].loadStateLocally (805ms)
+2218ms ║║Restoring attribute ‘level’ to value ‘20’ using command setLevel(20)
+2825ms ║║Executed physical command [LIFX Bulb 2].setLevel([20]) (606ms)
+2826ms ║║Executed virtual command [LIFX Bulb 2].loadStateLocally (620ms)
+2831ms ║║Executed virtual command [LIFX Bulb 1, LIFX Bulb 2].wait (1ms)
+2832ms ║║Waiting for 1000ms
+3842ms ║║Restoring attribute ‘switch’ to value ‘on’ using command on()
+3845ms ║║Skipped execution of physical command [LIFX Bulb 1].on([]) because it would make no change to the device. (2ms)
+3846ms ║║Executed virtual command [LIFX Bulb 1].loadStateLocally (8ms)
+3851ms ║║Restoring attribute ‘switch’ to value ‘on’ using command on()
+3855ms ║║Skipped execution of physical command [LIFX Bulb 2].on([]) because it would make no change to the device. (2ms)
+3855ms ║║Executed virtual command [LIFX Bulb 2].loadStateLocally (8ms)
+3859ms ║╚Execution stage complete. (3763ms)
+3861ms ╚Event processed successfully (3860ms)
2/4/2018, 1:30:06 PM +569ms
+1ms ╔Received event [Arlo Pro1].motion = active with a delay of 52ms
+100ms ║RunTime Analysis CS > 14ms > PS > 41ms > PE > 45ms > CE
+102ms ║Runtime (39575 bytes) successfully initialized in 41ms (v0.2.102.20180116) (100ms)
+104ms ║╔Execution stage started
+116ms ║║Comparison (enum) active is (string) active = true (2ms)
+117ms ║║Cancelling condition #20’s schedules…
+118ms ║║Condition #20 evaluated true (8ms)
+119ms ║║Cancelling condition #1’s schedules…
+120ms ║║Condition group #1 evaluated true (state changed) (10ms)
+123ms ║║Cancelling statement #3’s schedules…
+129ms ║║Executed virtual command [Speaker].wait (1ms)
+130ms ║║Waiting for 1000ms
+1251ms ║║Executed physical command [Speaker].play() (118ms)
+1252ms ║║Executed [Speaker].play (120ms)
+1255ms ║║Cancelling statement #14’s schedules…
+1271ms ║║Executed virtual command [LIFX Bulb 1].saveStateLocally (8ms)
+1281ms ║║Executed virtual command [LIFX Bulb 2].saveStateLocally (8ms)
+1286ms ║║Executed virtual command [LIFX Bulb 1, LIFX Bulb 2].wait (0ms)
+1286ms ║║Waiting for 2000ms
+4287ms ║║Executed physical command [LIFX Bulb 1].setLevel([50]) (779ms)
+4288ms ║║Executed [LIFX Bulb 1].setLevel (780ms)
+4979ms ║║Executed physical command [LIFX Bulb 2].setLevel([50]) (689ms)
+4979ms ║║Executed [LIFX Bulb 2].setLevel (690ms)
+5663ms ║║Executed physical command [LIFX Bulb 1].setColor([[hex: #FF0000, hue:0, saturation:100, level:50]]) (679ms)
+5664ms ║║Executed [LIFX Bulb 1].setColor (681ms)
+6314ms ║║Executed physical command [LIFX Bulb 2].setColor([[hex: #FF0000, hue:0, saturation:100, level:50]]) (648ms)
+6315ms ║║Executed [LIFX Bulb 2].setColor (651ms)
+6318ms ║╚Execution stage complete. (6215ms)
+6319ms ╚Event processed successfully (6319ms))

I posted on smartthings and was directed here. So i am trying my luck here. I am new to webcore.


#2

Have you tried just color and switch (without level)?

Or try Hue / Level / Saturation / Switch and not color.

I don’t think WC likes mixing color and level together.


#3

You nailed it. This whole time it was color i guess.
Color by itself still did not work, but hue, saturation, level did.