Holiday Lights: 4th of July / Diwali / Halloween / Christmas - Your Pick

4thofjuly
diwali
halloween
christmas
holiday

#223

thats not an accurate pic even know I pulled it from the program my lights are called front L front M and front R That snap shop shows RGB bulb is that normal? When I go to the piston its shows my bulbs labeled correctly


#224

never mind the time clause if failing on the while. :sigh:

at line 100


#225

um ok not sure what that means I changed that so it ran untill sunrise did I need to do something else? Would it be easier just to have them come on at sunset and off at 08:00


#226

well the isbetween condition is not working.

can you please change the isbetween condition to midnight instead of sunrise and trigger the piston by changing the time happens?

try this condition:

while isBetween($now, $sunset, time(“23:59”)) is true


#227

done and adjusted start time should attempt in a minute


#228

still didnt come on
12/2/2017, 8:57:59 PM +196ms
+6ms ╔Received event [Home].time = 1512277080000 with a delay of -805ms
+242ms ║RunTime Analysis CS > 27ms > PS > 56ms > PE > 156ms > CE
+259ms ║Runtime (66769 bytes) successfully initialized in 56ms (v0.2.0fe.20171109) (252ms)
+264ms ║╔Execution stage started
+283ms ║║Comparison (time) 75479467 happens_daily_at (time) 75480000 = true (3ms)
+284ms ║║Time restriction check passed
+286ms ║║Cancelling condition #22’s schedules…
+287ms ║║Condition #22 evaluated true (16ms)
+300ms ║║Cancelling statement #22’s schedules…
+308ms ║║Requesting time schedule wake up at Sun, Dec 3 2017 @ 8:58:00 PM PST
+311ms ║║Cancelling condition #5’s schedules…
+312ms ║║Condition group #5 evaluated true (state changed) (41ms)
+314ms ║║Cancelling statement #56’s schedules…
+321ms ║║Executed virtual command setVariable (4ms)
+326ms ║║Executed virtual command setVariable (3ms)
+358ms ║║Calculating (string) 07/04/ + (string) 2017 >> (string) 07/04/2017
+369ms ║║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0
+378ms ║║Calculating (string) 07/04/ + (string) 2017 >> (string) 07/04/2017
+391ms ║║Comparison (date) 1512201600000 is_between (datetime) 1498546800000 … (datetime) 1499238000000 = false (9ms)
+395ms ║║Condition #27 evaluated false (66ms)
+398ms ║║Condition group #6 evaluated false (state did not change) (68ms)
+411ms ║║Calculating (string) 10/31/ + (string) 2017 >> (string) 10/31/2017
+417ms ║║Calculating (decimal) 0.0 - (decimal) 7.0 >> (decimal) -7.0
+424ms ║║Calculating (string) 10/31/ + (string) 2017 >> (string) 10/31/2017
+437ms ║║Comparison (date) 1512201600000 is_between (datetime) 1508828400000 … (datetime) 1509433200000 = false (6ms)
+439ms ║║Condition #29 evaluated false (38ms)
+440ms ║║Condition group #13 evaluated false (state did not change) (39ms)
+450ms ║║Calculating (string) 12/25/ + (string) 2017 >> (string) 12/25/2017
+455ms ║║Calculating (decimal) 0.0 - (decimal) 21.0 >> (decimal) -21.0
+463ms ║║Calculating (string) 12/25/ + (string) 2017 >> (string) 12/25/2017
+472ms ║║Comparison (date) 1512201600000 is_between (datetime) 1512374400000 … (datetime) 1514793600000 = false (4ms)
+473ms ║║Condition #30 evaluated false (31ms)
+474ms ║║Condition group #17 evaluated false (state did not change) (32ms)
+488ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+490ms ║║Condition #114 evaluated false (12ms)
+490ms ║║Condition group #null evaluated false (state did not change) (13ms)
+493ms ║║Cancelling statement #46’s schedules…
+504ms ║║Executed virtual command setState (5ms)
+606ms ║║Calculating (string) Empty device list == (string) playing >> (boolean) false
+612ms ║║Calculating (boolean) false ! (boolean) false >> (boolean) true
+617ms ║║Executed virtual command setVariable (3ms)
+633ms ║║Calculating (integer) 60 / (integer) 3 >> (integer) 20
+638ms ║║Executed virtual command setVariable (3ms)
+649ms ║║Calculating (integer) 80 - (integer) 1 >> (integer) 79
+654ms ║║Calculating (integer) 20 - (integer) 1 >> (integer) 19
+658ms ║║Calculating (integer) 79 / (integer) 19 >> (integer) 4.1578947368
+663ms ║║Executed virtual command setVariable (3ms)
+669ms ║║Executed virtual command setVariable (3ms)
+676ms ║║Executed virtual command setVariable (3ms)
+697ms ║║Comparison (boolean) false is (boolean) false = true (2ms)
+698ms ║║Condition #38 evaluated true (18ms)
+699ms ║║Condition group #48 evaluated true (state did not change) (20ms)
+701ms ║║Cancelling statement #36’s schedules…
+711ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+713ms ║║Executed virtual command setVariable (1ms)
+725ms ║║Comparison (boolean) true is (boolean) false = false (2ms)
+726ms ║║Cancelling condition #38’s schedules…
+727ms ║║Condition #38 evaluated false (11ms)
+728ms ║║Cancelling condition #48’s schedules…
+729ms ║║Condition group #48 evaluated false (state changed) (13ms)
+996ms ║║Comparison (boolean) true is (boolean) true = true (1ms)
+998ms ║║Condition #45 evaluated true (266ms)
+999ms ║║Condition group #51 evaluated true (state did not change) (268ms)
+1017ms ║║An error occurred while executing the event: java.lang.NullPointerException: Cannot get property ‘v’ on null object
+1023ms ║╚Execution stage complete. (763ms)
+1031ms ║Setting up scheduled job for Sun, Dec 3 2017 @ 8:58:00 PM PST (in 86399.779s)
+1155ms ╚Event processed successfully (1155ms)


