Holiday Lighting Problems


#1

1) Give a description of the problem
Working from the Holiday Light example @bangali posted, I’ve attempted to remove sound and fading. I don’t need sound and the fading was making my osram lightify bulbs freeze up (could have been a concept/setting I didn’t understand or properly adjust and seemed like it was flooding the bulbs with too many commands). With this piston, I’m attempting to pause my normal day to day lighting on defined holidays and simply rotate through the holiday colors one at a time changing the color every minute on all bulbs (so they are all the same). One of the problems when I had the fading enabled, which persists in even this stripped down model, is that the bulbs aren’t in sync. At each minute mark, it’s only changing one bulb. This could be due to some of the coding I may not understand.

2) What is the expected behavior?
For non-holidays my normal boring lighting piston runs, when a defined holiday condition is met, my normal holiday piston is paused, and the defined holiday colors run across all bulbs in sync and switch to the next color each minute. When the lights are to shut off, it resumes my normal lighting piston. Rinse and repeat.

If I were to add fading back in, I would also want all of the bulbs on the same color at the same time in sync and to be able to define how long each color was displayed across all bulbs (while they were fading). I couldn’t seem to figure this out.

3) What is happening/not happening?
This seems to be working with the exception that the bulbs are not in sync color wise. Each time the color switching runs (every minute), a command is only issued to one of the bulbs. In testing with two bulbs, each cycle alternates which bulb is issued the color change command when I want all bulbs defined to change to the same color at the same time.

**4) Post a Green Snapshot of the piston!

