Lights turning based on the lux level


#1

1) Give a description of the problem
Lights are dimming as expected when the lux level register. I have them setup to wait 30 minutes after the initial lux register to dim down over a period of time. That too happened. but after that 30 minutes, the creeped back up to the initial dim level.

2) What is the expected behaviour?
I want the lights to dim hwen the sensor register the lux level i set. I want the piston to wait 30 minutes then slowly dim the light down and stay at that level.

3) What is happening/not happening?
The lights come on, then dim down to the level I set after the waiting period. They don’t stay there, the creep back up.
**4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full
Apologies, the long is terribly long…

|5/10/2020, 8:05:54 PM +255ms|
|+1ms|╔Received event [My home].time = 1589155554977 with a delay of -722ms|
|+111ms|║RunTime Analysis CS > 70ms > PS > 7ms > PE > 34ms > CE|
|+114ms|║Runtime (38847 bytes) successfully initialized in 7ms (v0.3.110.20191009) (113ms)|
|+115ms|║╔Execution stage started|
|+121ms|║║Cancelling condition #14's schedules...|
|+122ms|║║Condition #14 evaluated true (1ms)|
|+182ms|║║Comparison (time) 72354379 is_between (time) 1589156700000 .. (time) 1589156700000 = true (11ms)|
|+183ms|║║Time restriction check passed|
|+185ms|║║Condition #15 evaluated true (62ms)|
|+186ms|║║Cancelling condition #1's schedules...|
|+187ms|║║Condition group #1 evaluated true (state changed) (67ms)|
|+189ms|║║Cancelling statement #7's schedules...|
|+210ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([10]) (11ms)|
|+211ms|║║Executed virtual command [Living Room Pot Lights 1].fadeLevel (16ms)|
|+228ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([10]) (11ms)|
|+229ms|║║Executed virtual command [Living Room Pot Lights 2].fadeLevel (16ms)|
|+234ms|║║Executed virtual command [Living Room Pot Lights 1, Living Room Pot Lights 2].wait (1ms)|
|+236ms|║║Requesting a wake up for Sun, May 10 2020 @ 8:35:54 PM EDT (in 1800.0s)|
|+242ms|║╚Execution stage complete. (128ms)|
|+244ms|║Setting up scheduled job for Sun, May 10 2020 @ 8:35:54 PM EDT (in 1799.994s)|
|+252ms|╚Event processed successfully (251ms)|
|5/10/2020, 8:03:32 PM +194ms|
|+1ms|╔Received event [My home].time = 1589155412453 with a delay of -259ms|
|+48ms|║RunTime Analysis CS > 15ms > PS > 4ms > PE > 29ms > CE|
|+50ms|║Runtime (38846 bytes) successfully initialized in 4ms (v0.3.110.20191009) (49ms)|
|+51ms|║╔Execution stage started|
|+61ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([10]) (6ms)|
|+63ms|║║Fast executing schedules, waiting for 213ms to sync up|
|+284ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([10]) (5ms)|
|+285ms|║║Fast executing schedules, waiting for 73ms to sync up|
|+365ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([10]) (4ms)|
|+367ms|║║Fast executing schedules, waiting for 8ms to sync up|
|+381ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([10]) (3ms)|
|+393ms|║║Executed virtual command [Living Room Pot Lights 1, Living Room Pot Lights 2].wait (0ms)|
|+394ms|║║Requesting a wake up for Sun, May 10 2020 @ 8:33:32 PM EDT (in 1800.0s)|
|+398ms|║╚Execution stage complete. (346ms)|
|+399ms|║Setting up scheduled job for Sun, May 10 2020 @ 8:05:54 PM EDT (in 142.385s), with 1 more job pending|
|+408ms|╚Event processed successfully (407ms)|
|5/10/2020, 8:00:15 PM +957ms|
|+0ms|╔Received event [My home].time = 1589155212452 with a delay of 3504ms|
|+196ms|║RunTime Analysis CS > 120ms > PS > 8ms > PE > 69ms > CE|
|+200ms|║Runtime (38848 bytes) successfully initialized in 8ms (v0.3.110.20191009) (198ms)|
|+201ms|║╔Execution stage started|
|+223ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([9]) (15ms)|
|+240ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([9]) (12ms)|
|+242ms|║╚Execution stage complete. (42ms)|
|+245ms|║Setting up scheduled job for Sun, May 10 2020 @ 8:03:32 PM EDT (in 196.252s), with 5 more jobs pending|
|+252ms|╚Event processed successfully (252ms)|
|5/10/2020, 7:59:54 PM +900ms|
|+1ms|╔Received event [Living Room Sensor].illuminance = 1 with a delay of 375ms|
|+55ms|║RunTime Analysis CS > 17ms > PS > 5ms > PE > 32ms > CE|
|+57ms|║Runtime (38849 bytes) successfully initialized in 5ms (v0.3.110.20191009) (56ms)|
|+58ms|║╔Execution stage started|
|+68ms|║║Comparison (enum) present is (string) present = true (1ms)|
|+70ms|║║Condition #13 evaluated true (8ms)|
|+75ms|║║Comparison (integer) 1 stays_less_than (integer) 25 = true (1ms)|
|+77ms|║║Adding a timed trigger schedule for condition 14|
|+79ms|║║Cancelling condition #14's schedules...|
|+80ms|║║Condition #14 evaluated false (9ms)|
|+81ms|║║Cancelling condition #1's schedules...|
|+82ms|║║Condition group #1 evaluated false (state changed) (19ms)|
|+86ms|║╚Execution stage complete. (28ms)|
|+89ms|║Setting up scheduled job for Sun, May 10 2020 @ 8:00:12 PM EDT (in 17.464s), with 7 more jobs pending|
|+101ms|╚Event processed successfully (101ms)|
|5/10/2020, 7:56:51 PM +189ms|
|+1ms|╔Received event [My home].time = 1589155012452 with a delay of -1263ms|
|+94ms|║RunTime Analysis CS > 55ms > PS > 6ms > PE > 33ms > CE|
|+97ms|║Runtime (38845 bytes) successfully initialized in 6ms (v0.3.110.20191009) (94ms)|
|+98ms|║╔Execution stage started|
|+115ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([8]) (13ms)|
|+118ms|║║Fast executing schedules, waiting for 1163ms to sync up|
|+1296ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([8]) (12ms)|
|+1298ms|║╚Execution stage complete. (1201ms)|
|+1301ms|║Setting up scheduled job for Sun, May 10 2020 @ 8:00:12 PM EDT (in 199.963s), with 6 more jobs pending|
|+1309ms|╚Event processed successfully (1309ms)|
|5/10/2020, 7:53:32 PM +229ms|
|+1ms|╔Received event [My home].time = 1589154812677 with a delay of -448ms|
|+88ms|║RunTime Analysis CS > 48ms > PS > 6ms > PE > 33ms > CE|
|+90ms|║Runtime (38846 bytes) successfully initialized in 6ms (v0.3.110.20191009) (88ms)|
|+91ms|║╔Execution stage started|
|+99ms|║║Cancelling condition #14's schedules...|
|+100ms|║║Condition #14 evaluated true (1ms)|
|+195ms|║║Comparison (time) 71612330 is_between (time) 1589156700000 .. (time) 1589156700000 = true (9ms)|
|+196ms|║║Time restriction check passed|
|+198ms|║║Condition #15 evaluated true (97ms)|
|+199ms|║║Cancelling condition #1's schedules...|
|+200ms|║║Condition group #1 evaluated true (state changed) (103ms)|
|+202ms|║║Cancelling statement #7's schedules...|
|+222ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([7]) (11ms)|
|+224ms|║║Executed virtual command [Living Room Pot Lights 1].fadeLevel (16ms)|
|+239ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([7]) (10ms)|
|+241ms|║║Executed virtual command [Living Room Pot Lights 2].fadeLevel (15ms)|
|+242ms|║║Requesting a wake up for Sun, May 10 2020 @ 8:03:32 PM EDT (in 600.1s)|
|+250ms|║╚Execution stage complete. (159ms)|
|+253ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:56:52 PM EDT (in 199.97s), with 8 more jobs pending|
|+266ms|╚Event processed successfully (265ms)|
|5/10/2020, 7:52:47 PM +103ms|
|+0ms|╔Received event [My home].time = 1589154767103 with a delay of -1ms|
|+77ms|║RunTime Analysis CS > 37ms > PS > 5ms > PE > 35ms > CE|
|+81ms|║Runtime (38844 bytes) successfully initialized in 5ms (v0.3.110.20191009) (79ms)|
|+82ms|║╔Execution stage started|
|+97ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([7]) (7ms)|
|+110ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([7]) (6ms)|
|+114ms|║╚Execution stage complete. (31ms)|
|+118ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:53:32 PM EDT (in 45.457s), with 9 more jobs pending|
|+142ms|╚Event processed successfully (142ms)|
|5/10/2020, 7:51:23 PM +921ms|
|+0ms|╔Received event [My home].time = 1589154681389 with a delay of 2532ms|
|+48ms|║RunTime Analysis CS > 15ms > PS > 5ms > PE > 27ms > CE|
|+50ms|║Runtime (38846 bytes) successfully initialized in 5ms (v0.3.110.20191009) (49ms)|
|+51ms|║╔Execution stage started|
|+63ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([6]) (6ms)|
|+74ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([6]) (6ms)|
|+77ms|║╚Execution stage complete. (26ms)|
|+81ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:52:47 PM EDT (in 83.101s), with 11 more jobs pending|
|+126ms|╚Event processed successfully (126ms)|
|5/10/2020, 7:49:55 PM +131ms|
|+0ms|╔Received event [My home].time = 1589154595675 with a delay of -545ms|
|+80ms|║RunTime Analysis CS > 51ms > PS > 3ms > PE > 26ms > CE|
|+82ms|║Runtime (38846 bytes) successfully initialized in 3ms (v0.3.110.20191009) (81ms)|
|+83ms|║╔Execution stage started|
|+95ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([5]) (7ms)|
|+99ms|║║Fast executing schedules, waiting for 465ms to sync up|
|+573ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([5]) (6ms)|
|+577ms|║╚Execution stage complete. (494ms)|
|+581ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:51:21 PM EDT (in 85.678s), with 13 more jobs pending|
|+589ms|╚Event processed successfully (588ms)|
|5/10/2020, 7:48:29 PM +101ms|
|+1ms|╔Received event [My home].time = 1589154509960 with a delay of -859ms|
|+88ms|║RunTime Analysis CS > 40ms > PS > 9ms > PE > 38ms > CE|
|+91ms|║Runtime (38846 bytes) successfully initialized in 9ms (v0.3.110.20191009) (89ms)|
|+93ms|║╔Execution stage started|
|+116ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([4]) (12ms)|
|+120ms|║║Fast executing schedules, waiting for 758ms to sync up|
|+895ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([4]) (13ms)|
|+899ms|║╚Execution stage complete. (807ms)|
|+904ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:49:55 PM EDT (in 85.671s), with 15 more jobs pending|
|+971ms|╚Event processed successfully (970ms)|
|5/10/2020, 7:47:32 PM +591ms|
|+2ms|╔Received event [Living Room Sensor].illuminance = 0 with a delay of 145ms|
|+63ms|║RunTime Analysis CS > 22ms > PS > 5ms > PE > 35ms > CE|
|+65ms|║Runtime (38849 bytes) successfully initialized in 5ms (v0.3.110.20191009) (62ms)|
|+66ms|║╔Execution stage started|
|+77ms|║║Comparison (enum) present is (string) present = true (1ms)|
|+78ms|║║Condition #13 evaluated true (8ms)|
|+82ms|║║Comparison (integer) 0 stays_less_than (integer) 25 = true (1ms)|
|+85ms|║║Adding a timed trigger schedule for condition 14|
|+88ms|║║Cancelling condition #14's schedules...|
|+88ms|║║Condition #14 evaluated false (9ms)|
|+89ms|║║Cancelling condition #1's schedules...|
|+90ms|║║Condition group #1 evaluated false (state changed) (20ms)|
|+99ms|║╚Execution stage complete. (33ms)|
|+103ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:48:29 PM EDT (in 57.266s), with 17 more jobs pending|
|+114ms|╚Event processed successfully (114ms)|
|5/10/2020, 7:47:04 PM +103ms|
|+0ms|╔Received event [My home].time = 1589154425242 with a delay of -1139ms|
|+63ms|║RunTime Analysis CS > 21ms > PS > 7ms > PE > 35ms > CE|
|+66ms|║Runtime (38847 bytes) successfully initialized in 7ms (v0.3.110.20191009) (64ms)|
|+66ms|║╔Execution stage started|
|+73ms|║║Cancelling condition #14's schedules...|
|+74ms|║║Condition #14 evaluated true (1ms)|
|+112ms|║║Comparison (time) 71224178 is_between (time) 1589156700000 .. (time) 1589156700000 = true (9ms)|
|+114ms|║║Time restriction check passed|
|+115ms|║║Condition #15 evaluated true (40ms)|
|+116ms|║║Cancelling condition #1's schedules...|
|+117ms|║║Condition group #1 evaluated true (state changed) (46ms)|
|+120ms|║║Cancelling statement #7's schedules...|
|+140ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([3]) (11ms)|
|+146ms|║║Executed virtual command [Living Room Pot Lights 1].fadeLevel (20ms)|
|+162ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([3]) (10ms)|
|+165ms|║║Executed virtual command [Living Room Pot Lights 2].fadeLevel (17ms)|
|+166ms|║║Requesting a wake up for Sun, May 10 2020 @ 7:57:04 PM EDT (in 600.1s)|
|+176ms|║╚Execution stage complete. (110ms)|
|+181ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:48:29 PM EDT (in 85.677s), with 16 more jobs pending|
|+189ms|╚Event processed successfully (189ms)|
|5/10/2020, 7:41:05 PM +140ms|
|+1ms|╔Received event [Living Room Sensor].illuminance = 0 with a delay of 123ms|
|+51ms|║RunTime Analysis CS > 21ms > PS > 4ms > PE > 26ms > CE|
|+53ms|║Runtime (38849 bytes) successfully initialized in 4ms (v0.3.110.20191009) (52ms)|
|+54ms|║╔Execution stage started|
|+94ms|║║Comparison (enum) present is (string) present = true (2ms)|
|+95ms|║║Condition #13 evaluated true (37ms)|
|+99ms|║║Comparison (integer) 0 stays_less_than (integer) 25 = true (1ms)|
|+101ms|║║Adding a timed trigger schedule for condition 14|
|+103ms|║║Cancelling condition #14's schedules...|
|+104ms|║║Condition #14 evaluated false (8ms)|
|+105ms|║║Cancelling condition #1's schedules...|
|+105ms|║║Condition group #1 evaluated false (state changed) (48ms)|
|+107ms|║╚Execution stage complete. (53ms)|
|+108ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:47:05 PM EDT (in 359.994s)|
|+116ms|╚Event processed successfully (115ms)|
|5/10/2020, 7:37:00 PM +145ms|
|+1ms|╔Received event [My home].time = 1589153821146 with a delay of -1001ms|
|+62ms|║RunTime Analysis CS > 23ms > PS > 6ms > PE > 33ms > CE|
|+64ms|║Runtime (38845 bytes) successfully initialized in 6ms (v0.3.110.20191009) (63ms)|
|+65ms|║╔Execution stage started|
|+81ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([3]) (11ms)|
|+82ms|║║Fast executing schedules, waiting for 935ms to sync up|
|+1032ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([3]) (12ms)|
|+1034ms|║║Fast executing schedules, waiting for 68ms to sync up|
|+1113ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([3]) (8ms)|
|+1115ms|║║Fast executing schedules, waiting for 4ms to sync up|
|+1129ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([3]) (7ms)|
|+1140ms|║╚Execution stage complete. (1075ms)|
|+1141ms|╚Event processed successfully (1141ms)|
|5/10/2020, 7:35:37 PM +465ms|
|+1ms|╔Received event [My home].time = 1589153735432 with a delay of 2032ms|
|+98ms|║RunTime Analysis CS > 55ms > PS > 8ms > PE > 36ms > CE|
|+101ms|║Runtime (38844 bytes) successfully initialized in 8ms (v0.3.110.20191009) (99ms)|
|+103ms|║╔Execution stage started|
|+124ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([4]) (12ms)|
|+142ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([4]) (11ms)|
|+146ms|║╚Execution stage complete. (44ms)|
|+150ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:37:01 PM EDT (in 83.532s), with 4 more jobs pending|
|+159ms|╚Event processed successfully (159ms)|
|5/10/2020, 7:34:09 PM +939ms|
|+1ms|╔Received event [My home].time = 1589153649718 with a delay of 221ms|
|+66ms|║RunTime Analysis CS > 28ms > PS > 7ms > PE > 31ms > CE|
|+68ms|║Runtime (38843 bytes) successfully initialized in 7ms (v0.3.110.20191009) (67ms)|
|+69ms|║╔Execution stage started|
|+90ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([5]) (16ms)|
|+105ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([5]) (11ms)|
|+108ms|║╚Execution stage complete. (39ms)|
|+111ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:35:35 PM EDT (in 85.383s), with 6 more jobs pending|
|+127ms|╚Event processed successfully (127ms)|
|5/10/2020, 7:32:43 PM +141ms|
|+1ms|╔Received event [My home].time = 1589153564004 with a delay of -863ms|
|+87ms|║RunTime Analysis CS > 53ms > PS > 6ms > PE > 28ms > CE|
|+89ms|║Runtime (38844 bytes) successfully initialized in 6ms (v0.3.110.20191009) (88ms)|
|+90ms|║╔Execution stage started|
|+109ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([6]) (12ms)|
|+111ms|║║Fast executing schedules, waiting for 767ms to sync up|
|+893ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([6]) (11ms)|
|+897ms|║╚Execution stage complete. (806ms)|
|+901ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:34:09 PM EDT (in 85.677s), with 8 more jobs pending|
|+915ms|╚Event processed successfully (915ms)|
|5/10/2020, 7:31:17 PM +259ms|
|+0ms|╔Received event [My home].time = 1589153478289 with a delay of -1030ms|
|+58ms|║RunTime Analysis CS > 31ms > PS > 4ms > PE > 23ms > CE|
|+60ms|║Runtime (38845 bytes) successfully initialized in 4ms (v0.3.110.20191009) (59ms)|
|+61ms|║╔Execution stage started|
|+72ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([7]) (6ms)|
|+75ms|║║Fast executing schedules, waiting for 972ms to sync up|
|+1056ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([7]) (6ms)|
|+1060ms|║╚Execution stage complete. (999ms)|
|+1063ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:32:44 PM EDT (in 85.682s), with 10 more jobs pending|
|+1076ms|╚Event processed successfully (1076ms)|
|5/10/2020, 7:29:51 PM +111ms|
|+0ms|╔Received event [My home].time = 1589153392575 with a delay of -1465ms|
|+65ms|║RunTime Analysis CS > 34ms > PS > 6ms > PE > 25ms > CE|
|+67ms|║Runtime (38845 bytes) successfully initialized in 6ms (v0.3.110.20191009) (65ms)|
|+69ms|║╔Execution stage started|
|+85ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([8]) (9ms)|
|+90ms|║║Fast executing schedules, waiting for 1391ms to sync up|
|+1492ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([8]) (6ms)|
|+1495ms|║╚Execution stage complete. (1427ms)|
|+1499ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:31:18 PM EDT (in 85.68s), with 12 more jobs pending|
|+1510ms|╚Event processed successfully (1510ms)|
|5/10/2020, 7:28:26 PM +197ms|
|+1ms|╔Received event [My home].time = 1589153306861 with a delay of -664ms|
|+72ms|║RunTime Analysis CS > 32ms > PS > 7ms > PE > 32ms > CE|
|+74ms|║Runtime (38844 bytes) successfully initialized in 7ms (v0.3.110.20191009) (72ms)|
|+75ms|║╔Execution stage started|
|+93ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([9]) (12ms)|
|+96ms|║║Fast executing schedules, waiting for 583ms to sync up|
|+694ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([9]) (11ms)|
|+699ms|║╚Execution stage complete. (624ms)|
|+704ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:29:52 PM EDT (in 85.675s), with 14 more jobs pending|
|+713ms|╚Event processed successfully (713ms)|
|5/10/2020, 7:27:01 PM +64ms|
|+0ms|╔Received event [My home].time = 1589153222345 with a delay of -1281ms|
|+48ms|║RunTime Analysis CS > 18ms > PS > 6ms > PE > 24ms > CE|
|+51ms|║Runtime (38845 bytes) successfully initialized in 6ms (v0.3.110.20191009) (49ms)|
|+51ms|║╔Execution stage started|
|+79ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([10]) (10ms)|
|+85ms|║║Executed virtual command [Living Room Pot Lights 1].fadeLevel (20ms)|
|+98ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([10]) (8ms)|
|+100ms|║║Executed virtual command [Living Room Pot Lights 2].fadeLevel (14ms)|
|+101ms|║║Requesting a wake up for Sun, May 10 2020 @ 7:37:01 PM EDT (in 600.1s)|
|+112ms|║╚Execution stage complete. (61ms)|
|+116ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:28:26 PM EDT (in 85.681s), with 16 more jobs pending|
|+126ms|╚Event processed successfully (126ms)|
|5/10/2020, 6:57:01 PM +58ms|
|+1ms|╔Received event [My home].time = 1589151422202 with a delay of -1144ms|
|+48ms|║RunTime Analysis CS > 18ms > PS > 5ms > PE > 24ms > CE|
|+50ms|║Runtime (38846 bytes) successfully initialized in 5ms (v0.3.110.20191009) (48ms)|
|+51ms|║╔Execution stage started|
|+66ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([10]) (10ms)|
|+67ms|║║Fast executing schedules, waiting for 1096ms to sync up|
|+1176ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([10]) (10ms)|
|+1178ms|║║Fast executing schedules, waiting for 66ms to sync up|
|+1253ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([10]) (6ms)|
|+1254ms|║║Fast executing schedules, waiting for 10ms to sync up|
|+1273ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([10]) (6ms)|
|+1285ms|║║Executed virtual command [Living Room Pot Lights 1, Living Room Pot Lights 2].wait (1ms)|
|+1286ms|║║Requesting a wake up for Sun, May 10 2020 @ 7:27:02 PM EDT (in 1800.0s)|
|+1290ms|║╚Execution stage complete. (1239ms)|
|+1291ms|║Setting up scheduled job for Sun, May 10 2020 @ 7:27:02 PM EDT (in 1799.996s)|
|+1299ms|╚Event processed successfully (1299ms)|
|5/10/2020, 6:56:26 PM +162ms|
|+1ms|╔Received event [My home].time = 1589151386927 with a delay of -765ms|
|+75ms|║RunTime Analysis CS > 41ms > PS > 5ms > PE > 29ms > CE|
|+78ms|║Runtime (38845 bytes) successfully initialized in 5ms (v0.3.110.20191009) (74ms)|
|+79ms|║╔Execution stage started|
|+95ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([11]) (12ms)|
|+97ms|║╚Execution stage complete. (19ms)|
|+99ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:57:02 PM EDT (in 35.942s), with 4 more jobs pending|
|+108ms|╚Event processed successfully (108ms)|
|5/10/2020, 6:55:51 PM +155ms|
|+0ms|╔Received event [My home].time = 1589151351632 with a delay of -478ms|
|+64ms|║RunTime Analysis CS > 37ms > PS > 5ms > PE > 23ms > CE|
|+67ms|║Runtime (38845 bytes) successfully initialized in 5ms (v0.3.110.20191009) (65ms)|
|+67ms|║╔Execution stage started|
|+83ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([12]) (12ms)|
|+85ms|║╚Execution stage complete. (18ms)|
|+88ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:56:26 PM EDT (in 35.685s), with 5 more jobs pending|
|+95ms|╚Event processed successfully (96ms)|
|5/10/2020, 6:55:46 PM +223ms|
|+0ms|╔Received event [My home].time = 1589151347202 with a delay of -980ms|
|+51ms|║RunTime Analysis CS > 22ms > PS > 7ms > PE > 23ms > CE|
|+54ms|║Runtime (38845 bytes) successfully initialized in 7ms (v0.3.110.20191009) (51ms)|
|+55ms|║╔Execution stage started|
|+69ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([9]) (10ms)|
|+71ms|║╚Execution stage complete. (17ms)|
|+74ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:55:51 PM EDT (in 5.336s), with 6 more jobs pending|
|+84ms|╚Event processed successfully (84ms)|
|5/10/2020, 6:55:16 PM +212ms|
|+0ms|╔Received event [My home].time = 1589151316338 with a delay of -127ms|
|+63ms|║RunTime Analysis CS > 32ms > PS > 7ms > PE > 24ms > CE|
|+65ms|║Runtime (38845 bytes) successfully initialized in 7ms (v0.3.110.20191009) (64ms)|
|+67ms|║╔Execution stage started|
|+86ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([13]) (12ms)|
|+89ms|║╚Execution stage complete. (23ms)|
|+92ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:55:47 PM EDT (in 30.899s), with 7 more jobs pending|
|+100ms|╚Event processed successfully (100ms)|
|5/10/2020, 6:54:40 PM +107ms|
|+0ms|╔Received event [My home].time = 1589151281044 with a delay of -938ms|
|+72ms|║RunTime Analysis CS > 42ms > PS > 6ms > PE > 24ms > CE|
|+74ms|║Runtime (38845 bytes) successfully initialized in 6ms (v0.3.110.20191009) (73ms)|
|+75ms|║╔Execution stage started|
|+93ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([14]) (13ms)|
|+96ms|║╚Execution stage complete. (21ms)|
|+100ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:55:16 PM EDT (in 36.132s), with 8 more jobs pending|
|+112ms|╚Event processed successfully (112ms)|
|5/10/2020, 6:54:31 PM +101ms|
|+0ms|╔Received event [My home].time = 1589151272202 with a delay of -1101ms|
|+45ms|║RunTime Analysis CS > 19ms > PS > 5ms > PE > 21ms > CE|
|+47ms|║Runtime (38846 bytes) successfully initialized in 5ms (v0.3.110.20191009) (46ms)|
|+48ms|║╔Execution stage started|
|+58ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([8]) (6ms)|
|+60ms|║╚Execution stage complete. (12ms)|
|+63ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:54:41 PM EDT (in 9.88s), with 9 more jobs pending|
|+71ms|╚Event processed successfully (71ms)|
|5/10/2020, 6:54:05 PM +170ms|
|+1ms|╔Received event [My home].time = 1589151245750 with a delay of -580ms|
|+43ms|║RunTime Analysis CS > 17ms > PS > 5ms > PE > 21ms > CE|
|+45ms|║Runtime (38845 bytes) successfully initialized in 5ms (v0.3.110.20191009) (43ms)|
|+46ms|║╔Execution stage started|
|+59ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([15]) (8ms)|
|+62ms|║╚Execution stage complete. (16ms)|
|+66ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:54:32 PM EDT (in 26.967s), with 10 more jobs pending|
|+75ms|╚Event processed successfully (75ms)|
|5/10/2020, 6:53:31 PM +273ms|
|+1ms|╔Received event [My home].time = 1589151210455 with a delay of 818ms|
|+54ms|║RunTime Analysis CS > 21ms > PS > 6ms > PE > 27ms > CE|
|+57ms|║Runtime (38844 bytes) successfully initialized in 6ms (v0.3.110.20191009) (55ms)|
|+59ms|║╔Execution stage started|
|+81ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([16]) (14ms)|
|+87ms|║╚Execution stage complete. (29ms)|
|+94ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:54:05 PM EDT (in 34.385s), with 11 more jobs pending|
|+102ms|╚Event processed successfully (102ms)|
|5/10/2020, 6:53:16 PM +191ms|
|+1ms|╔Received event [My home].time = 1589151197201 with a delay of -1010ms|
|+178ms|║RunTime Analysis CS > 25ms > PS > 128ms > PE > 25ms > CE|
|+180ms|║Runtime (38851 bytes) successfully initialized in 128ms (v0.3.110.20191009) (179ms)|
|+181ms|║╔Execution stage started|
|+201ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([7]) (14ms)|
|+205ms|║╚Execution stage complete. (24ms)|
|+210ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:53:30 PM EDT (in 14.055s), with 12 more jobs pending|
|+217ms|╚Event processed successfully (217ms)|
|5/10/2020, 6:52:56 PM +853ms|
|+0ms|╔Received event [My home].time = 1589151175161 with a delay of 1692ms|
|+38ms|║RunTime Analysis CS > 15ms > PS > 5ms > PE > 17ms > CE|
|+40ms|║Runtime (38845 bytes) successfully initialized in 5ms (v0.3.110.20191009) (39ms)|
|+41ms|║╔Execution stage started|
|+53ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([17]) (7ms)|
|+56ms|║╚Execution stage complete. (16ms)|
|+60ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:53:17 PM EDT (in 20.289s), with 13 more jobs pending|
|+68ms|╚Event processed successfully (68ms)|
|5/10/2020, 6:52:19 PM +116ms|
|+1ms|╔Received event [My home].time = 1589151139867 with a delay of -752ms|
|+84ms|║RunTime Analysis CS > 52ms > PS > 8ms > PE > 25ms > CE|
|+87ms|║Runtime (38845 bytes) successfully initialized in 8ms (v0.3.110.20191009) (83ms)|
|+88ms|║╔Execution stage started|
|+112ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([18]) (16ms)|
|+118ms|║╚Execution stage complete. (31ms)|
|+123ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:52:55 PM EDT (in 35.923s), with 14 more jobs pending|
|+132ms|╚Event processed successfully (131ms)|
|5/10/2020, 6:52:01 PM +63ms|
|+1ms|╔Received event [My home].time = 1589151122201 with a delay of -1138ms|
|+54ms|║RunTime Analysis CS > 25ms > PS > 7ms > PE > 22ms > CE|
|+57ms|║Runtime (38846 bytes) successfully initialized in 7ms (v0.3.110.20191009) (55ms)|
|+58ms|║╔Execution stage started|
|+75ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([6]) (12ms)|
|+79ms|║╚Execution stage complete. (22ms)|
|+84ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:52:19 PM EDT (in 18.721s), with 15 more jobs pending|
|+94ms|╚Event processed successfully (94ms)|
|5/10/2020, 6:51:44 PM +122ms|
|+0ms|╔Received event [My home].time = 1589151104573 with a delay of -452ms|
|+63ms|║RunTime Analysis CS > 41ms > PS > 5ms > PE > 18ms > CE|
|+65ms|║Runtime (38845 bytes) successfully initialized in 5ms (v0.3.110.20191009) (64ms)|
|+66ms|║╔Execution stage started|
|+81ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([19]) (9ms)|
|+85ms|║╚Execution stage complete. (19ms)|
|+90ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:52:02 PM EDT (in 17.99s), with 16 more jobs pending|
|+98ms|╚Event processed successfully (98ms)|
|5/10/2020, 6:51:08 PM +78ms|
|+0ms|╔Received event [My home].time = 1589151069278 with a delay of -1200ms|
|+62ms|║RunTime Analysis CS > 30ms > PS > 6ms > PE > 26ms > CE|
|+65ms|║Runtime (38846 bytes) successfully initialized in 6ms (v0.3.110.20191009) (64ms)|
|+66ms|║╔Execution stage started|
|+83ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([20]) (10ms)|
|+88ms|║╚Execution stage complete. (23ms)|
|+93ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:51:44 PM EDT (in 36.402s), with 17 more jobs pending|
|+100ms|╚Event processed successfully (99ms)|
|5/10/2020, 6:50:47 PM +221ms|
|+1ms|╔Received event [My home].time = 1589151047201 with a delay of 19ms|
|+62ms|║RunTime Analysis CS > 29ms > PS > 8ms > PE > 26ms > CE|
|+65ms|║Runtime (38843 bytes) successfully initialized in 8ms (v0.3.110.20191009) (63ms)|
|+66ms|║╔Execution stage started|
|+88ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([5]) (12ms)|
|+94ms|║╚Execution stage complete. (28ms)|
|+100ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:51:09 PM EDT (in 21.958s), with 18 more jobs pending|
|+107ms|╚Event processed successfully (107ms)|
|5/10/2020, 6:50:33 PM +94ms|
|+0ms|╔Received event [My home].time = 1589151033984 with a delay of -891ms|
|+40ms|║RunTime Analysis CS > 19ms > PS > 4ms > PE > 18ms > CE|
|+42ms|║Runtime (38845 bytes) successfully initialized in 4ms (v0.3.110.20191009) (41ms)|
|+43ms|║╔Execution stage started|
|+55ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([21]) (6ms)|
|+60ms|║╚Execution stage complete. (17ms)|
|+65ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:50:47 PM EDT (in 14.042s), with 19 more jobs pending|
|+140ms|╚Event processed successfully (140ms)|
|5/10/2020, 6:49:58 PM +40ms|
|+1ms|╔Received event [My home].time = 1589150998690 with a delay of -650ms|
|+46ms|║RunTime Analysis CS > 21ms > PS > 5ms > PE > 20ms > CE|
|+48ms|║Runtime (38845 bytes) successfully initialized in 5ms (v0.3.110.20191009) (47ms)|
|+49ms|║╔Execution stage started|
|+64ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([22]) (6ms)|
|+69ms|║╚Execution stage complete. (19ms)|
|+74ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:50:33 PM EDT (in 35.871s), with 20 more jobs pending|
|+85ms|╚Event processed successfully (85ms)|
|5/10/2020, 6:49:31 PM +163ms|
|+0ms|╔Received event [My home].time = 1589150972201 with a delay of -1038ms|
|+73ms|║RunTime Analysis CS > 31ms > PS > 9ms > PE > 33ms > CE|
|+77ms|║Runtime (38846 bytes) successfully initialized in 9ms (v0.3.110.20191009) (76ms)|
|+79ms|║╔Execution stage started|
|+109ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([4]) (16ms)|
|+117ms|║╚Execution stage complete. (39ms)|
|+125ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:49:58 PM EDT (in 27.403s), with 21 more jobs pending|
|+132ms|╚Event processed successfully (132ms)|
|5/10/2020, 6:49:23 PM +180ms|
|+1ms|╔Received event [My home].time = 1589150963396 with a delay of -216ms|
|+58ms|║RunTime Analysis CS > 31ms > PS > 6ms > PE > 20ms > CE|
|+60ms|║Runtime (38845 bytes) successfully initialized in 6ms (v0.3.110.20191009) (59ms)|
|+61ms|║╔Execution stage started|
|+74ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([23]) (6ms)|
|+79ms|║╚Execution stage complete. (18ms)|
|+85ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:49:32 PM EDT (in 8.936s), with 22 more jobs pending|
|+94ms|╚Event processed successfully (93ms)|
|5/10/2020, 6:48:47 PM +146ms|
|+0ms|╔Received event [My home].time = 1589150928102 with a delay of -956ms|
|+52ms|║RunTime Analysis CS > 27ms > PS > 5ms > PE > 19ms > CE|
|+54ms|║Runtime (38845 bytes) successfully initialized in 5ms (v0.3.110.20191009) (53ms)|
|+55ms|║╔Execution stage started|
|+73ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([24]) (11ms)|
|+80ms|║╚Execution stage complete. (25ms)|
|+90ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:49:23 PM EDT (in 36.161s), with 23 more jobs pending|
|+104ms|╚Event processed successfully (104ms)|
|5/10/2020, 6:48:16 PM +490ms|
|+0ms|╔Received event [My home].time = 1589150897200 with a delay of -710ms|
|+59ms|║RunTime Analysis CS > 28ms > PS > 6ms > PE > 24ms > CE|
|+61ms|║Runtime (38845 bytes) successfully initialized in 6ms (v0.3.110.20191009) (60ms)|
|+62ms|║╔Execution stage started|
|+84ms|║║Executed physical command [Living Room Pot Lights 1].setLevel([3]) (15ms)|
|+89ms|║╚Execution stage complete. (27ms)|
|+96ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:48:48 PM EDT (in 31.517s), with 24 more jobs pending|
|+104ms|╚Event processed successfully (103ms)|
|5/10/2020, 6:48:12 PM +526ms|
|+0ms|╔Received event [My home].time = 1589150892807 with a delay of -281ms|
|+40ms|║RunTime Analysis CS > 19ms > PS > 5ms > PE > 16ms > CE|
|+42ms|║Runtime (38845 bytes) successfully initialized in 5ms (v0.3.110.20191009) (41ms)|
|+43ms|║╔Execution stage started|
|+57ms|║║Executed physical command [Living Room Pot Lights 2].setLevel([25]) (7ms)|
|+62ms|║╚Execution stage complete. (19ms)|
|+69ms|║Setting up scheduled job for Sun, May 10 2020 @ 6:48:17 PM EDT (in 4.606s), with 25 more jobs pending|
|+77ms|╚Event processed successfully (77ms)|
|5/10/2020, 6:47:37 PM +116ms|
|+0ms|╔Received event [My home].time = 1589150857513 with a delay of -398ms|
|+84ms|║RunTime Analysis CS > 49ms > PS > 6ms > PE > 29ms > CE|