#229

thanks. have you created the global boolean variable @pauseHLCRaFp and set it to false?


#230

uhhhh is there a dumb face emoji because I have no clue what you just asked me. :thinking:


#231

this is part of the setup.

in piston edit mode check the right hand bar. there you will see a link to add a new global variable.

image

click on that link to create that variable and set the value to false.


#232

Ok I’m kinda following you but what is it I put as the variable. Not this I assume


#233

So like this


#234

Ok so looks like that was the key The lights are on now but there only White and kinda fading in just white?


#235

because none of the date ranges match.


#236

Cool so I change the date to -24 and it kind of works Have three lights set but one turns white when I think its suppose to be green. Goes from gold to white. Should I change the off back to the other way so it stays on till surise?


#237

while the piston is running what is the value of fadecolors?

sure.


#238

Im gonna have to work on this more tommorrow Look like when the piston starts there is one gold one red and one green. the first change happens and one light goes to white another to gold and one red then they just stay that way kinda of fading light to dark but not changing how do I tell you the value of fadecolors while piston is running


#239

heres what logs show
Logs
12/2/2017, 10:07:12 PM +520ms
+1ms ╔Received event [Home].time = 1512281233799 with a delay of -1279ms
+249ms ║RunTime Analysis CS > 15ms > PS > 55ms > PE > 179ms > CE
+292ms ║Runtime (68657 bytes) successfully initialized in 55ms (v0.2.0fe.20171109) (289ms)
+293ms ║╔Execution stage started
+616ms ║║Calculating (integer) 48 - (integer) 4 >> (integer) 44
+629ms ║║Calculating (integer) 48 - (integer) 4 >> (integer) 44
+634ms ║║Calculating (integer) 44 < (integer) 1 >> (boolean) false
+641ms ║║Calculating (integer) 48 + (integer) 4 >> (integer) 52
+652ms ║║Calculating (integer) 48 + (integer) 4 >> (integer) 52
+656ms ║║Calculating (integer) 52 > (integer) 80 >> (boolean) false
+660ms ║║Calculating (boolean) false ! (boolean) false >> (boolean) true
+667ms ║║Executed virtual command setVariable (3ms)
+683ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+685ms ║║Condition #163 evaluated false (8ms)
+686ms ║║Condition group #null evaluated false (state did not change) (9ms)
+689ms ║║Cancelling statement #72’s schedules…
+715ms ║║Executed physical command [Front L].setLevel([44]) (20ms)
+717ms ║║Executed [Front L].setLevel (21ms)
+734ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+735ms ║║Condition #163 evaluated false (7ms)
+736ms ║║Condition group #null evaluated false (state did not change) (8ms)
+741ms ║║Cancelling statement #72’s schedules…
+758ms ║║Executed physical command [Front M].setLevel([44]) (10ms)
+759ms ║║Executed [Front M].setLevel (12ms)
+774ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+777ms ║║Condition #163 evaluated false (8ms)
+778ms ║║Condition group #null evaluated false (state did not change) (11ms)
+782ms ║║Cancelling statement #72’s schedules…
+797ms ║║Executed physical command [Front R].setLevel([44]) (9ms)
+798ms ║║Executed [Front R].setLevel (11ms)
+821ms ║║Comparison (boolean) false is (boolean) true = false (1ms)
+822ms ║║Condition #151 evaluated false (6ms)
+823ms ║║Condition group #null evaluated false (state did not change) (8ms)
+826ms ║║Cancelling statement #74’s schedules…
+830ms ║║Executed virtual command wait (0ms)
+831ms ║║Waiting for 2000ms
+2844ms ║║Calculating (integer) 44 - (integer) 4 >> (integer) 40
+2861ms ║║Calculating (integer) 44 - (integer) 4 >> (integer) 40
+2867ms ║║Calculating (integer) 40 < (integer) 1 >> (boolean) false
+2878ms ║║Calculating (integer) 44 + (integer) 4 >> (integer) 48
+2895ms ║║Calculating (integer) 44 + (integer) 4 >> (integer) 48
+2902ms ║║Calculating (integer) 48 > (integer) 80 >> (boolean) false
+2908ms ║║Calculating (boolean) false ! (boolean) false >> (boolean) true
+2917ms ║║Executed virtual command setVariable (4ms)
+2936ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+2938ms ║║Condition #163 evaluated false (6ms)
+2939ms ║║Condition group #null evaluated false (state did not change) (8ms)
+2942ms ║║Cancelling statement #72’s schedules…
+2953ms ║║Executed physical command [Front L].setLevel([40]) (5ms)
+2954ms ║║Executed [Front L].setLevel (7ms)
+2966ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+2968ms ║║Condition #163 evaluated false (6ms)
+2968ms ║║Condition group #null evaluated false (state did not change) (7ms)
+2972ms ║║Cancelling statement #72’s schedules…
+2983ms ║║Executed physical command [Front M].setLevel([40]) (5ms)
+2984ms ║║Executed [Front M].setLevel (7ms)
+2996ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+2998ms ║║Condition #163 evaluated false (5ms)
+2999ms ║║Condition group #null evaluated false (state did not change) (7ms)
+3002ms ║║Cancelling statement #72’s schedules…
+3011ms ║║Executed physical command [Front R].setLevel([40]) (5ms)
+3012ms ║║Executed [Front R].setLevel (7ms)
+3030ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+3032ms ║║Condition #151 evaluated false (5ms)
+3033ms ║║Condition group #null evaluated false (state did not change) (7ms)
+3036ms ║║Cancelling statement #74’s schedules…
+3039ms ║║Executed virtual command wait (0ms)
+3040ms ║║Waiting for 2000ms
+5049ms ║║Calculating (integer) 40 - (integer) 4 >> (integer) 36
+5061ms ║║Calculating (integer) 40 - (integer) 4 >> (integer) 36
+5065ms ║║Calculating (integer) 36 < (integer) 1 >> (boolean) false
+5073ms ║║Calculating (integer) 40 + (integer) 4 >> (integer) 44
+5085ms ║║Calculating (integer) 40 + (integer) 4 >> (integer) 44
+5089ms ║║Calculating (integer) 44 > (integer) 80 >> (boolean) false
+5093ms ║║Calculating (boolean) false ! (boolean) false >> (boolean) true
+5100ms ║║Executed virtual command setVariable (3ms)
+5114ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+5116ms ║║Condition #163 evaluated false (6ms)
+5117ms ║║Condition group #null evaluated false (state did not change) (7ms)
+5121ms ║║Cancelling statement #72’s schedules…
+5131ms ║║Executed physical command [Front L].setLevel([36]) (6ms)
+5132ms ║║Executed [Front L].setLevel (8ms)
+5146ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+5148ms ║║Condition #163 evaluated false (7ms)
+5149ms ║║Condition group #null evaluated false (state did not change) (8ms)
+5152ms ║║Cancelling statement #72’s schedules…
+5163ms ║║Executed physical command [Front M].setLevel([36]) (6ms)
+5163ms ║║Executed [Front M].setLevel (7ms)
+5177ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+5178ms ║║Condition #163 evaluated false (6ms)
+5179ms ║║Condition group #null evaluated false (state did not change) (8ms)
+5183ms ║║Cancelling statement #72’s schedules…
+5216ms ║║Executed physical command [Front R].setLevel([36]) (6ms)
+5217ms ║║Executed [Front R].setLevel (8ms)
+5234ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+5236ms ║║Condition #151 evaluated false (6ms)
+5237ms ║║Condition group #null evaluated false (state did not change) (8ms)
+5240ms ║║Cancelling statement #74’s schedules…
+5244ms ║║Executed virtual command wait (1ms)
+5245ms ║║Waiting for 2000ms
+7257ms ║║Calculating (integer) 36 - (integer) 4 >> (integer) 32
+7272ms ║║Calculating (integer) 36 - (integer) 4 >> (integer) 32
+7278ms ║║Calculating (integer) 32 < (integer) 1 >> (boolean) false
+7288ms ║║Calculating (integer) 36 + (integer) 4 >> (integer) 40
+7304ms ║║Calculating (integer) 36 + (integer) 4 >> (integer) 40
+7308ms ║║Calculating (integer) 40 > (integer) 80 >> (boolean) false
+7313ms ║║Calculating (boolean) false ! (boolean) false >> (boolean) true
+7321ms ║║Executed virtual command setVariable (4ms)
+7340ms ║║Comparison (boolean) false is (boolean) true = false (3ms)
+7343ms ║║Condition #163 evaluated false (9ms)
+7344ms ║║Condition group #null evaluated false (state did not change) (11ms)
+7348ms ║║Cancelling statement #72’s schedules…
+7362ms ║║Executed physical command [Front L].setLevel([32]) (9ms)
+7363ms ║║Executed [Front L].setLevel (10ms)
+7382ms ║║Comparison (boolean) false is (boolean) true = false (3ms)
+7384ms ║║Condition #163 evaluated false (10ms)
+7385ms ║║Condition group #null evaluated false (state did not change) (12ms)
+7389ms ║║Cancelling statement #72’s schedules…
+7402ms ║║Executed physical command [Front M].setLevel([32]) (8ms)
+7404ms ║║Executed [Front M].setLevel (11ms)
+7423ms ║║Comparison (boolean) false is (boolean) true = false (3ms)
+7425ms ║║Condition #163 evaluated false (9ms)
+7427ms ║║Condition group #null evaluated false (state did not change) (10ms)
+7431ms ║║Cancelling statement #72’s schedules…
+7445ms ║║Executed physical command [Front R].setLevel([32]) (8ms)
+7446ms ║║Executed [Front R].setLevel (10ms)
+7469ms ║║Comparison (boolean) false is (boolean) true = false (3ms)
+7471ms ║║Condition #151 evaluated false (7ms)
+7472ms ║║Condition group #null evaluated false (state did not change) (9ms)
+7475ms ║║Cancelling statement #74’s schedules…
+7480ms ║║Executed virtual command wait (1ms)
+7481ms ║║Waiting for 2000ms
+9489ms ║║Calculating (integer) 32 - (integer) 4 >> (integer) 28
+9500ms ║║Calculating (integer) 32 - (integer) 4 >> (integer) 28
+9505ms ║║Calculating (integer) 28 < (integer) 1 >> (boolean) false
+9511ms ║║Calculating (integer) 32 + (integer) 4 >> (integer) 36
+9522ms ║║Calculating (integer) 32 + (integer) 4 >> (integer) 36
+9527ms ║║Calculating (integer) 36 > (integer) 80 >> (boolean) false
+9531ms ║║Calculating (boolean) false ! (boolean) false >> (boolean) true
+9537ms ║║Executed virtual command setVariable (4ms)
+9551ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+9553ms ║║Condition #163 evaluated false (7ms)
+9554ms ║║Condition group #null evaluated false (state did not change) (8ms)
+9557ms ║║Cancelling statement #72’s schedules…
+9568ms ║║Executed physical command [Front L].setLevel([28]) (6ms)
+9568ms ║║Executed [Front L].setLevel (7ms)
+9581ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+9583ms ║║Condition #163 evaluated false (6ms)
+9584ms ║║Condition group #null evaluated false (state did not change) (8ms)
+9587ms ║║Cancelling statement #72’s schedules…
+9597ms ║║Executed physical command [Front M].setLevel([28]) (5ms)
+9598ms ║║Executed [Front M].setLevel (7ms)
+9610ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+9612ms ║║Condition #163 evaluated false (6ms)
+9613ms ║║Condition group #null evaluated false (state did not change) (8ms)
+9616ms ║║Cancelling statement #72’s schedules…
+9626ms ║║Executed physical command [Front R].setLevel([28]) (5ms)
+9627ms ║║Executed [Front R].setLevel (8ms)
+9644ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+9646ms ║║Condition #151 evaluated false (6ms)
+9647ms ║║Condition group #null evaluated false (state did not change) (7ms)
+9650ms ║║Cancelling statement #74’s schedules…
+9654ms ║║Executed virtual command wait (0ms)
+9656ms ║║Requesting a wake up for Sat, Dec 2 2017 @ 10:07:24 PM PST (in 2.0s)
+9664ms ║╚Execution stage complete. (9372ms)
+9668ms ║Setting up scheduled job for Sat, Dec 2 2017 @ 10:07:24 PM PST (in 1.992s), with 1 more job pending
+9771ms ╚Event processed successfully (9770ms)
12/2/2017, 10:07:02 PM +345ms
+1ms ╔Received event [Home].time = 1512281223207 with a delay of -864ms
+240ms ║RunTime Analysis CS > 21ms > PS > 53ms > PE > 168ms > CE
+284ms ║Runtime (68656 bytes) successfully initialized in 53ms (v0.2.0fe.20171109) (280ms)
+285ms ║╔Execution stage started
+451ms ║║Calculating (integer) 68 - (integer) 4 >> (integer) 64
+460ms ║║Calculating (integer) 68 - (integer) 4 >> (integer) 64
+464ms ║║Calculating (integer) 64 < (integer) 1 >> (boolean) false
+470ms ║║Calculating (integer) 68 + (integer) 4 >> (integer) 72
+480ms ║║Calculating (integer) 68 + (integer) 4 >> (integer) 72
+484ms ║║Calculating (integer) 72 > (integer) 80 >> (boolean) false
+487ms ║║Calculating (boolean) false ! (boolean) false >> (boolean) true
+493ms ║║Executed virtual command setVariable (3ms)
+505ms ║║Comparison (boolean) false is (boolean) true = false (1ms)
+507ms ║║Condition #163 evaluated false (6ms)
+508ms ║║Condition group #null evaluated false (state did not change) (6ms)
+511ms ║║Cancelling statement #72’s schedules…
+527ms ║║Executed physical command [Front L].setLevel([64]) (9ms)
+528ms ║║Executed [Front L].setLevel (12ms)
+539ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+540ms ║║Condition #163 evaluated false (5ms)
+541ms ║║Condition group #null evaluated false (state did not change) (7ms)
+544ms ║║Cancelling statement #72’s schedules…
+559ms ║║Executed physical command [Front M].setLevel([64]) (8ms)
+560ms ║║Executed [Front M].setLevel (10ms)
+571ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+572ms ║║Condition #163 evaluated false (5ms)
+573ms ║║Condition group #null evaluated false (state did not change) (6ms)
+576ms ║║Cancelling statement #72’s schedules…
+589ms ║║Executed physical command [Front R].setLevel([64]) (8ms)
+590ms ║║Executed [Front R].setLevel (9ms)
+606ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+607ms ║║Condition #151 evaluated false (5ms)
+608ms ║║Condition group #null evaluated false (state did not change) (7ms)
+611ms ║║Cancelling statement #74’s schedules…
+614ms ║║Executed virtual command wait (0ms)
+615ms ║║Waiting for 2000ms
+2623ms ║║Calculating (integer) 64 - (integer) 4 >> (integer) 60
+2632ms ║║Calculating (integer) 64 - (integer) 4 >> (integer) 60
+2636ms ║║Calculating (integer) 60 < (integer) 1 >> (boolean) false
+2642ms ║║Calculating (integer) 64 + (integer) 4 >> (integer) 68
+2652ms ║║Calculating (integer) 64 + (integer) 4 >> (integer) 68
+2655ms ║║Calculating (integer) 68 > (integer) 80 >> (boolean) false


#240

hmm … this is one piston i run regularly so i know the color rotate and fade works consistently. so a little surprised.

are you sure there is not something else also running that is setting the color of any of these lights while this piston is running?


#241

yet as far as I know I pretty much just got these for this reason Gonna have to wait till tommorrow I gotta hit the sack or wife is gonna kill me. Thanks for all the help tonight Ill proably bug you more tommorrow Really really love this piston and Im sure will get it working sooner or later


#242

it didnt like me changing the time to isBetween($now, $sunset, $sunrise) Just shut it off when I did that