1) Give a description of the problem
Light attributes aren’t being restored properly
2) What is the expected behavior?
Wish to capture light attributes of color, temperature and brightness at beginning of piston and then restore at end to original state
3) What is happening/not happening?
Not going back to original state - if light was on before it does come back on at end and brightness doesn’t get restored
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
2/26/2018, 3:14:26 PM +345ms
+1ms ╔Received event [Security System].switch = off with a delay of 68ms
+114ms ║RunTime Analysis CS > 15ms > PS > 68ms > PE > 31ms > CE
+117ms ║Runtime (42123 bytes) successfully initialized in 68ms (v0.3.000.20180224) (114ms)
+118ms ║╔Execution stage started
+128ms ║║Comparison (enum) off is (string) on = false (1ms)
+129ms ║║Cancelling condition #2’s schedules…
+131ms ║║Cancelling statement #10’s schedules…
+176ms ║║Executed virtual command setLocationMode (42ms)
+192ms ║║Executed virtual command setAlarmSystemStatus (13ms)
+196ms ║║Executed virtual command setState (1ms)
+197ms ║║Condition #2 evaluated false (74ms)
+198ms ║║Cancelling condition #1’s schedules…
+199ms ║║Condition group #1 evaluated false (state changed) (76ms)
+201ms ║╚Execution stage complete. (84ms)
+203ms ╚Event processed successfully (202ms)
2/26/2018, 3:14:07 PM +98ms
+1ms ╔Received event [Security System].switch = on with a delay of 84ms
+122ms ║RunTime Analysis CS > 15ms > PS > 72ms > PE > 34ms > CE
+124ms ║Runtime (42102 bytes) successfully initialized in 72ms (v0.3.000.20180224) (122ms)
+125ms ║╔Execution stage started
+136ms ║║Comparison (enum) on is (string) on = true (2ms)
+138ms ║║Cancelling condition #2’s schedules…
+140ms ║║Cancelling statement #3’s schedules…
+164ms ║║Executed virtual command [Bedroom Lamp].saveStateLocally (16ms)
+182ms ║║Executed virtual command [Lamp].saveStateLocally (16ms)
+1661ms ║║Executed virtual command [Bedroom Lamp, Lamp].lifxScene (1474ms)
+1662ms ║║Waiting for 1500ms
+3225ms ║║Executed virtual command [Bedroom Lamp, Lamp].setLocationMode (58ms)
+3236ms ║║Executed virtual command [Bedroom Lamp, Lamp].setAlarmSystemStatus (9ms)
+3241ms ║║Skipped execution of physical command [Bedroom Lamp].off([]) because it would make no change to the device. (3ms)
+3241ms ║║Executed [Bedroom Lamp].off (4ms)
+4307ms ║║Executed physical command [Lamp].off() (1064ms)
+4308ms ║║Executed [Lamp].off (1065ms)
+4327ms ║║Restoring attribute ‘color’ to value ’ #7F7F7F’ using command setColor( #7F7F7F)
+4348ms ║║Executed physical command [Bedroom Lamp].setColor([ #7F7F7F]) (20ms)
+4358ms ║║Restoring attribute ‘colorTemperature’ to value ‘5500’ using command setColorTemperature(5500)
+4410ms ║║Executed physical command [Bedroom Lamp].setColorTemperature([5500]) (52ms)
+4420ms ║║Restoring attribute ‘hue’ to value ‘33.3333333333’ using command setHue(33.3333333333)
+4466ms ║║Executed physical command [Bedroom Lamp].setHue([33.3333333333]) (46ms)
+4476ms ║║Restoring attribute ‘infraredLevel’ to value ‘’ using command setInfraredLevel()
+4482ms ║║Skipped execution of physical command [Bedroom Lamp].setInfraredLevel([]) because it would make no change to the device. (5ms)
+4491ms ║║Restoring attribute ‘level’ to value ‘100’ using command setLevel(100)
+4497ms ║║Skipped execution of physical command [Bedroom Lamp].setLevel([100]) because it would make no change to the device. (5ms)
+4507ms ║║Restoring attribute ‘saturation’ to value ‘’ using command setSaturation()
+4532ms ║║Executed physical command [Bedroom Lamp].setSaturation([]) (25ms)
+4533ms ║║Executed virtual command [Bedroom Lamp].loadStateLocally (221ms)
+4543ms ║║Restoring attribute ‘color’ to value ’ #ffffff’ using command setColor( #ffffff)
+4563ms ║║Executed physical command [Lamp].setColor([ #ffffff]) (19ms)
+4572ms ║║Restoring attribute ‘colorTemperature’ to value ‘5500’ using command setColorTemperature(5500)
+4616ms ║║Executed physical command [Lamp].setColorTemperature([5500]) (43ms)
+4626ms ║║Restoring attribute ‘hue’ to value ‘61.4221408407721’ using command setHue(61.4221408407721)
+4847ms ║║Executed physical command [Lamp].setHue([61.4221408407721]) (221ms)
+4857ms ║║Restoring attribute ‘infraredLevel’ to value ‘’ using command setInfraredLevel()
+4863ms ║║Skipped execution of physical command [Lamp].setInfraredLevel([]) because it would make no change to the device. (5ms)
+4872ms ║║Restoring attribute ‘level’ to value ‘100’ using command setLevel(100)
+4879ms ║║Skipped execution of physical command [Lamp].setLevel([100]) because it would make no change to the device. (6ms)
+4888ms ║║Restoring attribute ‘saturation’ to value ‘’ using command setSaturation()