#2

I believe it’s because your trigger is a condition.
Every time IF the lux is less then 25% this piston will KEEP EXECUTING.


#3

I haven’t ploughed through the logs in detail, but as @ike2018 suggests, the ‘stays alive’ comparison is classed as a trigger and that results in your piston firing whenever the illuminance changes. As the ‘stays alive’ effectively just tests whether the illuminance is less than 25 lux and stays like that for the next 6 minutes, if the illuminance is e.g. 1 (which it is at one point in the logs) it is going to run your fades again, starting with a fade to 10% i.e. a fade up.

I haven’t quite got my thinking head on yet, but what you need to do is protect the ‘stays alive’ with a ‘drops below 25’ i.e. add an extra condition before the ‘stays alive’. That means if the illuminance hasn’t just fallen below 25 the ‘and’ is false and the fades won’t run again.


#4

I can’t wade through the logs but one question: is the illuminance when the lights are at 10% greater than 25 lux and the illuminance at 3% less than 25 lux? If so, that would explain the piston behavior since you would kick this off, then bring the illuminance up, then down and then it would start over once it was down for 6 minutes.


#6

Added “drops below 25 lux” just above the “stays below 26 lux”

we’ll see later today how it behaves.


#7

Got it working as intended. Adding the “drops below” condition did it.

Thank you all for the input!

H.


#8

So tonight the light didn’t behave.

Looks like the sensor triggers the piston ok, but at some point during the dimming process the conditions are met again, then it starts again. And if the conditions are met again…


#9

Did my homework, made some research, tried to understand. Found this thread
How to Limit Automations to Once-Per-Period-Of-Time? (when the start-time for the period is dynamic; i.e. based on an event).

Reversed engineered, came with lines 22 & 39. fingers crossed.


#10

You created a TimeOutValue but you don’t use it anywhere in you logic to limit running the piston. If you add the condition ‘$now is after TimeOutValue’ then that should limit you piston to running once per day.

Just so I understand, when you are fading to 10% is that from 100% or from 0%? Is the 10% light level enough for the illuminance to be above 25lux? Is the 3% light level low enough for the illuminance to be below 25lux?


#12

ho I see what you mean!


#13

Think I got this one down! Thanks all!


#14

I believe you should delete line 29, since it is already true when line 31 happens.

In other words, when line 31 is true, it will always be 10 min after a line 29 event.
(IE: they can’t both be true at the same moment)


#15

I did!


#16

Trying to figure out how to stop the dimming down to 3% if lights are manually set.