1) Give a description of the problem
I am trying to have a light flash a certain color/s when motion is detected, or when another trigger happens. If the light is already on, I expect it to flash the color(s) and then return to the same color it was before being triggered. It is randomly selecting the color on restore, and the flash is never consistent.
2) What is the expected behaviour?
When a trigger is set off (motion currently), a multicolor (sengled) light bulb should flash color to my choosing and return to the color it was before. Or if off, then turn off.
3) What is happening/not happening?
The bulb is not restoring to the proper color and instead picking one of the colors that was part of the flash. Also, the flash is inconsistent with timing between flashes of color.
**4) Post a Green Snapshot of the piston!
5) Attach logs after turning logging level to Full
8/18/2020, 9:15:01 PM +17ms
+0ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 54ms
+96ms ║RunTime Analysis CS > 18ms > PS > 44ms > PE > 34ms > CE
+99ms ║Runtime (39758 bytes) successfully initialized in 44ms (v0.3.110.20191009) (97ms)
+99ms ║╔Execution stage started
+106ms ║║Comparison (string) Hallway_Motion_Detected executes (string) Hallway_Motion_Detected = true (2ms)
+107ms ║║Cancelling condition #6's schedules...
+108ms ║║Condition #6 evaluated true (5ms)
+120ms ║║Comparison (enum) on is (string) on = true (1ms)
+121ms ║║Condition #7 evaluated true (12ms)
+122ms ║║Cancelling condition #1's schedules...
+122ms ║║Condition group #1 evaluated true (state changed) (19ms)
+124ms ║║Cancelling statement #4's schedules...
+134ms ║║Executed virtual command [Office Light].saveStateLocally (6ms)
+137ms ║║Executed virtual command [Office Light].wait (1ms)
+138ms ║║Waiting for 1000ms
+1163ms ║║Executed physical command [Office Light].setColor([[hex: #800080, hue:83, saturation:100, level:25]]) (12ms)
+1168ms ║║Executed physical command [Office Light].setColor([[hex: #FFD700, hue:14, saturation:100, level:50]], [delay: 250]) (5ms)
+1173ms ║║Executed physical command [Office Light].setColor([[hex: #800080, hue:83, saturation:100, level:25]], [delay: 500]) (3ms)
+1179ms ║║Executed physical command [Office Light].setColor([[hex: #FFD700, hue:14, saturation:100, level:50]], [delay: 750]) (5ms)
+1185ms ║║Executed physical command [Office Light].on([delay: 1099]) (6ms)
+1186ms ║║Executed virtual command [Office Light].flashColor (42ms)
+1186ms ║║Waiting for 1100ms
+2290ms ║║Executed virtual command [Office Light].wait (0ms)
+2291ms ║║Waiting for 1000ms
+3303ms ║║Restoring attribute 'color' to value '' using command setColor()
+3310ms ║║Executed physical command [Office Light].setColor([]) (5ms)
+3311ms ║║Executed virtual command [Office Light].loadStateLocally (16ms)
+3313ms ║╚Execution stage complete. (3213ms)
+3314ms ╚Event processed successfully (3313ms)
8/18/2020, 9:14:42 PM +23ms
+1ms ╔Received event [My home].test = 1597803282023 with a delay of 0ms
+95ms ║RunTime Analysis CS > 17ms > PS > 37ms > PE > 41ms > CE
+98ms ║Runtime (39743 bytes) successfully initialized in 37ms (v0.3.110.20191009) (96ms)
+99ms ║╔Execution stage started
+107ms ║║Comparison (string) null executes (string) Hallway_Motion_Detected = false (2ms)
+109ms ║║Condition #6 evaluated false (4ms)
+110ms ║║Condition group #1 evaluated false (state did not change) (7ms)
+112ms ║╚Execution stage complete. (13ms)
+113ms ╚Event processed successfully (113ms)
8/18/2020, 9:14:27 PM +15ms
+0ms ╔Starting piston... (v0.3.110.20191009)
+409ms ║╔Subscribing to devices...
+418ms ║║Subscribing to My home.ifttt.Hallway_Motion_Detected...
+483ms ║║Subscribing to Office Light...
+484ms ║╚Finished subscribing (89ms)
+537ms ╚Piston successfully started (537ms)
8/18/2020, 9:13:39 PM +708ms
+0ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 40ms
+75ms ║Runtime (39674 bytes) successfully initialized in 27ms (v0.3.110.20191009) (73ms)
+75ms ║╔Execution stage started
+100ms ║║Executed virtual command [Office Light].saveStateLocally (5ms)
+103ms ║║Executed virtual command [Office Light].wait (1ms)
+104ms ║║Waiting for 1000ms
+1158ms ║║Executed virtual command [Office Light].flashColor (49ms)
+1159ms ║║Waiting for 1100ms
+2262ms ║║Executed virtual command [Office Light].wait (0ms)
+2263ms ║║Waiting for 1000ms
+3280ms ║║Executed virtual command [Office Light].loadStateLocally (13ms)
+3282ms ║╚Execution stage complete. (3207ms)
+3283ms ╚Event processed successfully (3283ms)
8/18/2020, 9:13:30 PM +950ms
+0ms ╔Starting piston... (v0.3.110.20191009)
+400ms ║╔Subscribing to devices...
+409ms ║║Subscribing to My home.ifttt.Hallway_Motion_Detected...
+470ms ║║Subscribing to Office Light...
+471ms ║╚Finished subscribing (82ms)
+516ms ╚Piston successfully started (516ms)
8/18/2020, 9:12:43 PM +293ms
+1ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 58ms
+104ms ║Runtime (39770 bytes) successfully initialized in 41ms (v0.3.110.20191009) (102ms)
+105ms ║╔Execution stage started
+149ms ║║Executed virtual command [Office Light].saveStateLocally (18ms)
+153ms ║║Executed virtual command [Office Light].wait (1ms)
+154ms ║║Waiting for 1000ms
+1201ms ║║Executed virtual command [Office Light].flashColor (40ms)
+1202ms ║║Waiting for 1100ms
+2306ms ║║Executed virtual command [Office Light].wait (1ms)
+2307ms ║║Waiting for 1000ms
+3372ms ║║Executed virtual command [Office Light].loadStateLocally (60ms)
+3375ms ║╚Execution stage complete. (3271ms)
+3377ms ╚Event processed successfully (3377ms)
8/18/2020, 9:12:32 PM +178ms
+0ms ╔Starting piston... (v0.3.110.20191009)
+475ms ║╔Subscribing to devices...
+485ms ║║Subscribing to My home.ifttt.Hallway_Motion_Detected...
+548ms ║║Subscribing to Office Light...
+549ms ║╚Finished subscribing (88ms)
+593ms ╚Piston successfully started (593ms)
8/18/2020, 9:09:26 PM +635ms
+0ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 43ms
+80ms ║Runtime (39808 bytes) successfully initialized in 31ms (v0.3.110.20191009) (79ms)
+81ms ║╔Execution stage started
+120ms ║║Executed virtual command [Office Light].saveStateLocally (18ms)
+123ms ║║Executed virtual command [Office Light].wait (1ms)
+124ms ║║Waiting for 1000ms
+1162ms ║║Executed virtual command [Office Light].flashColor (31ms)
+1163ms ║║Waiting for 1100ms
+2266ms ║║Executed virtual command [Office Light].wait (1ms)
+2267ms ║║Waiting for 1000ms
+3330ms ║║Executed virtual command [Office Light].loadStateLocally (59ms)
+3332ms ║╚Execution stage complete. (3251ms)
+3333ms ╚Event processed successfully (3333ms)
8/18/2020, 9:09:17 PM +587ms
+0ms ╔Starting piston... (v0.3.110.20191009)
+418ms ║╔Subscribing to devices...
+426ms ║║Subscribing to My home.ifttt.Hallway_Motion_Detected...
+490ms ║║Subscribing to Office Light...
+491ms ║╚Finished subscribing (85ms)
+537ms ╚Piston successfully started (536ms)
8/18/2020, 9:08:41 PM +244ms
+0ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 56ms
+103ms ║Runtime (39808 bytes) successfully initialized in 46ms (v0.3.110.20191009) (101ms)
+103ms ║╔Execution stage started
+151ms ║║Executed virtual command [Office Light].saveStateLocally (25ms)
+154ms ║║Executed virtual command [Office Light].wait (0ms)
+155ms ║║Waiting for 2000ms
+2206ms ║║Executed virtual command [Office Light].flashColor (45ms)
+2207ms ║║Waiting for 1100ms
+3310ms ║║Executed virtual command [Office Light].wait (1ms)
+3311ms ║║Waiting for 2000ms
+5385ms ║║Executed virtual command [Office Light].loadStateLocally (71ms)
+5387ms ║╚Execution stage complete. (5284ms)
+5388ms ╚Event processed successfully (5389ms)
8/18/2020, 9:08:16 PM +688ms
+1ms ╔Starting piston... (v0.3.110.20191009)
+428ms ║╔Subscribing to devices...
+463ms ║║Subscribing to My home.ifttt.Hallway_Motion_Detected...
+543ms ║║Subscribing to Office Light...
+544ms ║╚Finished subscribing (127ms)
+591ms ╚Piston successfully started (590ms)
8/18/2020, 9:05:48 PM +225ms
+0ms ╔Received event [My home].time = 1597802748025 with a delay of 199ms
+102ms ║Runtime (40005 bytes) successfully initialized in 46ms (v0.3.110.20191009) (101ms)
+103ms ║╔Execution stage started
+124ms ║║Executed virtual command [Office Light].flashColor (7ms)
+127ms ║║Executed virtual command [Office Light].wait (1ms)
+129ms ║║Waiting for 2000ms
+2204ms ║║Executed virtual command [Office Light].loadStateLocally (71ms)
+2206ms ║╚Execution stage complete. (2103ms)
+2207ms ╚Event processed successfully (2207ms)
8/18/2020, 9:05:36 PM +60ms
+1ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 56ms
+9915ms ║Piston waited at a semaphore for 9827ms
+9917ms ║Runtime (39896 bytes) successfully initialized in 9864ms (v0.3.110.20191009) (9916ms)
+9918ms ║╔Execution stage started
+9961ms ║║Executed virtual command [Office Light].saveStateLocally (22ms)
+9964ms ║║Executed virtual command [Office Light].wait (0ms)
+9965ms ║║Requesting a wake up for Tue, Aug 18 2020 @ 9:05:48 PM CDT (in 2.0s)
+9968ms ║╚Execution stage complete. (50ms)
+9969ms ║Setting up scheduled job for Tue, Aug 18 2020 @ 9:05:48 PM CDT (in 1.996s)
+10003ms ╚Event processed successfully (10003ms)
8/18/2020, 9:05:35 PM +767ms
+0ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 51ms
+95ms ║Runtime (39825 bytes) successfully initialized in 41ms (v0.3.110.20191009) (94ms)
+96ms ║╔Execution stage started
+141ms ║║Executed virtual command [Office Light].saveStateLocally (22ms)
+144ms ║║Executed virtual command [Office Light].wait (1ms)
+145ms ║║Waiting for 2000ms
+2159ms ║║Executed virtual command [Office Light].flashColor (7ms)
+2162ms ║║Executed virtual command [Office Light].wait (1ms)
+2163ms ║║Waiting for 2000ms
+4241ms ║║Executed virtual command [Office Light].loadStateLocally (74ms)
+4243ms ║╚Execution stage complete. (4147ms)
+4244ms ╚Event processed successfully (4244ms)
8/18/2020, 9:05:08 PM +937ms
+0ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 48ms
+82ms ║Runtime (39808 bytes) successfully initialized in 31ms (v0.3.110.20191009) (81ms)
+83ms ║╔Execution stage started
+123ms ║║Executed virtual command [Office Light].saveStateLocally (18ms)
+126ms ║║Executed virtual command [Office Light].wait (1ms)
+127ms ║║Waiting for 2000ms
+2140ms ║║Executed virtual command [Office Light].flashColor (6ms)
+2142ms ║║Executed virtual command [Office Light].wait (0ms)
+2143ms ║║Waiting for 2000ms
+4220ms ║║Executed virtual command [Office Light].loadStateLocally (72ms)
+4222ms ║╚Execution stage complete. (4139ms)
+4224ms ╚Event processed successfully (4224ms)
8/18/2020, 9:04:45 PM +711ms
+0ms ╔Starting piston... (v0.3.110.20191009)
+539ms ║╔Subscribing to devices...
+548ms ║║Subscribing to My home.ifttt.Hallway_Motion_Detected...
+625ms ║║Subscribing to Office Light...
+626ms ║╚Finished subscribing (101ms)
+674ms ╚Piston successfully started (674ms)
8/18/2020, 8:57:56 PM +185ms
+0ms ╔Received event [My home].ifttt = Hallway_Motion_Detected with a delay of 57ms
+105ms ║Runtime (40015 bytes) successfully initialized in 39ms (v0.3.110.20191009) (104ms)
+106ms ║╔Execution stage started
+132ms ║║Executed virtual command [Office Light].saveStateLocally (1ms)
+135ms ║║Executed virtual command [Office Light].wait (1ms)
+136ms ║║Waiting for 500ms
+650ms ║║Executed virtual command [Office Light].flashColor (8ms)
+653ms ║║Executed virtual command [Office Light].wait (0ms)
+654ms ║║Waiting for 500ms
+1228ms ║║Executed virtual command [Office Light].loadStateLocally (70ms)
+1231ms ║╚Execution stage complete. (1124ms)
+1232ms ╚Event processed successfully (1231ms)