5) Attach any logs (From ST IDE and by turning logging level to Full)
(1/14/2018, 1:56:46 PM +744ms +0ms ╔Starting piston... (v0.2.101.20171227) +260ms ║╔Subscribing to devices... +376ms ║║Subscribing to Patio East Coach Light... +377ms ║║Subscribing to Patio West Coach Light... +378ms ║╚Finished subscribing (129ms) +401ms ║Comparison (time) 50207143 happens_daily_at (time) 49080000 = false (1ms) +402ms ║Cancelling condition #22's schedules... +404ms ║Cancelling statement #22's schedules... +408ms ║Requesting time schedule wake up at Mon, Jan 15 2018 @ 1:38:00 PM CST +410ms ║Cancelling condition #5's schedules... +420ms ║Calculating (string) 07/04/ + (string) 2018 >> (string) 07/04/2018 +425ms ║Calculating (decimal) 0.0 - (decimal) 3.0 >> (decimal) -3.0 +431ms ║Calculating (string) 07/04/ + (string) 2018 >> (string) 07/04/2018 +439ms ║Comparison (date) 1515909600000 is_between (datetime) 1530421200000 .. (datetime) 1530766800000 = false (5ms) +449ms ║Calculating (string) 01/07/ + (string) 2018 >> (string) 01/07/2018 +454ms ║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0 +460ms ║Calculating (string) 02/14/ + (string) 2018 >> (string) 02/14/2018 +467ms ║Comparison (date) 1515909600000 is_between (datetime) 1514700000000 .. (datetime) 1518674400000 = true (3ms) +468ms ║Time restriction check passed +477ms ║Calculating (string) 10/31/ + (string) 2018 >> (string) 10/31/2018 +482ms ║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0 +488ms ║Calculating (string) 10/31/ + (string) 2018 >> (string) 10/31/2018 +495ms ║Comparison (date) 1515909600000 is_between (datetime) 1540357200000 .. (datetime) 1540962000000 = false (4ms) +504ms ║Calculating (string) 12/25/ + (string) 2018 >> (string) 12/25/2018 +509ms ║Calculating (decimal) 0.0 - (decimal) 25.0 >> (decimal) -25.0 +517ms ║Calculating (string) 12/25/ + (string) 2018 >> (string) 12/25/2018 +524ms ║Comparison (date) 1515909600000 is_between (datetime) 1543557600000 .. (datetime) 1545890400000 = false (4ms) +532ms ║Comparison (boolean) false is (boolean) true = false (1ms) +544ms ║Comparison (boolean) true is (boolean) false = false (2ms) +556ms ║Comparison (time) 50207294 is_less_than (time) 49500000 = false (1ms) +561ms ║Comparison (boolean) false is (boolean) true = false (1ms) +569ms ║Comparison (boolean) false is (boolean) false = true (1ms) +576ms ║Comparison (boolean) false is (boolean) true = false (1ms) +592ms ║Comparison (boolean) false is (boolean) true = false (1ms) +602ms ║Comparison (boolean) false is (boolean) false = true (1ms) +610ms ║Setting up scheduled job for Mon, Jan 15 2018 @ 1:38:00 PM CST (in 85272.648s) +624ms ╚Piston successfully started (624ms) 1/14/2018, 1:45:54 PM +338ms +1ms ╔Received event [Home].time = 1515959155589 with a delay of -1251ms +183ms ║RunTime Analysis CS > 15ms > PS > 47ms > PE > 121ms > CE +187ms ║Runtime (56269 bytes) successfully initialized in 47ms (v0.2.101.20171227) (185ms) +188ms ║╔Execution stage started +474ms ║║Comparison (time) 49554627 is_less_than (time) 49500000 = false (2ms) +475ms ║║Cancelling condition #45's schedules... +476ms ║║Condition #45 evaluated false (189ms) +477ms ║║Cancelling condition #51's schedules... +478ms ║║Condition group #51 evaluated false (state changed) (192ms) +486ms ║║Comparison (boolean) false is (boolean) false = true (2ms) +488ms ║║Condition #139 evaluated true (7ms) +490ms ║║Condition group #134 evaluated true (state did not change) (9ms) +495ms ║║Cancelling statement #58's schedules... +509ms ║║Executed physical command [Patio East Coach Light].off() (8ms) +510ms ║║Executed [Patio East Coach Light].off (10ms) +522ms ║║Executed physical command [Patio West Coach Light].off() (9ms) +523ms ║║Executed [Patio West Coach Light].off (11ms) +528ms ║║Executed virtual command [Patio East Coach Light, Patio West Coach Light].wait (1ms) +535ms ║║Waiting for 2000ms +3798ms ║║Executed virtual command [Patio East Coach Light, Patio West Coach Light].resumePiston (1257ms) +3805ms ║╚Execution stage complete. (3617ms) +3807ms ║Setting up scheduled job for Mon, Jan 15 2018 @ 1:38:00 PM CST (in 85921.856s) +3815ms ╚Event processed successfully (3815ms) 1/14/2018, 1:44:55 PM +178ms +16ms ╔Received event [Home].time = 1515959096457 with a delay of -1279ms +247ms ║RunTime Analysis CS > 52ms > PS > 56ms > PE > 137ms > CE +255ms ║Runtime (56270 bytes) successfully initialized in 56ms (v0.2.101.20171227) (228ms) +256ms ║╔Execution stage started +332ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +333ms ║║Condition #150 evaluated false (7ms) +334ms ║║Condition group #null evaluated false (state did not change) (8ms) +337ms ║║Cancelling statement #52's schedules... +365ms ║║Executed physical command [Patio West Coach Light].setColor([[hex: #FFFFFF, hue:0, saturation:0, level:100]]) (13ms) +365ms ║║Executed [Patio West Coach Light].setColor (21ms) +378ms ║║Executed physical command [Patio West Coach Light].setLevel([60]) (6ms) +379ms ║║Executed [Patio West Coach Light].setLevel (10ms) +384ms ║║Calculating (integer) 3 - (integer) 1 >> (integer) 2 +391ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2 +394ms ║║Calculating (integer) 2 == (integer) 1 >> (boolean) false +400ms ║║Executed virtual command [Patio West Coach Light].setVariable (3ms) +407ms ║║Executed virtual command [Patio West Coach Light].wait (3ms) +408ms ║║Requesting a wake up for Sun, Jan 14 2018 @ 1:45:55 PM CST (in 60.0s) +420ms ║╚Execution stage complete. (164ms) +424ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:45:55 PM CST (in 59.988s), with 1 more job pending +457ms ╚Event processed successfully (457ms) 1/14/2018, 1:43:56 PM +91ms +0ms ╔Received event [Home].time = 1515959037623 with a delay of -1533ms +185ms ║RunTime Analysis CS > 28ms > PS > 43ms > PE > 115ms > CE +188ms ║Runtime (56269 bytes) successfully initialized in 43ms (v0.2.101.20171227) (187ms) +189ms ║╔Execution stage started +255ms ║║Comparison (time) 49436333 is_less_than (time) 49500000 = true (1ms) +257ms ║║Condition #45 evaluated true (15ms) +257ms ║║Condition group #51 evaluated true (state did not change) (17ms) +262ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +264ms ║║Condition #158 evaluated false (5ms) +265ms ║║Condition group #153 evaluated false (state did not change) (6ms) +271ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +272ms ║║Condition #149 evaluated false (3ms) +272ms ║║Condition group #146 evaluated false (state did not change) (5ms) +276ms ║║Cancelling statement #194's schedules... +281ms ║║Executed virtual command setVariable (3ms) +285ms ║║Calculating (integer) 3 - (integer) 0 >> (integer) 3 +290ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1 +293ms ║║Calculating (integer) 3 == (integer) 1 >> (boolean) false +297ms ║║Executed virtual command setVariable (2ms) +301ms ║║Executed virtual command setVariable (2ms) +311ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +312ms ║║Condition #150 evaluated false (5ms) +312ms ║║Condition group #null evaluated false (state did not change) (5ms) +315ms ║║Cancelling statement #52's schedules... +332ms ║║Executed physical command [Patio East Coach Light].setColor([[hex: #FF0000, hue:0, saturation:100, level:50]]) (10ms) +332ms ║║Executed [Patio East Coach Light].setColor (11ms) +340ms ║║Executed physical command [Patio East Coach Light].setLevel([60]) (5ms) +340ms ║║Executed [Patio East Coach Light].setLevel (6ms) +345ms ║║Calculating (integer) 3 - (integer) 0 >> (integer) 3 +350ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1 +352ms ║║Calculating (integer) 3 == (integer) 1 >> (boolean) false +357ms ║║Executed virtual command [Patio East Coach Light].setVariable (2ms) +359ms ║║Executed virtual command [Patio East Coach Light].wait (0ms) +365ms ║║Requesting a wake up for Sun, Jan 14 2018 @ 1:44:56 PM CST (in 60.0s) +370ms ║╚Execution stage complete. (181ms) +372ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:44:56 PM CST (in 59.995s), with 1 more job pending +378ms ╚Event processed successfully (378ms) 1/14/2018, 1:42:57 PM +106ms +1ms ╔Received event [Home].time = 1515958978483 with a delay of -1377ms +359ms ║RunTime Analysis CS > 20ms > PS > 54ms > PE > 284ms > CE +379ms ║Runtime (56269 bytes) successfully initialized in 54ms (v0.2.101.20171227) (376ms) +380ms ║╔Execution stage started +452ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +453ms ║║Condition #150 evaluated false (5ms) +454ms ║║Condition group #null evaluated false (state did not change) (6ms) +457ms ║║Cancelling statement #52's schedules... +481ms ║║Executed physical command [Patio West Coach Light].setColor([[hex: #FF0000, hue:0, saturation:100, level:50]]) (14ms) +481ms ║║Executed [Patio West Coach Light].setColor (16ms) +491ms ║║Executed physical command [Patio West Coach Light].setLevel([60]) (7ms) +492ms ║║Executed [Patio West Coach Light].setLevel (7ms) +497ms ║║Calculating (integer) 3 - (integer) 0 >> (integer) 3 +503ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1 +506ms ║║Calculating (integer) 3 == (integer) 1 >> (boolean) false +512ms ║║Executed virtual command [Patio West Coach Light].setVariable (3ms) +515ms ║║Executed virtual command [Patio West Coach Light].wait (1ms) +516ms ║║Requesting a wake up for Sun, Jan 14 2018 @ 1:43:57 PM CST (in 60.0s) +522ms ║╚Execution stage complete. (142ms) +524ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:43:57 PM CST (in 59.993s), with 1 more job pending +531ms ╚Event processed successfully (531ms) 1/14/2018, 1:41:58 PM +87ms +0ms ╔Received event [Home].time = 1515958919528 with a delay of -1441ms +164ms ║RunTime Analysis CS > 15ms > PS > 42ms > PE > 107ms > CE +168ms ║Runtime (56269 bytes) successfully initialized in 42ms (v0.2.101.20171227) (166ms) +169ms ║╔Execution stage started +258ms ║║Comparison (time) 49318323 is_less_than (time) 49500000 = true (1ms) +259ms ║║Condition #45 evaluated true (25ms) +260ms ║║Condition group #51 evaluated true (state did not change) (26ms) +265ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +267ms ║║Condition #158 evaluated false (4ms) +267ms ║║Condition group #153 evaluated false (state did not change) (5ms) +274ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +275ms ║║Condition #149 evaluated false (4ms) +276ms ║║Condition group #146 evaluated false (state did not change) (6ms) +279ms ║║Cancelling statement #194's schedules... +285ms ║║Executed virtual command setVariable (3ms) +290ms ║║Calculating (integer) 3 - (integer) 2 >> (integer) 1 +298ms ║║Calculating (integer) 2 + (integer) 1 >> (integer) 3 +301ms ║║Calculating (integer) 1 == (integer) 1 >> (boolean) true +306ms ║║Executed virtual command setVariable (3ms) +311ms ║║Executed virtual command setVariable (2ms) +322ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +323ms ║║Condition #150 evaluated false (5ms) +324ms ║║Condition group #null evaluated false (state did not change) (6ms) +326ms ║║Cancelling statement #52's schedules... +354ms ║║Executed physical command [Patio East Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (10ms) +355ms ║║Executed [Patio East Coach Light].setColor (22ms) +368ms ║║Executed physical command [Patio East Coach Light].setLevel([60]) (5ms) +369ms ║║Executed [Patio East Coach Light].setLevel (11ms) +375ms ║║Calculating (integer) 3 - (integer) 2 >> (integer) 1 +381ms ║║Calculating (integer) 2 + (integer) 1 >> (integer) 3 +384ms ║║Calculating (integer) 1 == (integer) 1 >> (boolean) true +390ms ║║Executed virtual command [Patio East Coach Light].setVariable (3ms) +393ms ║║Executed virtual command [Patio East Coach Light].wait (1ms) +395ms ║║Requesting a wake up for Sun, Jan 14 2018 @ 1:42:58 PM CST (in 60.0s) +401ms ║╚Execution stage complete. (233ms) +404ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:42:58 PM CST (in 59.994s), with 1 more job pending +411ms ╚Event processed successfully (411ms) 1/14/2018, 1:40:59 PM +166ms +1ms ╔Received event [Home].time = 1515958860815 with a delay of -1649ms +207ms ║RunTime Analysis CS > 24ms > PS > 55ms > PE > 127ms > CE +210ms ║Runtime (56269 bytes) successfully initialized in 55ms (v0.2.101.20171227) (208ms) +211ms ║╔Execution stage started +287ms ║║Comparison (boolean) false is (boolean) true = false (3ms) +288ms ║║Condition #150 evaluated false (8ms) +289ms ║║Condition group #null evaluated false (state did not change) (10ms) +292ms ║║Cancelling statement #52's schedules... +315ms ║║Executed physical command [Patio West Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (14ms) +316ms ║║Executed [Patio West Coach Light].setColor (16ms) +331ms ║║Executed physical command [Patio West Coach Light].setLevel([60]) (7ms) +332ms ║║Executed [Patio West Coach Light].setLevel (13ms) +340ms ║║Calculating (integer) 3 - (integer) 2 >> (integer) 1 +347ms ║║Calculating (integer) 2 + (integer) 1 >> (integer) 3 +350ms ║║Calculating (integer) 1 == (integer) 1 >> (boolean) true +355ms ║║Executed virtual command [Patio West Coach Light].setVariable (3ms) +360ms ║║Executed virtual command [Patio West Coach Light].wait (0ms) +362ms ║║Requesting a wake up for Sun, Jan 14 2018 @ 1:41:59 PM CST (in 60.0s) +367ms ║╚Execution stage complete. (156ms) +369ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:41:59 PM CST (in 59.993s), with 1 more job pending +377ms ╚Event processed successfully (377ms) 1/14/2018, 1:40:00 PM +240ms +1ms ╔Received event [Home].time = 1515958801389 with a delay of -1149ms +220ms ║RunTime Analysis CS > 18ms > PS > 60ms > PE > 141ms > CE +224ms ║Runtime (56265 bytes) successfully initialized in 60ms (v0.2.101.20171227) (221ms) +226ms ║╔Execution stage started +356ms ║║Comparison (time) 49200571 is_less_than (time) 49500000 = true (3ms) +358ms ║║Condition #45 evaluated true (30ms) +360ms ║║Condition group #51 evaluated true (state did not change) (31ms) +368ms ║║Comparison (boolean) false is (boolean) true = false (2ms) +370ms ║║Condition #158 evaluated false (7ms) +371ms ║║Condition group #153 evaluated false (state did not change) (9ms) +380ms ║║Comparison (boolean) false is (boolean) true = false (2ms) +383ms ║║Cancelling condition #149's schedules... +386ms ║║Condition #149 evaluated false (11ms) +388ms ║║Cancelling condition #146's schedules... +389ms ║║Condition group #146 evaluated false (state changed) (14ms) +392ms ║║Cancelling statement #194's schedules... +399ms ║║Executed virtual command setVariable (3ms) +407ms ║║Calculating (integer) 3 - (integer) 1 >> (integer) 2 +416ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2 +421ms ║║Calculating (integer) 2 == (integer) 1 >> (boolean) false +427ms ║║Executed virtual command setVariable (3ms) +436ms ║║Executed virtual command setVariable (4ms) +463ms ║║Comparison (boolean) false is (boolean) true = false (2ms) +465ms ║║Condition #150 evaluated false (6ms) +466ms ║║Condition group #null evaluated false (state did not change) (8ms) +471ms ║║Cancelling statement #52's schedules... +494ms ║║Executed physical command [Patio East Coach Light].setColor([[hex: #FFFFFF, hue:0, saturation:0, level:100]]) (13ms) +497ms ║║Executed [Patio East Coach Light].setColor (17ms) +514ms ║║Executed physical command [Patio East Coach Light].setLevel([60]) (7ms) +515ms ║║Executed [Patio East Coach Light].setLevel (15ms) +522ms ║║Calculating (integer) 3 - (integer) 1 >> (integer) 2 +531ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2 +535ms ║║Calculating (integer) 2 == (integer) 1 >> (boolean) false +541ms ║║Executed virtual command [Patio East Coach Light].setVariable (3ms) +548ms ║║Executed virtual command [Patio East Coach Light].wait (0ms) +566ms ║║Requesting a wake up for Sun, Jan 14 2018 @ 1:41:00 PM CST (in 60.0s) +582ms ║╚Execution stage complete. (357ms) +586ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:41:00 PM CST (in 59.991s), with 1 more job pending +592ms ╚Event processed successfully (592ms) 1/14/2018, 1:39:01 PM +101ms +1ms ╔Received event [Home].time = 1515958742110 with a delay of -1009ms +129ms ║RunTime Analysis CS > 11ms > PS > 29ms > PE > 88ms > CE +132ms ║Runtime (56264 bytes) successfully initialized in 29ms (v0.2.101.20171227) (131ms) +133ms ║╔Execution stage started +198ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +199ms ║║Condition #150 evaluated false (5ms) +200ms ║║Condition group #null evaluated false (state did not change) (6ms) +203ms ║║Cancelling statement #52's schedules... +216ms ║║Executed physical command [Patio West Coach Light].setColor([[hex: #FFFFFF, hue:0, saturation:0, level:100]]) (6ms) +218ms ║║Executed [Patio West Coach Light].setColor (9ms) +231ms ║║Executed physical command [Patio West Coach Light].setLevel([60]) (4ms) +232ms ║║Executed [Patio West Coach Light].setLevel (10ms) +236ms ║║Calculating (integer) 3 - (integer) 1 >> (integer) 2 +242ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2 +245ms ║║Calculating (integer) 2 == (integer) 1 >> (boolean) false +250ms ║║Executed virtual command [Patio West Coach Light].setVariable (3ms) +257ms ║║Executed virtual command [Patio West Coach Light].wait (2ms) +280ms ║║Requesting a wake up for Sun, Jan 14 2018 @ 1:40:01 PM CST (in 60.0s) +293ms ║╚Execution stage complete. (160ms) +295ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:40:01 PM CST (in 59.994s), with 1 more job pending +302ms ╚Event processed successfully (302ms) 1/14/2018, 1:37:59 PM +102ms +0ms ╔Received event [Home].time = 1515958680000 with a delay of -899ms +167ms ║RunTime Analysis CS > 17ms > PS > 50ms > PE > 101ms > CE +170ms ║Runtime (56268 bytes) successfully initialized in 50ms (v0.2.101.20171227) (169ms) +172ms ║╔Execution stage started +186ms ║║Comparison (time) 49079280 happens_daily_at (time) 49080000 = true (2ms) +192ms ║║Time restriction check passed +193ms ║║Cancelling condition #22's schedules... +194ms ║║Condition #22 evaluated true (16ms) +194ms ║║Cancelling statement #22's schedules... +199ms ║║Requesting time schedule wake up at Mon, Jan 15 2018 @ 1:38:00 PM CST +201ms ║║Cancelling condition #5's schedules... +202ms ║║Condition group #5 evaluated true (state changed) (25ms) +217ms ║║Cancelling statement #56's schedules... +225ms ║║Executed virtual command setVariable (3ms) +241ms ║║Calculating (string) 07/04/ + (string) 2018 >> (string) 07/04/2018 +248ms ║║Calculating (decimal) 0.0 - (decimal) 3.0 >> (decimal) -3.0 +256ms ║║Calculating (string) 07/04/ + (string) 2018 >> (string) 07/04/2018 +289ms ║║Comparison (date) 1515909600000 is_between (datetime) 1530421200000 .. (datetime) 1530766800000 = false (22ms) +290ms ║║Condition #27 evaluated false (62ms) +291ms ║║Condition group #6 evaluated false (state did not change) (63ms) +302ms ║║Calculating (string) 01/07/ + (string) 2018 >> (string) 01/07/2018 +309ms ║║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0 +315ms ║║Calculating (string) 02/14/ + (string) 2018 >> (string) 02/14/2018 +320ms ║║Comparison (date) 1515909600000 is_between (datetime) 1514700000000 .. (datetime) 1518674400000 = true (3ms) +321ms ║║Time restriction check passed +322ms ║║Condition #28 evaluated true (29ms) +323ms ║║Condition group #9 evaluated true (state did not change) (30ms) +324ms ║║Cancelling statement #9's schedules... +329ms ║║Executed virtual command setVariable (2ms) +336ms ║║Calculating (string) 10/31/ + (string) 2018 >> (string) 10/31/2018 +340ms ║║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0 +346ms ║║Calculating (string) 10/31/ + (string) 2018 >> (string) 10/31/2018 +351ms ║║Comparison (date) 1515909600000 is_between (datetime) 1540357200000 .. (datetime) 1540962000000 = false (3ms) +352ms ║║Condition #29 evaluated false (21ms) +353ms ║║Condition group #13 evaluated false (state did not change) (22ms) +360ms ║║Calculating (string) 12/25/ + (string) 2018 >> (string) 12/25/2018 +364ms ║║Calculating (decimal) 0.0 - (decimal) 25.0 >> (decimal) -25.0 +370ms ║║Calculating (string) 12/25/ + (string) 2018 >> (string) 12/25/2018 +375ms ║║Comparison (date) 1515909600000 is_between (datetime) 1543557600000 .. (datetime) 1545890400000 = false (3ms) +377ms ║║Condition #30 evaluated false (21ms) +377ms ║║Condition group #17 evaluated false (state did not change) (22ms) +390ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +391ms ║║Condition #114 evaluated false (11ms) +392ms ║║Condition group #null evaluated false (state did not change) (13ms) +394ms ║║Cancelling statement #46's schedules... +397ms ║║Executed virtual command setState (0ms) +401ms ║║Executed virtual command setVariable (2ms) +406ms ║║Executed virtual command setVariable (3ms) +411ms ║║Executed virtual command setVariable (3ms) +421ms ║║Comparison (boolean) false is (boolean) false = true (1ms) +422ms ║║Cancelling condition #38's schedules... +423ms ║║Condition #38 evaluated true (10ms) +424ms ║║Cancelling condition #48's schedules... +424ms ║║Condition group #48 evaluated true (state changed) (11ms) +426ms ║║Cancelling statement #36's schedules... +430ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1 +434ms ║║Executed virtual command setVariable (3ms) +441ms ║║Comparison (boolean) false is (boolean) false = true (1ms) +442ms ║║Condition #38 evaluated true (7ms) +443ms ║║Condition group #48 evaluated true (state did not change) (7ms) +444ms ║║Cancelling statement #36's schedules... +448ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2 +452ms ║║Executed virtual command setVariable (2ms) +459ms ║║Comparison (boolean) false is (boolean) false = true (1ms) +460ms ║║Condition #38 evaluated true (7ms) +461ms ║║Condition group #48 evaluated true (state did not change) (8ms) +463ms ║║Cancelling statement #36's schedules... +466ms ║║Calculating (integer) 2 + (integer) 1 >> (integer) 3 +470ms ║║Executed virtual command setVariable (2ms) +477ms ║║Comparison (boolean) true is (boolean) false = false (1ms) +478ms ║║Cancelling condition #38's schedules... +479ms ║║Condition #38 evaluated false (7ms) +480ms ║║Cancelling condition #48's schedules... +480ms ║║Condition group #48 evaluated false (state changed) (9ms) +489ms ║║Comparison (time) 49079586 is_less_than (time) 49500000 = true (1ms) +490ms ║║Condition #45 evaluated true (8ms) +491ms ║║Condition group #51 evaluated true (state did not change) (9ms) +496ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +497ms ║║Condition #158 evaluated false (4ms) +498ms ║║Condition group #153 evaluated false (state did not change) (5ms) +503ms ║║Comparison (boolean) true is (boolean) true = true (0ms) +504ms ║║Cancelling condition #149's schedules... +505ms ║║Condition #149 evaluated true (4ms) +505ms ║║Cancelling condition #146's schedules... +506ms ║║Condition group #146 evaluated true (state changed) (6ms) +508ms ║║Cancelling statement #11's schedules... +832ms ║║Executed virtual command [Patio East Coach Light, Patio West Coach Light].pausePiston (315ms) +838ms ║║Executed virtual command [Patio East Coach Light, Patio West Coach Light].wait (1ms) +839ms ║║Waiting for 2000ms +2859ms ║║Executed physical command [Patio East Coach Light].on() (10ms) +2860ms ║║Executed [Patio East Coach Light].on (12ms) +2872ms ║║Executed physical command [Patio West Coach Light].on() (9ms) +2872ms ║║Executed [Patio West Coach Light].on (10ms) +2875ms ║║Cancelling statement #194's schedules... +2880ms ║║Executed virtual command setVariable (3ms) +2884ms ║║Calculating (integer) 3 - (integer) 0 >> (integer) 3 +2889ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1 +2891ms ║║Calculating (integer) 3 == (integer) 1 >> (boolean) false +2897ms ║║Executed virtual command setVariable (4ms) +2902ms ║║Executed virtual command setVariable (2ms) +2910ms ║║Comparison (boolean) false is (boolean) true = false (1ms) +2911ms ║║Condition #150 evaluated false (4ms) +2912ms ║║Condition group #null evaluated false (state did not change) (5ms) +2915ms ║║Cancelling statement #52's schedules... +2935ms ║║Executed physical command [Patio East Coach Light].setColor([[hex: #FF0000, hue:0, saturation:100, level:50]]) (6ms) +2937ms ║║Executed [Patio East Coach Light].setColor (14ms) +2950ms ║║Executed physical command [Patio East Coach Light].setLevel([60]) (6ms) +2951ms ║║Executed [Patio East Coach Light].setLevel (12ms) +2955ms ║║Calculating (integer) 3 - (integer) 0 >> (integer) 3 +2960ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1 +2963ms ║║Calculating (integer) 3 == (integer) 1 >> (boolean) false +2970ms ║║Executed virtual command [Patio East Coach Light].setVariable (4ms) +2988ms ║║Executed virtual command [Patio East Coach Light].wait (2ms) +2999ms ║║Requesting a wake up for Sun, Jan 14 2018 @ 1:39:02 PM CST (in 60.0s) +3015ms ║╚Execution stage complete. (2844ms) +3018ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:39:02 PM CST (in 59.991s), with 1 more job pending +3025ms ╚Event processed successfully (3025ms) 1/14/2018, 1:37:17 PM +389ms +1ms ╔Starting piston... (v0.2.101.20171227) +222ms ║╔Subscribing to devices... +432ms ║║Subscribing to Patio East Coach Light... +433ms ║║Subscribing to Patio West Coach Light... +434ms ║╚Finished subscribing (216ms) +456ms ║Comparison (time) 49037844 happens_daily_at (time) 49080000 = false (0ms) +458ms ║Cancelling condition #22's schedules... +459ms ║Cancelling statement #22's schedules... +461ms ║Requesting time schedule wake up at Sun, Jan 14 2018 @ 1:38:00 PM CST +463ms ║Cancelling condition #5's schedules... +472ms ║Calculating (string) 07/04/ + (string) 2018 >> (string) 07/04/2018 +477ms ║Calculating (decimal) 0.0 - (decimal) 3.0 >> (decimal) -3.0 +483ms ║Calculating (string) 07/04/ + (string) 2018 >> (string) 07/04/2018 +491ms ║Comparison (date) 1515909600000 is_between (datetime) 1530421200000 .. (datetime) 1530766800000 = false (4ms) +501ms ║Calculating (string) 01/07/ + (string) 2018 >> (string) 01/07/2018 +505ms ║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0 +511ms ║Calculating (string) 02/14/ + (string) 2018 >> (string) 02/14/2018 +517ms ║Comparison (date) 1515909600000 is_between (datetime) 1514700000000 .. (datetime) 1518674400000 = true (3ms) +518ms ║Time restriction check passed +527ms ║Calculating (string) 10/31/ + (string) 2018 >> (string) 10/31/2018 +532ms ║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0 +539ms ║Calculating (string) 10/31/ + (string) 2018 >> (string) 10/31/2018 +546ms ║Comparison (date) 1515909600000 is_between (datetime) 1540357200000 .. (datetime) 1540962000000 = false (4ms) +556ms ║Calculating (string) 12/25/ + (string) 2018 >> (string) 12/25/2018 +561ms ║Calculating (decimal) 0.0 - (decimal) 25.0 >> (decimal) -25.0 +567ms ║Calculating (string) 12/25/ + (string) 2018 >> (string) 12/25/2018 +575ms ║Comparison (date) 1515909600000 is_between (datetime) 1543557600000 .. (datetime) 1545890400000 = false (4ms) +588ms ║Comparison (boolean) false is (boolean) true = false (1ms) +603ms ║Comparison (boolean) true is (boolean) false = false (1ms) +616ms ║Comparison (time) 49037998 is_less_than (time) 49500000 = true (1ms) +617ms ║Cancelling condition #45's schedules... +618ms ║Cancelling condition #51's schedules... +624ms ║Comparison (boolean) false is (boolean) true = false (2ms) +632ms ║Comparison (boolean) false is (boolean) false = true (2ms) +638ms ║Comparison (boolean) false is (boolean) true = false (2ms) +657ms ║Comparison (boolean) false is (boolean) true = false (1ms) +667ms ║Comparison (boolean) false is (boolean) false = true (1ms) +679ms ║Setting up scheduled job for Sun, Jan 14 2018 @ 1:38:00 PM CST (in 41.934s) +691ms ╚Piston successfully started (691ms))


#2

may be easier if you start with this version:


#3

Thank you, I will dig into this one. I cant seem to see all of the instructions in your screenshot, is there another image you can send of the bottom 1/2? Also, I posted another question on a different topic this afternoon on something that looks like your base code as well. Could you opine on this one when you have a free moment? Very much appreciated, thank you… Single Motion Sensor Triggering Two Similar Pistons


#4

Thanks again @bangali I ran this one as well and I seem to be having the same issue as with the one I posted. The lights are not in sync color wise. They change colors at the same time, but one will be red and the other white for example. I have 10 of these in coach lights around my house and it will look bad if they are all on different colors without an established pattern. Any idea how I can get them to all run in sync? i.e. all red, then all white, then all blue. repeat? Thanks again for the help and the templates!


#5

the colors were meant to be different :slight_smile:

I will post later with changes needed to make them all the same.


#6

try this. no fades and sets all lights to the same color for 60 seconds.


#7

Thank you, I think this last example got me across the line. 2 questions: Do you know if there is a reference list somewhere with all of the predefined colors? Also, I hate to ask, but could you opine on this one when you have a minute? Single Motion Sensor Triggering Two Similar Pistons It’s another example of me hacking at your base code and causing problems :smile: Thanks again for all of the help!


#8

check the set color task:


#9

Valentines Day is the first holiday since I thought I had this working, and it seemed to work for a few days until I changed the Valentines colors for my wife yesterday (swapped colors out and increased the overall colors involved to 9). I now seem to have a couple of timing problems and it doesn’t count through/display all of the colors consistently. Last night it kicked on by design, and I noticed it was only cycling through the first 5 colors. Then randomly it would occasionally go the 6th and 7th colors, then back to only the first 4. I did catch it run through all 9 at least one time, but it was typically only using the first 5 colors. I also noticed it did not hold each color for the same time period. Sometime it was several minutes before it switched to the next color, sometimes it was 20 seconds. Finally, the piston seems to have “run away” and I now have it paused. It didn’t shut off last night and if I shut all of the lights off, it turns them all back on, and continues its routine, even at 9AM. I added the fading back in to the piston several weeks ago (was just going to have it cycle through the colors, switching to the next, every 60 seconds) and I’m wondering if there is just too much going on across the network that it went haywire? I noticed a couple of bulbs reboot themselves, then they joined back into the routine with the rest of the bulbs. This is controlling 10 Osram RGBW bulbs. Any thoughts would be appreciated, thank you.


#10

theres too much network traffic. probably better if you use the simplified version that i think i had created for you at some point. believe it used to set all bulbs to one color every 60 seconds. that should work fine.


#11

Correct. I switched back to the no fade version a couple of days ago and its fine. I figured it was too much load on the system, just wanted to make sure I didn’t have an error in the logic before removing the functionality 100%. Thanks again.,.


#12

Seems like the piston ran perfectly all the way through Valentines day. However, I had it set to go 1 day past Valentines day and I expected to see the colors when I got home from work this evening but it wasn’t running, it was back to my boring 2700K 70% standard lighting. Please let me know if you have any ideas on why this wouldn’t have run on 2/15. Appreciate all of the assistance! Thanks-


#13

Sorry, here is a screenshot, thanks again:


#14

Your problem is in the expression where you say "isBetween 2/14 - 7 days and 2/14 + 1 day). Time is only between those dates until midnight on 2/15, after which it will evaluate false. So at 3am on the 15th, the date is no longer between midnight on 2/7 and midnight on 2/15.


#15

looks like maybe an issue with the isbetween function. instead of checking <= it seems to be checking < for the high value of the range.

https://wiki.webcore.co/Functions#isBetween

EDIT: checking the webcore code the comparison seems to be right. might be using a datetime value instead of a date value. wrap the addays with a date(…) and see if that fixes things:

date is between date(adddays(date(…), x)) and date(adddays(date(…), y))

EDIT2: wrapping it with date(…) does not help. its definitely using a datetime comparison. if you change it to this it should work consistently:

if date is between addDays(date("02/14/" + $year), -7) and addDays(datetime("02/14/" + $year + " 23:59"), 1)

might want to change it for other holiday lights even when the adddays is 0 otherwise if will not run on the holiday date itself.


#16

Thanks for the help. I updated as suggested but when I got home last night, it was running Christmas colors. Based on the logs, it seems to be matching several of the date conditions as true when they aren’t. Christmas is the last condition it checks and it checked in as true which is why it was running the Christmas lights. Thoughts? Thanks again!

2/18/2018, 8:52:47 AM +197ms
+228ms ╔Stopping piston…
+347ms ╚Piston successfully stopped (119ms)
2/18/2018, 8:51:59 AM +129ms
+1ms ╔Received event [Cedar Lake].time = 1518965520000 with a delay of -871ms
+225ms ║RunTime Analysis CS > 32ms > PS > 60ms > PE > 133ms > CE
+230ms ║Runtime (60663 bytes) successfully initialized in 60ms (v0.2.102.20180116) (228ms)
+231ms ║╔Execution stage started
+245ms ║║Comparison (time) 31919368 happens_daily_at (time) 31920000 = true (4ms)
+248ms ║║Time restriction check passed
+249ms ║║Cancelling condition #22’s schedules…
+250ms ║║Condition #22 evaluated true (12ms)
+259ms ║║Cancelling statement #22’s schedules…
+263ms ║║Requesting time schedule wake up at Mon, Feb 19 2018 @ 8:52:00 AM CST
+266ms ║║Cancelling condition #5’s schedules…
+267ms ║║Condition group #5 evaluated true (state changed) (29ms)
+269ms ║║Cancelling statement #56’s schedules…
+276ms ║║Executed virtual command setVariable (4ms)
+301ms ║║Calculating (string) 02/14/ + (string) 2018 >> (string) 02/14/2018
+308ms ║║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0
+323ms ║║Calculating (string) 02/14/ + (string) 2018 >> (string) 02/14/2018
+327ms ║║Calculating (string) 02/14/2018 + (string) 23:59 >> (string) 02/14/201823:59
+337ms ║║Comparison (date) 1518933600000 is_between (datetime) 1517983200000 … (datetime) 1519051919459 = true (5ms)
+339ms ║║Time restriction check passed
+341ms ║║Condition #28 evaluated true (61ms)
+342ms ║║Condition group #9 evaluated true (state did not change) (62ms)
+343ms ║║Cancelling statement #9’s schedules…
+350ms ║║Executed virtual command setVariable (3ms)
+1122ms ║║Calculating (string) 03/17/ + (string) 2018 >> (string) 03/17/2018
+1131ms ║║Calculating (decimal) 0.0 - (decimal) 2.0 >> (decimal) -2.0
+1146ms ║║Calculating (string) 03/17/ + (string) 2018 >> (string) 03/17/2018
+1149ms ║║Calculating (string) 03/17/2018 + (string) 23:59 >> (string) 03/17/201823:59
+1167ms ║║Comparison (date) 1518933600000 is_between (datetime) 1521090000000 … (datetime) 1518965520285 = false (8ms)
+1170ms ║║Condition #96 evaluated false (817ms)
+1171ms ║║Condition group #94 evaluated false (state did not change) (819ms)
+1201ms ║║Calculating (string) 04/01/ + (string) 2018 >> (string) 04/01/2018
+1258ms ║║Calculating (decimal) 0.0 - (decimal) 2.0 >> (decimal) -2.0
+1287ms ║║Calculating (string) 04/01/ + (string) 2018 >> (string) 04/01/2018
+1310ms ║║Calculating (string) 04/01/2018 + (string) 23:59 >> (string) 04/01/201823:59
+1325ms ║║Comparison (date) 1518933600000 is_between (datetime) 1522386000000 … (datetime) 1518965520444 = false (8ms)
+1331ms ║║Condition #99 evaluated false (155ms)
+1332ms ║║Condition group #97 evaluated false (state did not change) (157ms)
+1352ms ║║Calculating (string) 05/28/ + (string) 2018 >> (string) 05/28/2018
+1363ms ║║Calculating (decimal) 0.0 - (decimal) 2.0 >> (decimal) -2.0
+1376ms ║║Calculating (string) 05/28/ + (string) 2018 >> (string) 05/28/2018
+1380ms ║║Calculating (string) 05/28/2018 + (string) 23:59 >> (string) 05/28/201823:59
+1392ms ║║Comparison (date) 1518933600000 is_between (datetime) 1527310800000 … (datetime) 1518965520512 = false (6ms)
+1394ms ║║Condition #102 evaluated false (56ms)
+1395ms ║║Condition group #100 evaluated false (state did not change) (58ms)
+1409ms ║║Calculating (string) 07/04/ + (string) 2018 >> (string) 07/04/2018
+1418ms ║║Calculating (decimal) 0.0 - (decimal) 3.0 >> (decimal) -3.0
+1431ms ║║Calculating (string) 07/04/ + (string) 2018 >> (string) 07/04/2018
+1435ms ║║Calculating (string) 07/04/2018 + (string) 23:59 >> (string) 07/04/201823:59
+1445ms ║║Comparison (date) 1518933600000 is_between (datetime) 1530421200000 … (datetime) 1519051920567 = true (5ms)
+1447ms ║║Time restriction check passed
+1448ms ║║Condition #27 evaluated true (50ms)
+1449ms ║║Condition group #6 evaluated true (state did not change) (51ms)
+1451ms ║║Cancelling statement #6’s schedules…
+1457ms ║║Executed virtual command setVariable (3ms)
+1469ms ║║Calculating (string) 10/31/ + (string) 2018 >> (string) 10/31/2018
+1476ms ║║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0
+1486ms ║║Calculating (string) 10/31/ + (string) 2018 >> (string) 10/31/2018
+1489ms ║║Calculating (string) 10/31/2018 + (string) 23:59 >> (string) 10/31/201823:59
+1502ms ║║Comparison (date) 1518933600000 is_between (datetime) 1540357200000 … (datetime) 1518965520620 = false (7ms)
+1504ms ║║Condition #29 evaluated false (44ms)
+1506ms ║║Condition group #13 evaluated false (state did not change) (46ms)
+1518ms ║║Calculating (string) 11/22/ + (string) 2018 >> (string) 11/22/2018
+1526ms ║║Calculating (decimal) 0.0 - (decimal) 5.0 >> (decimal) -5.0
+1536ms ║║Calculating (string) 11/22/ + (string) 2018 >> (string) 11/22/2018
+1539ms ║║Calculating (string) 11/22/2018 + (string) 23:59 >> (string) 11/22/201823:59
+1548ms ║║Comparison (date) 1518933600000 is_between (datetime) 1542434400000 … (datetime) 1519051920670 = true (5ms)
+1550ms ║║Time restriction check passed
+1551ms ║║Condition #105 evaluated true (42ms)
+1552ms ║║Condition group #103 evaluated true (state did not change) (43ms)
+1553ms ║║Cancelling statement #103’s schedules…
+1560ms ║║Executed virtual command setVariable (3ms)
+1574ms ║║Calculating (string) 12/25/ + (string) 2018 >> (string) 12/25/2018
+1582ms ║║Calculating (decimal) 0.0 - (decimal) 25.0 >> (decimal) -25.0
+1600ms ║║Calculating (string) 12/25/ + (string) 2018 >> (string) 12/25/2018
+1604ms ║║Calculating (string) 12/25/2018 + (string) 23:59 >> (string) 12/25/201823:59
+1613ms ║║Comparison (date) 1518933600000 is_between (datetime) 1543557600000 … (datetime) 1519138320735 = true (5ms)
+1614ms ║║Time restriction check passed
+1616ms ║║Condition #30 evaluated true (53ms)
+1617ms ║║Condition group #17 evaluated true (state did not change) (54ms)
+1618ms ║║Cancelling statement #17’s schedules…
+1644ms ║║Executed virtual command setVariable (21ms)
+1667ms ║║Comparison (boolean) false is_equal_to (boolean) true = false (7ms)
+1669ms ║║Condition #108 evaluated false (19ms)
+1671ms ║║Condition group #107 evaluated false (state did not change) (20ms)
+1675ms ║║Cancelling statement #46’s schedules…
+1684ms ║║Executed virtual command setVariable (4ms)
+1692ms ║║Executed virtual command setVariable (4ms)
+1704ms ║║Executed virtual command setState (8ms)
+1718ms ║║Comparison (boolean) false is (boolean) false = true (2ms)
+1719ms ║║Cancelling condition #38’s schedules…
+1720ms ║║Condition #38 evaluated true (12ms)
+1721ms ║║Cancelling condition #48’s schedules…
+1722ms ║║Condition group #48 evaluated true (state changed) (15ms)
+1725ms ║║Cancelling statement #36’s schedules…
+1731ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+1737ms ║║Executed virtual command setVariable (4ms)
+1749ms ║║Comparison (boolean) false is (boolean) false = true (2ms)
+1751ms ║║Condition #38 evaluated true (11ms)
+1752ms ║║Condition group #48 evaluated true (state did not change) (13ms)
+1757ms ║║Cancelling statement #36’s schedules…
+1764ms ║║Calculating (integer) 1 + (integer) 1 >> (integer) 2
+1771ms ║║Executed virtual command setVariable (4ms)
+1783ms ║║Comparison (boolean) false is (boolean) false = true (1ms)
+1784ms ║║Condition #38 evaluated true (11ms)
+1786ms ║║Condition group #48 evaluated true (state did not change) (12ms)
+1788ms ║║Cancelling statement #36’s schedules…
+1795ms ║║Calculating (integer) 2 + (integer) 1 >> (integer) 3
+1801ms ║║Executed virtual command setVariable (4ms)
+1819ms ║║Comparison (boolean) true is (boolean) false = false (2ms)
+1821ms ║║Cancelling condition #38’s schedules…
+1821ms ║║Condition #38 evaluated false (18ms)
+1823ms ║║Cancelling condition #48’s schedules…
+1824ms ║║Condition group #48 evaluated false (state changed) (20ms)
+1827ms ║║Cancelling statement #11’s schedules…
+2701ms ║║Executed virtual command [Front Door North Coach Light, Front Door South Coach Light, Garage Man Door Coach Light, Main Garage Door North Coach Light, Main Garage Door South Coach Light, Patio East Coach Light, Patio West Coach Light, South Garage Doors Center Coach Light, South Garage Doors East Coach Light, South Garage Doors West Coach Light].pausePiston (681ms)
+2899ms ║║Executed physical command [Front Door North Coach Light].on() (194ms)
+2900ms ║║Executed [Front Door North Coach Light].on (197ms)
+2929ms ║║Executed physical command [Front Door South Coach Light].on() (25ms)
+2930ms ║║Executed [Front Door South Coach Light].on (28ms)
+2960ms ║║Executed physical command [Garage Man Door Coach Light].on() (26ms)
+2961ms ║║Executed [Garage Man Door Coach Light].on (28ms)
+2992ms ║║Executed physical command [Main Garage Door North Coach Light].on() (26ms)
+2993ms ║║Executed [Main Garage Door North Coach Light].on (28ms)
+3020ms ║║Executed physical command [Main Garage Door South Coach Light].on() (24ms)
+3021ms ║║Executed [Main Garage Door South Coach Light].on (26ms)
+3051ms ║║Executed physical command [Patio East Coach Light].on() (26ms)
+3052ms ║║Executed [Patio East Coach Light].on (28ms)
+3079ms ║║Executed physical command [Patio West Coach Light].on() (24ms)
+3080ms ║║Executed [Patio West Coach Light].on (26ms)
+3110ms ║║Executed physical command [South Garage Doors Center Coach Light].on() (27ms)
+3111ms ║║Executed [South Garage Doors Center Coach Light].on (28ms)
+3138ms ║║Executed physical command [South Garage Doors East Coach Light].on() (24ms)
+3139ms ║║Executed [South Garage Doors East Coach Light].on (26ms)
+3185ms ║║Executed physical command [South Garage Doors West Coach Light].on() (42ms)
+3187ms ║║Executed [South Garage Doors West Coach Light].on (44ms)
+3207ms ║║Comparison (time) 31922322 is_less_than (time) 86340000 = true (2ms)
+3208ms ║║Condition #45 evaluated true (18ms)
+3209ms ║║Condition group #51 evaluated true (state did not change) (19ms)
+3227ms ║║Cancelling statement #52’s schedules…
+3302ms ║║Executed physical command [Front Door North Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (58ms)
+3304ms ║║Executed [Front Door North Coach Light].setColor (67ms)
+3332ms ║║Executed physical command [Front Door North Coach Light].setLevel([70]) (18ms)
+3333ms ║║Executed [Front Door North Coach Light].setLevel (25ms)
+3346ms ║║Cancelling statement #52’s schedules…
+3406ms ║║Executed physical command [Front Door South Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (51ms)
+3407ms ║║Executed [Front Door South Coach Light].setColor (53ms)
+3425ms ║║Executed physical command [Front Door South Coach Light].setLevel([70]) (13ms)
+3426ms ║║Executed [Front Door South Coach Light].setLevel (15ms)
+3439ms ║║Cancelling statement #52’s schedules…
+3490ms ║║Executed physical command [Garage Man Door Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (42ms)
+3491ms ║║Executed [Garage Man Door Coach Light].setColor (45ms)
+3513ms ║║Executed physical command [Garage Man Door Coach Light].setLevel([70]) (15ms)
+3513ms ║║Executed [Garage Man Door Coach Light].setLevel (17ms)
+3526ms ║║Cancelling statement #52’s schedules…
+3580ms ║║Executed physical command [Main Garage Door North Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (44ms)
+3581ms ║║Executed [Main Garage Door North Coach Light].setColor (46ms)
+3600ms ║║Executed physical command [Main Garage Door North Coach Light].setLevel([70]) (13ms)
+3601ms ║║Executed [Main Garage Door North Coach Light].setLevel (15ms)
+3613ms ║║Cancelling statement #52’s schedules…
+3664ms ║║Executed physical command [Main Garage Door South Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (42ms)
+3665ms ║║Executed [Main Garage Door South Coach Light].setColor (44ms)
+3685ms ║║Executed physical command [Main Garage Door South Coach Light].setLevel([70]) (14ms)
+3686ms ║║Executed [Main Garage Door South Coach Light].setLevel (15ms)
+3698ms ║║Cancelling statement #52’s schedules…
+3747ms ║║Executed physical command [Patio East Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (40ms)
+3748ms ║║Executed [Patio East Coach Light].setColor (42ms)
+3788ms ║║Executed physical command [Patio East Coach Light].setLevel([70]) (16ms)
+3789ms ║║Executed [Patio East Coach Light].setLevel (18ms)
+3803ms ║║Cancelling statement #52’s schedules…
+3851ms ║║Executed physical command [Patio West Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (40ms)
+3852ms ║║Executed [Patio West Coach Light].setColor (42ms)
+3871ms ║║Executed physical command [Patio West Coach Light].setLevel([70]) (14ms)
+3872ms ║║Executed [Patio West Coach Light].setLevel (15ms)
+3885ms ║║Cancelling statement #52’s schedules…
+3937ms ║║Executed physical command [South Garage Doors Center Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (43ms)
+3938ms ║║Executed [South Garage Doors Center Coach Light].setColor (45ms)
+3958ms ║║Executed physical command [South Garage Doors Center Coach Light].setLevel([70]) (14ms)
+3959ms ║║Executed [South Garage Doors Center Coach Light].setLevel (17ms)
+3973ms ║║Cancelling statement #52’s schedules…
+4026ms ║║Executed physical command [South Garage Doors East Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (43ms)
+4027ms ║║Executed [South Garage Doors East Coach Light].setColor (46ms)
+4047ms ║║Executed physical command [South Garage Doors East Coach Light].setLevel([70]) (14ms)
+4048ms ║║Executed [South Garage Doors East Coach Light].setLevel (15ms)
+4061ms ║║Cancelling statement #52’s schedules…
+4134ms ║║Executed physical command [South Garage Doors West Coach Light].setColor([[hex: #008000, hue:33, saturation:100, level:25]]) (65ms)
+4135ms ║║Executed [South Garage Doors West Coach Light].setColor (67ms)
+4161ms ║║Executed physical command [South Garage Doors West Coach Light].setLevel([70]) (21ms)
+4162ms ║║Executed [South Garage Doors West Coach Light].setLevel (22ms)
+4166ms ║║Cancelling statement #60’s schedules…
+4172ms ║║Calculating (integer) 3 - (integer) 0 >> (integer) 3
+4180ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+4184ms ║║Calculating (integer) 3 == (integer) 1 >> (boolean) false
+4191ms ║║Executed virtual command setVariable (4ms)
+4196ms ║║Executed virtual command wait (1ms)
+4197ms ║║Requesting a wake up for Sun, Feb 18 2018 @ 8:53:03 AM CST (in 60.0s)
+4207ms ║╚Execution stage complete. (3975ms)
+4209ms ║Setting up scheduled job for Sun, Feb 18 2018 @ 8:53:03 AM CST (in 59.99s), with 1 more job pending
+4342ms ╚Event processed successfully (4342ms)


#17

add a space before “23:59” everywhere “ 23:59” :slight_smile:


#18

Works now, I guess I should have paid closer attention to the instructions :slightly_smiling_face:

Again, thanks for the help!


#19

Think I’m going to have an issue every holiday :slight_smile:.

addDays(datetime(“03/17/” + $year + " 23:59"), 0) and the lights didn’t go on, on the holiday itself. I had to change the 0 to a 1 and rerun. At this point should I just increment the days after the holiday by 1 across the board to achieve my desired effect? Pls. let me know if you have other thoughts on making the this run on the holiday itself etc.

Thanks for all of the help, much appreciated.


#20

yes please change all adddays(…, 0) to adddays(…, 1) for now.

i will take a look later at why that still happens with the time being specified.

sorry.

edit: are you in europe?