Accidental light triggers due to long pistons


#1

1) Give a description of the problem
Lights turning back on after switching off

2) What is the expected behaviour?
Lights to remain off when requested

3) What is happening/not happening?
When multiple lights are turned off at the same time, say for example a lighting group or an away scene to turn off all lights. This causes some of the lights to switch back on.

For some additional background on my piston set up (of which this is one of two). Basically at night time specifically at 8pm it will dim my lights and change the colour temp IF the light is on. However there is a few qerks to this piston. Such as if I turn on my office light it will reset all of the lights that are currently on. Meaning if I had set the lounge room to be dimmer then preset in my rule it will increase the brightness.

One of the other qerks which is more annoying is when I turn off multiple lights off simultaneously either through a rule/scene/lighting group it will cause some of the lights to switch back on.

I suspect this is due to webCoRE taking a point in time view as to what lights are on when the rule starts so If light C is one when I turn off A, B & C it turns it back on as per my piston.

One way around this which I have fixed for my bedtime routine is once I close my bedroom door at night it will turn off light A instantly, light B off in 10 seconds, light c off in 20 seconds and so on. This ensures all lights get turned off and I don’t wake up in the morning with all lights on unexpectedly.

Hope that explains my problem well enough

4) Post a Green Snapshot of the piston!)
(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

11/23/2020, 8:17:02 PM +85ms
+0ms ╔Received event [BKTS Home].time = 1606126621772 with a delay of 313ms
+90ms ║RunTime Analysis CS &gt; 21ms &gt; PS &gt; 6ms &gt; PE &gt; 63ms &gt; CE
+93ms ║Runtime (42988 bytes) successfully initialized in 6ms (v0.3.110.20191009) (92ms)
+94ms ║╔Execution stage started
+123ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (7ms)
+123ms ║║Executed [Guest Room Light].setLevel (8ms)
+158ms ║║Skipped execution of physical command [Play Room Light].setLevel([60]) because it would make no change to the device. (7ms)
+159ms ║║Executed [Play Room Light].setLevel (8ms)
+161ms ║╚Execution stage complete. (68ms)
+162ms ╚Event processed successfully (162ms)
11/23/2020, 8:16:49 PM +567ms
+1ms ╔Received event [Our Light].switch = on with a delay of 38ms
+10092ms ║RunTime Analysis CS &gt; 11ms &gt; PS &gt; 10016ms &gt; PE &gt; 65ms &gt; CE
+10093ms ║Piston waited at a semaphore for 10013ms
+10096ms ║Runtime (43064 bytes) successfully initialized in 10016ms (v0.3.110.20191009) (10094ms)
+10096ms ║╔Execution stage started
+10104ms ║║Comparison (enum) off is (string) off = true (1ms)
+10105ms ║║Condition #1 evaluated true (6ms)
+10109ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10110ms ║║Condition #2 evaluated true (3ms)
+10110ms ║║Condition group #null evaluated true (state did not change) (11ms)
+10115ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10116ms ║║Condition #16 evaluated true (4ms)
+10117ms ║║Condition group #15 evaluated true (state did not change) (4ms)
+10125ms ║║Comparison (enum) off is (string) on = false (1ms)
+10126ms ║║Condition #4 evaluated false (7ms)
+10127ms ║║Condition group #3 evaluated false (state did not change) (9ms)
+10132ms ║║Comparison (enum) on is (string) on = true (1ms)
+10133ms ║║Cancelling condition #8's schedules...
+10134ms ║║Condition #8 evaluated true (5ms)
+10135ms ║║Cancelling condition #7's schedules...
+10135ms ║║Condition group #7 evaluated true (state changed) (6ms)
+10143ms ║║Comparison (integer) 2 is_greater_than (integer) 40 = false (1ms)
+10144ms ║║Condition #21 evaluated false (7ms)
+10145ms ║║Condition group #9 evaluated false (state did not change) (8ms)
+10169ms ║║Comparison (enum) on is (string) on = true (1ms)
+10170ms ║║Condition #12 evaluated true (23ms)
+10171ms ║║Condition group #11 evaluated true (state did not change) (23ms)
+10172ms ║║Cancelling statement #13's schedules...
+10200ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (25ms)
+10201ms ║║Executed [Guest Room Light].setColorTemperature (26ms)
+10203ms ║║Executed virtual command [Guest Room Light].wait (0ms)
+10204ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:17:01 PM AEST (in 2.0s)
+10214ms ║║Comparison (enum) on is (string) on = true (1ms)
+10215ms ║║Condition #25 evaluated true (6ms)
+10215ms ║║Condition group #24 evaluated true (state did not change) (8ms)
+10217ms ║║Cancelling statement #26's schedules...
+10235ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (15ms)
+10236ms ║║Executed [Play Room Light].setColorTemperature (17ms)
+10238ms ║║Executed virtual command [Play Room Light].wait (0ms)
+10239ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:17:01 PM AEST (in 2.0s)
+10242ms ║╚Execution stage complete. (146ms)
+10244ms ║Setting up scheduled job for Mon, Nov 23 2020 @ 8:17:01 PM AEST (in 1.962s), with 1 more job pending
+10250ms ╚Event processed successfully (10249ms)
11/23/2020, 8:16:57 PM +60ms
+0ms ╔Received event [BKTS Home].time = 1606126616541 with a delay of 518ms
+84ms ║RunTime Analysis CS &gt; 18ms &gt; PS &gt; 6ms &gt; PE &gt; 60ms &gt; CE
+86ms ║Runtime (42991 bytes) successfully initialized in 6ms (v0.3.110.20191009) (85ms)
+87ms ║╔Execution stage started
+117ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (7ms)
+118ms ║║Executed [Guest Room Light].setLevel (8ms)
+184ms ║║Skipped execution of physical command [Play Room Light].setLevel([60]) because it would make no change to the device. (39ms)
+185ms ║║Executed [Play Room Light].setLevel (41ms)
+187ms ║╚Execution stage complete. (100ms)
+188ms ╚Event processed successfully (188ms)
11/23/2020, 8:16:44 PM +355ms
+0ms ╔Received event [Our Light].switch = off with a delay of 46ms
+10106ms ║RunTime Analysis CS &gt; 10ms &gt; PS &gt; 10023ms &gt; PE &gt; 73ms &gt; CE
+10107ms ║Piston waited at a semaphore for 10020ms
+10109ms ║Runtime (43059 bytes) successfully initialized in 10023ms (v0.3.110.20191009) (10108ms)
+10110ms ║╔Execution stage started
+10118ms ║║Comparison (enum) off is (string) off = true (1ms)
+10120ms ║║Condition #1 evaluated true (7ms)
+10123ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10124ms ║║Condition #2 evaluated true (4ms)
+10125ms ║║Condition group #null evaluated true (state did not change) (13ms)
+10129ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10131ms ║║Condition #16 evaluated true (4ms)
+10132ms ║║Condition group #15 evaluated true (state did not change) (4ms)
+10140ms ║║Comparison (enum) off is (string) on = false (1ms)
+10141ms ║║Condition #4 evaluated false (7ms)
+10142ms ║║Condition group #3 evaluated false (state did not change) (8ms)
+10147ms ║║Comparison (enum) off is (string) on = false (1ms)
+10148ms ║║Cancelling condition #8's schedules...
+10149ms ║║Condition #8 evaluated false (5ms)
+10150ms ║║Cancelling condition #7's schedules...
+10151ms ║║Condition group #7 evaluated false (state changed) (7ms)
+10159ms ║║Comparison (enum) on is (string) on = true (1ms)
+10160ms ║║Condition #12 evaluated true (7ms)
+10161ms ║║Condition group #11 evaluated true (state did not change) (9ms)
+10163ms ║║Cancelling statement #13's schedules...
+10182ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (16ms)
+10182ms ║║Executed [Guest Room Light].setColorTemperature (17ms)
+10185ms ║║Executed virtual command [Guest Room Light].wait (1ms)
+10186ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:56 PM AEST (in 2.0s)
+10195ms ║║Comparison (enum) on is (string) on = true (1ms)
+10197ms ║║Condition #25 evaluated true (7ms)
+10197ms ║║Condition group #24 evaluated true (state did not change) (8ms)
+10199ms ║║Cancelling statement #26's schedules...
+10217ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (14ms)
+10217ms ║║Executed [Play Room Light].setColorTemperature (16ms)
+10220ms ║║Executed virtual command [Play Room Light].wait (1ms)
+10221ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:56 PM AEST (in 2.0s)
+10224ms ║╚Execution stage complete. (113ms)
+10225ms ║Setting up scheduled job for Mon, Nov 23 2020 @ 8:16:56 PM AEST (in 1.962s), with 1 more job pending
+10233ms ╚Event processed successfully (10233ms)
11/23/2020, 8:16:45 PM +347ms
+1ms ╔Received event [Play Room Light].switch = off with a delay of 37ms
+9091ms ║RunTime Analysis CS &gt; 10ms &gt; PS &gt; 9026ms &gt; PE &gt; 55ms &gt; CE
+9092ms ║Piston waited at a semaphore for 9023ms
+9095ms ║Runtime (43059 bytes) successfully initialized in 9026ms (v0.3.110.20191009) (9093ms)
+9095ms ║╔Execution stage started
+9103ms ║║Comparison (enum) off is (string) off = true (1ms)
+9104ms ║║Condition #1 evaluated true (6ms)
+9107ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+9108ms ║║Condition #2 evaluated true (3ms)
+9109ms ║║Condition group #null evaluated true (state did not change) (12ms)
+9113ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+9114ms ║║Condition #16 evaluated true (3ms)
+9115ms ║║Condition group #15 evaluated true (state did not change) (5ms)
+9123ms ║║Comparison (enum) off is (string) on = false (1ms)
+9124ms ║║Condition #4 evaluated false (7ms)
+9125ms ║║Condition group #3 evaluated false (state did not change) (8ms)
+9133ms ║║Comparison (enum) on is (string) on = true (1ms)
+9134ms ║║Condition #8 evaluated true (7ms)
+9135ms ║║Condition group #7 evaluated true (state did not change) (8ms)
+9142ms ║║Comparison (integer) 2 is_greater_than (integer) 40 = false (1ms)
+9144ms ║║Condition #21 evaluated false (6ms)
+9144ms ║║Condition group #9 evaluated false (state did not change) (7ms)
+9152ms ║║Comparison (enum) on is (string) on = true (1ms)
+9154ms ║║Condition #12 evaluated true (7ms)
+9154ms ║║Condition group #11 evaluated true (state did not change) (8ms)
+9156ms ║║Cancelling statement #13's schedules...
+9176ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (17ms)
+9177ms ║║Executed [Guest Room Light].setColorTemperature (19ms)
+9180ms ║║Executed virtual command [Guest Room Light].wait (0ms)
+9181ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:56 PM AEST (in 2.0s)
+9187ms ║║Comparison (enum) off is (string) on = false (1ms)
+9188ms ║║Cancelling condition #25's schedules...
+9189ms ║║Condition #25 evaluated false (4ms)
+9189ms ║║Cancelling condition #24's schedules...
+9190ms ║║Condition group #24 evaluated false (state changed) (6ms)
+9192ms ║╚Execution stage complete. (97ms)
+9193ms ║Setting up scheduled job for Mon, Nov 23 2020 @ 8:16:56 PM AEST (in 1.989s)
+9203ms ╚Event processed successfully (9202ms)
11/23/2020, 8:16:44 PM +193ms
+2ms ╔Received event [Lounge Room Light].switch = off with a delay of 72ms
+10094ms ║RunTime Analysis CS &gt; 20ms &gt; PS &gt; 10017ms &gt; PE &gt; 57ms &gt; CE
+10095ms ║Piston waited at a semaphore for 10013ms
+10097ms ║Runtime (43067 bytes) successfully initialized in 10017ms (v0.3.110.20191009) (10095ms)
+10098ms ║╔Execution stage started
+10106ms ║║Comparison (enum) off is (string) off = true (1ms)
+10107ms ║║Condition #1 evaluated true (7ms)
+10110ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10112ms ║║Condition #2 evaluated true (3ms)
+10112ms ║║Condition group #null evaluated true (state did not change) (12ms)
+10116ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10118ms ║║Condition #16 evaluated true (3ms)
+10118ms ║║Condition group #15 evaluated true (state did not change) (4ms)
+10123ms ║║Comparison (enum) off is (string) on = false (1ms)
+10124ms ║║Condition #4 evaluated false (4ms)
+10125ms ║║Condition group #3 evaluated false (state did not change) (5ms)
+10135ms ║║Comparison (enum) on is (string) on = true (1ms)
+10136ms ║║Condition #8 evaluated true (9ms)
+10137ms ║║Condition group #7 evaluated true (state did not change) (10ms)
+10144ms ║║Comparison (integer) 2 is_greater_than (integer) 40 = false (1ms)
+10146ms ║║Condition #21 evaluated false (6ms)
+10146ms ║║Condition group #9 evaluated false (state did not change) (8ms)
+10155ms ║║Comparison (enum) on is (string) on = true (1ms)
+10156ms ║║Condition #12 evaluated true (7ms)
+10157ms ║║Condition group #11 evaluated true (state did not change) (9ms)
+10159ms ║║Cancelling statement #13's schedules...
+10186ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (25ms)
+10187ms ║║Executed [Guest Room Light].setColorTemperature (26ms)
+10189ms ║║Executed virtual command [Guest Room Light].wait (0ms)
+10190ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:56 PM AEST (in 2.0s)
+10200ms ║║Comparison (enum) on is (string) on = true (1ms)
+10201ms ║║Condition #25 evaluated true (7ms)
+10202ms ║║Condition group #24 evaluated true (state did not change) (8ms)
+10204ms ║║Cancelling statement #26's schedules...
+10228ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (21ms)
+10228ms ║║Executed [Play Room Light].setColorTemperature (22ms)
+10231ms ║║Executed virtual command [Play Room Light].wait (1ms)
+10232ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:56 PM AEST (in 2.0s)
+10235ms ║╚Execution stage complete. (137ms)
+10236ms ║Setting up scheduled job for Mon, Nov 23 2020 @ 8:16:56 PM AEST (in 1.955s), with 1 more job pending
+10243ms ╚Event processed successfully (10243ms)
11/23/2020, 8:16:45 PM +43ms
+1ms ╔Received event [BKTS Home].time = 1606126603947 with a delay of 1096ms
+9334ms ║RunTime Analysis CS &gt; 13ms &gt; PS &gt; 9268ms &gt; PE &gt; 53ms &gt; CE
+9335ms ║Piston waited at a semaphore for 9265ms
+9337ms ║Runtime (43063 bytes) successfully initialized in 9268ms (v0.3.110.20191009) (9336ms)
+9338ms ║╔Execution stage started
+9339ms ║╚Execution stage complete. (1ms)
+9340ms ╚Event processed successfully (9340ms)
11/23/2020, 8:16:49 PM +564ms
+1ms ╔Received event [Our Light].switch = on with a delay of 35ms
+64ms ║RunTime Analysis CS &gt; 10ms &gt; PS &gt; 4ms &gt; PE &gt; 50ms &gt; CE
+66ms ║Runtime (42978 bytes) successfully initialized in 4ms (v0.3.110.20191009) (65ms)
+67ms ║╔Execution stage started
+75ms ║║Comparison (enum) off is (string) off = true (1ms)
+76ms ║║Condition #1 evaluated true (7ms)
+79ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+80ms ║║Condition #2 evaluated true (3ms)
+81ms ║║Condition group #null evaluated true (state did not change) (12ms)
+85ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+86ms ║║Condition #16 evaluated true (3ms)
+87ms ║║Condition group #15 evaluated true (state did not change) (5ms)
+95ms ║║Comparison (enum) off is (string) on = false (1ms)
+97ms ║║Condition #4 evaluated false (7ms)
+97ms ║║Condition group #3 evaluated false (state did not change) (8ms)
+102ms ║║Comparison (enum) on is (string) on = true (1ms)
+103ms ║║Cancelling condition #8's schedules...
+104ms ║║Condition #8 evaluated true (5ms)
+105ms ║║Cancelling condition #7's schedules...
+106ms ║║Condition group #7 evaluated true (state changed) (7ms)
+113ms ║║Comparison (integer) 2 is_greater_than (integer) 40 = false (1ms)
+115ms ║║Condition #21 evaluated false (7ms)
+115ms ║║Condition group #9 evaluated false (state did not change) (8ms)
+124ms ║║Comparison (enum) on is (string) on = true (1ms)
+125ms ║║Condition #12 evaluated true (8ms)
+126ms ║║Condition group #11 evaluated true (state did not change) (9ms)
+128ms ║║Cancelling statement #13's schedules...
+147ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (16ms)
+147ms ║║Executed [Guest Room Light].setColorTemperature (17ms)
+150ms ║║Executed virtual command [Guest Room Light].wait (1ms)
+151ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:51 PM AEST (in 2.0s)
+160ms ║║Comparison (enum) on is (string) on = true (1ms)
+162ms ║║Condition #25 evaluated true (8ms)
+163ms ║║Condition group #24 evaluated true (state did not change) (8ms)
+164ms ║║Cancelling statement #26's schedules...
+183ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (16ms)
+184ms ║║Executed [Play Room Light].setColorTemperature (17ms)
+186ms ║║Executed virtual command [Play Room Light].wait (0ms)
+187ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:51 PM AEST (in 2.0s)
+191ms ║║Fast executing schedules, waiting for 1962ms to sync up
+2176ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (6ms)
+2177ms ║║Executed [Guest Room Light].setLevel (8ms)
+2179ms ║║Fast executing schedules, waiting for 9ms to sync up
+2213ms ║║Skipped execution of physical command [Play Room Light].setLevel([60]) because it would make no change to the device. (5ms)
+2214ms ║║Executed [Play Room Light].setLevel (7ms)
+2216ms ║╚Execution stage complete. (2149ms)
+2217ms ╚Event processed successfully (2217ms)
11/23/2020, 8:16:46 PM +882ms
+1ms ╔Received event [Play Room Light].switch = on with a delay of 44ms
+75ms ║RunTime Analysis CS &gt; 10ms &gt; PS &gt; 3ms &gt; PE &gt; 62ms &gt; CE
+77ms ║Runtime (42981 bytes) successfully initialized in 3ms (v0.3.110.20191009) (75ms)
+78ms ║╔Execution stage started
+86ms ║║Comparison (enum) off is (string) off = true (0ms)
+87ms ║║Condition #1 evaluated true (7ms)
+90ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+91ms ║║Condition #2 evaluated true (4ms)
+92ms ║║Condition group #null evaluated true (state did not change) (12ms)
+96ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+97ms ║║Condition #16 evaluated true (3ms)
+98ms ║║Condition group #15 evaluated true (state did not change) (5ms)
+106ms ║║Comparison (enum) off is (string) on = false (1ms)
+108ms ║║Condition #4 evaluated false (8ms)
+109ms ║║Condition group #3 evaluated false (state did not change) (8ms)
+117ms ║║Comparison (enum) off is (string) on = false (0ms)
+118ms ║║Cancelling condition #8's schedules...
+119ms ║║Condition #8 evaluated false (7ms)
+120ms ║║Cancelling condition #7's schedules...
+120ms ║║Condition group #7 evaluated false (state changed) (10ms)
+128ms ║║Comparison (enum) on is (string) on = true (1ms)
+130ms ║║Condition #12 evaluated true (7ms)
+130ms ║║Condition group #11 evaluated true (state did not change) (8ms)
+132ms ║║Cancelling statement #13's schedules...
+154ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (19ms)
+155ms ║║Executed [Guest Room Light].setColorTemperature (21ms)
+157ms ║║Executed virtual command [Guest Room Light].wait (0ms)
+159ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:49 PM AEST (in 2.0s)
+165ms ║║Comparison (enum) on is (string) on = true (1ms)
+167ms ║║Condition #25 evaluated true (4ms)
+167ms ║║Condition group #24 evaluated true (state did not change) (5ms)
+169ms ║║Cancelling statement #26's schedules...
+188ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (16ms)
+189ms ║║Executed [Play Room Light].setColorTemperature (17ms)
+248ms ║║Executed virtual command [Play Room Light].wait (1ms)
+249ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:49 PM AEST (in 2.0s)
+253ms ║║Fast executing schedules, waiting for 1907ms to sync up
+2185ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (7ms)
+2185ms ║║Executed [Guest Room Light].setLevel (9ms)
+2187ms ║║Fast executing schedules, waiting for 63ms to sync up
+2276ms ║║Skipped execution of physical command [Play Room Light].setLevel([60]) because it would make no change to the device. (6ms)
+2277ms ║║Executed [Play Room Light].setLevel (7ms)
+2279ms ║╚Execution stage complete. (2201ms)
+2280ms ╚Event processed successfully (2280ms)
11/23/2020, 8:16:44 PM +160ms
+0ms ╔Received event [Lounge Room Light].switch = off with a delay of 39ms
+76ms ║RunTime Analysis CS &gt; 13ms &gt; PS &gt; 4ms &gt; PE &gt; 60ms &gt; CE
+79ms ║Runtime (42981 bytes) successfully initialized in 4ms (v0.3.110.20191009) (77ms)
+79ms ║╔Execution stage started
+87ms ║║Comparison (enum) off is (string) off = true (1ms)
+89ms ║║Condition #1 evaluated true (7ms)
+92ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (0ms)
+93ms ║║Condition #2 evaluated true (4ms)
+94ms ║║Condition group #null evaluated true (state did not change) (11ms)
+98ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+99ms ║║Condition #16 evaluated true (4ms)
+100ms ║║Condition group #15 evaluated true (state did not change) (5ms)
+105ms ║║Comparison (enum) off is (string) on = false (1ms)
+106ms ║║Cancelling condition #4's schedules...
+107ms ║║Condition #4 evaluated false (5ms)
+108ms ║║Cancelling condition #3's schedules...
+109ms ║║Condition group #3 evaluated false (state changed) (6ms)
+117ms ║║Comparison (enum) on is (string) on = true (1ms)
+118ms ║║Condition #8 evaluated true (7ms)
+119ms ║║Condition group #7 evaluated true (state did not change) (8ms)
+126ms ║║Comparison (integer) 2 is_greater_than (integer) 40 = false (1ms)
+128ms ║║Condition #21 evaluated false (7ms)
+128ms ║║Condition group #9 evaluated false (state did not change) (8ms)
+137ms ║║Comparison (enum) on is (string) on = true (1ms)
+138ms ║║Condition #12 evaluated true (7ms)
+139ms ║║Condition group #11 evaluated true (state did not change) (9ms)
+140ms ║║Cancelling statement #13's schedules...
+159ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (16ms)
+160ms ║║Executed [Guest Room Light].setColorTemperature (17ms)
+163ms ║║Executed virtual command [Guest Room Light].wait (0ms)
+164ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:46 PM AEST (in 2.0s)
+173ms ║║Comparison (enum) on is (string) on = true (1ms)
+174ms ║║Condition #25 evaluated true (7ms)
+175ms ║║Condition group #24 evaluated true (state did not change) (8ms)
+177ms ║║Cancelling statement #26's schedules...
+196ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (15ms)
+196ms ║║Executed [Play Room Light].setColorTemperature (17ms)
+199ms ║║Executed virtual command [Play Room Light].wait (1ms)
+200ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:46 PM AEST (in 2.0s)
+204ms ║║Fast executing schedules, waiting for 1960ms to sync up
+2188ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (6ms)
+2189ms ║║Executed [Guest Room Light].setLevel (7ms)
+2191ms ║║Fast executing schedules, waiting for 11ms to sync up
+2238ms ║║Executed physical command [Play Room Light].setLevel([60]) (16ms)
+2239ms ║║Executed [Play Room Light].setLevel (17ms)
+2241ms ║╚Execution stage complete. (2161ms)
+2242ms ╚Event processed successfully (2241ms)
11/23/2020, 8:16:31 PM +804ms
+1ms ╔Received event [Lounge Room Light].switch = on with a delay of 52ms
+10084ms ║RunTime Analysis CS &gt; 12ms &gt; PS &gt; 10019ms &gt; PE &gt; 52ms &gt; CE
+10085ms ║Piston waited at a semaphore for 10016ms
+10087ms ║Runtime (43063 bytes) successfully initialized in 10019ms (v0.3.110.20191009) (10086ms)
+10088ms ║╔Execution stage started
+10096ms ║║Comparison (enum) off is (string) off = true (1ms)
+10097ms ║║Condition #1 evaluated true (7ms)
+10100ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10101ms ║║Condition #2 evaluated true (3ms)
+10102ms ║║Condition group #null evaluated true (state did not change) (12ms)
+10106ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10107ms ║║Condition #16 evaluated true (4ms)
+10108ms ║║Condition group #15 evaluated true (state did not change) (5ms)
+10112ms ║║Comparison (enum) on is (string) on = true (1ms)
+10113ms ║║Condition #4 evaluated true (3ms)
+10114ms ║║Condition group #3 evaluated true (state did not change) (5ms)
+10116ms ║║Cancelling statement #5's schedules...
+10138ms ║║Executed physical command [Lounge Room Light].setColorTemperature([2513]) (19ms)
+10139ms ║║Executed [Lounge Room Light].setColorTemperature (20ms)
+10142ms ║║Executed virtual command [Lounge Room Light].wait (1ms)
+10143ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:43 PM AEST (in 2.0s)
+10152ms ║║Comparison (enum) on is (string) on = true (1ms)
+10153ms ║║Condition #8 evaluated true (7ms)
+10154ms ║║Condition group #7 evaluated true (state did not change) (8ms)
+10161ms ║║Comparison (integer) 2 is_greater_than (integer) 40 = false (1ms)
+10163ms ║║Condition #21 evaluated false (6ms)
+10163ms ║║Condition group #9 evaluated false (state did not change) (8ms)
+10172ms ║║Comparison (enum) on is (string) on = true (1ms)
+10173ms ║║Condition #12 evaluated true (8ms)
+10173ms ║║Condition group #11 evaluated true (state did not change) (8ms)
+10175ms ║║Cancelling statement #13's schedules...
+10195ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (16ms)
+10195ms ║║Executed [Guest Room Light].setColorTemperature (18ms)
+10198ms ║║Executed virtual command [Guest Room Light].wait (1ms)
+10199ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:44 PM AEST (in 2.0s)
+10208ms ║║Comparison (enum) on is (string) on = true (1ms)
+10209ms ║║Condition #25 evaluated true (7ms)
+10210ms ║║Condition group #24 evaluated true (state did not change) (8ms)
+10212ms ║║Cancelling statement #26's schedules...
+10231ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (17ms)
+10232ms ║║Executed [Play Room Light].setColorTemperature (18ms)
+10235ms ║║Executed virtual command [Play Room Light].wait (0ms)
+10236ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:44 PM AEST (in 2.0s)
+10238ms ║╚Execution stage complete. (151ms)
+10240ms ║Setting up scheduled job for Mon, Nov 23 2020 @ 8:16:43 PM AEST (in 1.904s), with 2 more jobs pending
+10246ms ╚Event processed successfully (10246ms)
11/23/2020, 8:16:38 PM +35ms
+1ms ╔Received event [Our Light].switch = on with a delay of 39ms
+65ms ║RunTime Analysis CS &gt; 10ms &gt; PS &gt; 6ms &gt; PE &gt; 48ms &gt; CE
+67ms ║Runtime (42975 bytes) successfully initialized in 6ms (v0.3.110.20191009) (65ms)
+68ms ║╔Execution stage started
+75ms ║║Comparison (enum) off is (string) off = true (1ms)
+77ms ║║Condition #1 evaluated true (6ms)
+79ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+80ms ║║Condition #2 evaluated true (3ms)
+81ms ║║Condition group #null evaluated true (state did not change) (11ms)
+85ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+86ms ║║Condition #16 evaluated true (3ms)
+87ms ║║Condition group #15 evaluated true (state did not change) (4ms)
+95ms ║║Comparison (enum) on is (string) on = true (1ms)
+96ms ║║Condition #4 evaluated true (7ms)
+97ms ║║Condition group #3 evaluated true (state did not change) (8ms)
+99ms ║║Cancelling statement #5's schedules...
+117ms ║║Executed physical command [Lounge Room Light].setColorTemperature([2513]) (16ms)
+118ms ║║Executed [Lounge Room Light].setColorTemperature (17ms)
+121ms ║║Executed virtual command [Lounge Room Light].wait (0ms)
+122ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:40 PM AEST (in 2.0s)
+128ms ║║Comparison (enum) on is (string) on = true (0ms)
+129ms ║║Cancelling condition #8's schedules...
+130ms ║║Condition #8 evaluated true (4ms)
+130ms ║║Cancelling condition #7's schedules...
+131ms ║║Condition group #7 evaluated true (state changed) (6ms)
+139ms ║║Comparison (integer) 2 is_greater_than (integer) 40 = false (1ms)
+140ms ║║Condition #21 evaluated false (7ms)
+141ms ║║Condition group #9 evaluated false (state did not change) (9ms)
+149ms ║║Comparison (enum) on is (string) on = true (1ms)
+150ms ║║Condition #12 evaluated true (7ms)
+151ms ║║Condition group #11 evaluated true (state did not change) (8ms)
+152ms ║║Cancelling statement #13's schedules...
+170ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (15ms)
+171ms ║║Executed [Guest Room Light].setColorTemperature (16ms)
+173ms ║║Executed virtual command [Guest Room Light].wait (0ms)
+174ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:40 PM AEST (in 2.0s)
+183ms ║║Comparison (enum) on is (string) on = true (1ms)
+185ms ║║Condition #25 evaluated true (6ms)
+185ms ║║Condition group #24 evaluated true (state did not change) (8ms)
+187ms ║║Cancelling statement #26's schedules...
+204ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (15ms)
+205ms ║║Executed [Play Room Light].setColorTemperature (16ms)
+207ms ║║Executed virtual command [Play Room Light].wait (0ms)
+208ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:40 PM AEST (in 2.0s)
+211ms ║║Fast executing schedules, waiting for 1911ms to sync up
+2139ms ║║Skipped execution of physical command [Lounge Room Light].setLevel([60]) because it would make no change to the device. (6ms)
+2140ms ║║Executed [Lounge Room Light].setLevel (7ms)
+2142ms ║║Fast executing schedules, waiting for 33ms to sync up
+2198ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (6ms)
+2199ms ║║Executed [Guest Room Light].setLevel (7ms)
+2201ms ║║Fast executing schedules, waiting for 9ms to sync up
+2236ms ║║Skipped execution of physical command [Play Room Light].setLevel([60]) because it would make no change to the device. (6ms)
+2237ms ║║Executed [Play Room Light].setLevel (7ms)
+2238ms ║╚Execution stage complete. (2171ms)
+2239ms ╚Event processed successfully (2239ms)
11/23/2020, 8:16:31 PM +792ms
+1ms ╔Received event [Play Room Light].switch = on with a delay of 39ms
+82ms ║RunTime Analysis CS &gt; 12ms &gt; PS &gt; 4ms &gt; PE &gt; 65ms &gt; CE
+84ms ║Runtime (42990 bytes) successfully initialized in 4ms (v0.3.110.20191009) (82ms)
+85ms ║╔Execution stage started
+94ms ║║Comparison (enum) off is (string) off = true (1ms)
+95ms ║║Condition #1 evaluated true (7ms)
+98ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+99ms ║║Condition #2 evaluated true (3ms)
+100ms ║║Condition group #null evaluated true (state did not change) (12ms)
+105ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+106ms ║║Condition #16 evaluated true (4ms)
+107ms ║║Condition group #15 evaluated true (state did not change) (5ms)
+116ms ║║Comparison (enum) on is (string) on = true (1ms)
+117ms ║║Cancelling condition #4's schedules...
+118ms ║║Condition #4 evaluated true (9ms)
+119ms ║║Cancelling condition #3's schedules...
+120ms ║║Condition group #3 evaluated true (state changed) (10ms)
+121ms ║║Cancelling statement #5's schedules...
+143ms ║║Executed physical command [Lounge Room Light].setColorTemperature([2513]) (19ms)
+144ms ║║Executed [Lounge Room Light].setColorTemperature (20ms)
+147ms ║║Executed virtual command [Lounge Room Light].wait (0ms)
+148ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:33 PM AEST (in 2.0s)
+181ms ║║Comparison (enum) off is (string) on = false (1ms)
+183ms ║║Condition #8 evaluated false (31ms)
+184ms ║║Condition group #7 evaluated false (state did not change) (32ms)
+193ms ║║Comparison (enum) on is (string) on = true (1ms)
+194ms ║║Condition #12 evaluated true (8ms)
+195ms ║║Condition group #11 evaluated true (state did not change) (9ms)
+197ms ║║Cancelling statement #13's schedules...
+217ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (17ms)
+218ms ║║Executed [Guest Room Light].setColorTemperature (18ms)
+220ms ║║Executed virtual command [Guest Room Light].wait (0ms)
+221ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:34 PM AEST (in 2.0s)
+228ms ║║Comparison (enum) on is (string) on = true (1ms)
+229ms ║║Cancelling condition #25's schedules...
+230ms ║║Condition #25 evaluated true (4ms)
+231ms ║║Cancelling condition #24's schedules...
+231ms ║║Condition group #24 evaluated true (state changed) (7ms)
+233ms ║║Cancelling statement #26's schedules...
+253ms ║║Executed physical command [Play Room Light].setColorTemperature([2513]) (17ms)
+254ms ║║Executed [Play Room Light].setColorTemperature (18ms)
+257ms ║║Executed virtual command [Play Room Light].wait (0ms)
+258ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:34 PM AEST (in 2.0s)
+261ms ║║Fast executing schedules, waiting for 1887ms to sync up
+2165ms ║║Skipped execution of physical command [Lounge Room Light].setLevel([60]) because it would make no change to the device. (6ms)
+2166ms ║║Executed [Lounge Room Light].setLevel (7ms)
+2169ms ║║Fast executing schedules, waiting for 54ms to sync up
+2248ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (7ms)
+2249ms ║║Executed [Guest Room Light].setLevel (8ms)
+2251ms ║║Fast executing schedules, waiting for 7ms to sync up
+2286ms ║║Skipped execution of physical command [Play Room Light].setLevel([60]) because it would make no change to the device. (6ms)
+2287ms ║║Executed [Play Room Light].setLevel (8ms)
+2289ms ║╚Execution stage complete. (2204ms)
+2290ms ╚Event processed successfully (2290ms)
11/23/2020, 8:16:30 PM +67ms
+1ms ╔Received event [BKTS Home].time = 1606126589888 with a delay of 179ms
+77ms ║RunTime Analysis CS &gt; 20ms &gt; PS &gt; 6ms &gt; PE &gt; 50ms &gt; CE
+80ms ║Runtime (42994 bytes) successfully initialized in 6ms (v0.3.110.20191009) (77ms)
+81ms ║╔Execution stage started
+121ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (7ms)
+122ms ║║Executed [Guest Room Light].setLevel (8ms)
+125ms ║╚Execution stage complete. (45ms)
+127ms ╚Event processed successfully (126ms)
11/23/2020, 8:16:17 PM +727ms
+0ms ╔Received event [Play Room Light].switch = off with a delay of 34ms
+10075ms ║RunTime Analysis CS &gt; 13ms &gt; PS &gt; 10016ms &gt; PE &gt; 46ms &gt; CE
+10075ms ║Piston waited at a semaphore for 10012ms
+10078ms ║Runtime (43074 bytes) successfully initialized in 10016ms (v0.3.110.20191009) (10077ms)
+10079ms ║╔Execution stage started
+10088ms ║║Comparison (enum) off is (string) off = true (1ms)
+10089ms ║║Condition #1 evaluated true (8ms)
+10092ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10094ms ║║Condition #2 evaluated true (3ms)
+10094ms ║║Condition group #null evaluated true (state did not change) (13ms)
+10099ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+10100ms ║║Condition #16 evaluated true (4ms)
+10101ms ║║Condition group #15 evaluated true (state did not change) (5ms)
+10110ms ║║Comparison (enum) off is (string) on = false (2ms)
+10111ms ║║Condition #4 evaluated false (8ms)
+10112ms ║║Condition group #3 evaluated false (state did not change) (9ms)
+10121ms ║║Comparison (enum) off is (string) on = false (1ms)
+10122ms ║║Condition #8 evaluated false (8ms)
+10123ms ║║Condition group #7 evaluated false (state did not change) (8ms)
+10131ms ║║Comparison (enum) on is (string) on = true (1ms)
+10133ms ║║Condition #12 evaluated true (7ms)
+10133ms ║║Condition group #11 evaluated true (state did not change) (9ms)
+10135ms ║║Cancelling statement #13's schedules...
+10156ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (17ms)
+10157ms ║║Executed [Guest Room Light].setColorTemperature (18ms)
+10159ms ║║Executed virtual command [Guest Room Light].wait (0ms)
+10160ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:29 PM AEST (in 2.0s)
+10167ms ║║Comparison (enum) off is (string) on = false (1ms)
+10168ms ║║Condition #25 evaluated false (4ms)
+10169ms ║║Condition group #24 evaluated false (state did not change) (5ms)
+10171ms ║╚Execution stage complete. (93ms)
+10172ms ║Setting up scheduled job for Mon, Nov 23 2020 @ 8:16:29 PM AEST (in 1.99s)
+10178ms ╚Event processed successfully (10178ms)
11/23/2020, 8:16:17 PM +563ms
+1ms ╔Received event [Lounge Room Light].switch = off with a delay of 43ms
+65ms ║RunTime Analysis CS &gt; 10ms &gt; PS &gt; 4ms &gt; PE &gt; 51ms &gt; CE
+68ms ║Runtime (42984 bytes) successfully initialized in 4ms (v0.3.110.20191009) (65ms)
+68ms ║╔Execution stage started
+77ms ║║Comparison (enum) off is (string) off = true (0ms)
+78ms ║║Condition #1 evaluated true (7ms)
+81ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+82ms ║║Condition #2 evaluated true (4ms)
+83ms ║║Condition group #null evaluated true (state did not change) (12ms)
+87ms ║║Comparison (string) :7ce977d20b2a079be9c264159385c191: is (string) :7ce977d20b2a079be9c264159385c191: = true (1ms)
+88ms ║║Condition #16 evaluated true (3ms)
+89ms ║║Condition group #15 evaluated true (state did not change) (5ms)
+94ms ║║Comparison (enum) off is (string) on = false (1ms)
+96ms ║║Cancelling condition #4's schedules...
+97ms ║║Condition #4 evaluated false (5ms)
+97ms ║║Cancelling condition #3's schedules...
+98ms ║║Condition group #3 evaluated false (state changed) (7ms)
+107ms ║║Comparison (enum) off is (string) on = false (1ms)
+108ms ║║Condition #8 evaluated false (8ms)
+109ms ║║Condition group #7 evaluated false (state did not change) (9ms)
+117ms ║║Comparison (enum) on is (string) on = true (1ms)
+118ms ║║Condition #12 evaluated true (7ms)
+119ms ║║Condition group #11 evaluated true (state did not change) (9ms)
+121ms ║║Cancelling statement #13's schedules...
+145ms ║║Executed physical command [Guest Room Light].setColorTemperature([2513]) (22ms)
+146ms ║║Executed [Guest Room Light].setColorTemperature (22ms)
+148ms ║║Executed virtual command [Guest Room Light].wait (1ms)
+149ms ║║Requesting a wake up for Mon, Nov 23 2020 @ 8:16:19 PM AEST (in 2.0s)
+158ms ║║Comparison (enum) off is (string) on = false (1ms)
+160ms ║║Cancelling condition #25's schedules...
+160ms ║║Condition #25 evaluated false (8ms)
+161ms ║║Cancelling condition #24's schedules...
+162ms ║║Condition group #24 evaluated false (state changed) (10ms)
+164ms ║║Fast executing schedules, waiting for 1986ms to sync up
+2174ms ║║Skipped execution of physical command [Guest Room Light].setLevel([50]) because it would make no change to the device. (6ms)
+2175ms ║║Executed [Guest Room Light].setLevel (8ms)
+2176ms ║╚Execution stage complete. (2108ms)
+2177ms ╚Event processed successfully (2177ms)

#2

It must be another piston (or automation) turning the lights off…
There are no “Turn Off” commands anywhere in this piston.


#3

My thinking of the sort of thing that might be happening (not checked against your logs):

If you turn the four lights off they are going to turn off in sequence. Let’s say A B C D.

When A is switched off the piston is triggered and there is then a race on to see if the piston checks the state of B before it is turned off. If it does then the colour temperature is set and then there is a 2 second wait before the level is set. B will almost certainly have switched off during that wait but it will be switched on again as the level is set after the wait. As the wait is only two seconds the task cancellation policy isn’t a factor.

If the piston doesn’t see B as still on, it might well see C or D on as there is that extra little bit of time before they turn off. (I originally wrote off instead of on here).

The event for B being switched off will probably fire the piston during a wait, and the new instance will promptly hit a semaphore and end up waiting for ten seconds before it does anything.

And so on with C and D.

Basically there are a lot of events hitting that piston in too short a time and those 2 second waits are working against you.


#4

@orangebucket has nailed this one.
(Somehow I had read your question backwards)


#5

Correct there is no off command in this piston as I am only interested in changing the colour and brightness when the lights are turned on. However I use voice commands with Google to turn off living room lights for example. When turning off both lights simultaneously it causes this piston to turn one of the lights back on.


#6

@orangebucket Is there a better way that I can be writing my pistons to achieve the same affect without the lights turning back on?

Because I understood through my own troubleshooting that by turning off multiple lights off at once caused this issue. Which is why in a different piston which I referred to in my original post by putting in delays.

Basically as I close my bedroom door at night it starts turning off lights but as you will see with the attached screen shot I have delay times on them. This prevents all the lights in the house getting turned off and them all coming back on.


#7

The ‘d0pmz’ piston in the previous post is really a different kettle of fish because it is only subscribing to the contact change and so will only run when the contact changes to open or to closed.

Incidentally I would suggest that you consider avoiding using ‘only when location mode is Night’ and instead change to ‘if Contact Sensor 5’s contact changes to closed AND Location mode is Night’ (in that order). To cut a long story short you want the piston to evaluate the trigger conditions that made them run, otherwise they can lose track of whether attributes have changed or not.

The problem with the original ‘wmva5’ piston was twofold: it was subscribed to all the light changes; and it was considering the current state of all the lights when it ran rather than concentrating on the ones that had changed. It might have been better to simply use a separate piston for each light.

As a single piston it might have been better to use ‘if White Bulb 2’s switch changes to on’ etc so the piston was only doing anything when each bulb turned on. However if you did that you would probably also want to ‘enable parallelism’ in the piston settings so each instance of the piston would execute immediately.


#8

The d0pmz piston was more just an example of how I needed to set individually timers to “fix” the issues described in the first piston.

For the first piston posted I did try using changes to on instead of is on. However the issue that I have with Changes to on is that when my location mode changes the lights won’t change as they are already on.

So how would I be able to dim the lights at night without turning lights on that were off and just dimming the lights that are on currently?