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

holiday
4thofjuly
diwali
halloween
christmas

#323

too many hops with hue. did you try adding a 5 second wait?


#324

No haven’t tried adding a wait as yet.


#325

ok. that should help quite a bit.


#326

Anyone have these lights and know how to re-pair them to my hub? I had a couple power outages yesterday that seems to screwed up a bunch of stuff. I ended up removing them from ST, but can’t figure out how to get them to re-pair.

edit: My apologies, as I know this is a bit offtopic.


#327

Probably best to do a factor reset on the lights (don’t delete them from ST) then turn them off. Then go to add device on the ST menu and turn the lights on. They will flash but nothing will happen on the ST app, they try and turn them on/off on the app and all should be back to normal.


#328

I have another piston that rhns daily
How would I set this piston to run but ignore the daily one when it is the holiday


#329

here’s how i did it. if you are using the latest version from post one then add another action above the turn on command in line 139 using pause piston and point it to the piston you want to pause then after the turn off command in line 229 add a resume piston action pointing to the piston you paused


#330

Just digging into my ST setup and I’m looking to do something similar. Either use the single holiday piston to control my lights all year long (three different groups of lights, all Osram RGBW connected to ST hub, but generally used at soft white/2700K, non-fading/flashing, varying dimming levels based on location) and then switch to the holiday effects as defined OR have two pistons as you do. One for the majority of the year, and the other to define the unique holiday effects. I’m not sure of the best approach and am currently using the Smart Lighting smart app and scenes w/in ST to control the non-non holiday settings. I understand I will need to move it all into pistons to handle the complexity of the holiday logic (no sound needed), just trying to understand best path forward. When I load backup 27364 from post one, lines 139 and 229 don’t seem to line up to on/off statements respectively. Any advice is appreciated or if you could share a screenshot or code samples of both pistons it would be appreciated. Thanks for the awesome piston samples and discussion everyone!


#332

i don’t actually use the full version of this piston but a cut down version

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

maybe this helps. i was looking at the screen shot in post one to get lines 139 and 229


#333

Thank you, I’ll take a look. High level it appears to be basically the same thing minus the sound, which is probably more where I’m headed anyway. Thanks again.


#334

If anyone is interested, I modified this piston to remove sound, removed/added holidays, and added default color(s) if there is no holiday.


#335

That’s very nice. I’m going to try it. But I am going to try to adapt it to a holiday calendar api. That way I don’t gave to go back every year and adjust for Easter and other dates that change from year to year. I’ll lrt you know how it goes. Oh. Yeah I’m my sore time. Lol.


#336

I have another piston that runs on non-holiday days. How would I take this piston, and say if it is a holiday do not run my other piston?


#337

from the holiday piston pause the other piston after line 85 and resume the other piston at the bottom of the holiday piston.


#338

Does the resume need to be in the last do or on its own else? (line 340 or line 345)?


#339

in the snapshot above put it after line 235.


#340

I did. Thanks for confirming. Now have to wait for a holiday lol


#341

I’m getting the following error in my log when I save this piston:

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

#342

very likely all the required devices were not populated when restoring and saving the piston.


#343

I’m using flyize’s modified version, as far as I can tell the devices are populated…?