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

4thofjuly
diwali
halloween
christmas
holiday

#347

this one sets the level to a random value.

on line 207 of snapshot change it to set level to i


#348

I see now. Changing that line to this:

set level to levelLow + random (levelHigh-levelLow)

…sets the level to a random value between levelLow and levelHigh. Thats what I was looking for. Thank you.


#349

Does this capture the state and color of your bulbs prior to running so they can reset back afterwards?


#350

no it does not.


#351

Im trying to follow this thread, but are there 2 pistons I need to enable? I get an error when I implement the one.


#352

are you using this the one with piston code 27364?


#353

When I use any of the codes and implement I get the following in the Logs:

An error occurred while executing the event: java.lang.NullPointerException: Cannot get property ‘v’ on null object


#354

usually that happens when during piston restore all device prompts are not filled in or a global variable is not created.

please double check the devices and any global variables.


#355

Since there were 2 lights I only used 1 but did remove the second one from the piston. Is there a global variable required to be created?


#356

which piston code did you use for restore?


#357

I restored with the piston code 27364 you suggested.


#358

did you already do this part?


#359

Am I the only one that sees the phrase “full of crap” in the name of your variable?:rofl:


#360

its early yet … grab a cup of joe and mount the throne to unsee it :wink:


#361

I only have 1 hue strip. How can this be changed to make the colors rotate (fade in /out)? Right now, my strip isn’t giving me the correct colors.


#362

the color rotation is working? you would like it to also fade in / fade out when the colors change?


#363

Well, wouldn’t you know that it works now! You really are good!


#364

sometimes zigbee devices take a bit of time to respond properly in a new environment.

happy to hear its working now.


#365

To bring back an old thread

I just turned this Piston on.

It ran for ten minutes and stopped.

I can’t seem to get it going again. Is there a counter I need to reset?


#366

other than time restriction this global variable should be false:

image

anything in the logs?