[Release] Holiday Lighting

Howdy @mbishop i found your cool app and have been playing with prior to Halloween for my front porch lighting.

However I’m a little confused by the non holiday lighting. Is this supposed to act like a “motion lighting app”? I’m assuming when activated, it should set 100% and then 5 minutes later drop the light to 10%?



NVM, I made the mistake of using a door lock as a trigger, and that kept the light on all the time when we were home.

Ah, glad you sorted it! Yes, the intent is to provide the option of motion-activated lighting, so that it can play nicely with the holiday lights -- on holidays, colors until there's activity, then switch to illumination.

1 Like

It works great, I’m impressed. :ok_hand:

1 Like

The goal would be just like the motion sensor where any change to present would trigger non-holiday illumination for x minutes.

Also, can you an 'Other switch to turn on' under the Idle lighting section?'

I accidentally posted a string into the hsv field and now I cannot fix it. The following error occurs when I go to set holiday colors.

Error: No signature of method: user_app_evequefou_Holiday_Lighting_337.HSVtoRGB() is applicable for argument types: (java.lang.String) values: [Vivid orange]

My settings appear as:

holiday10Color0 COLOR_MAP "Vivid orange"
holiday10Color1 COLOR_MAP [hue:0, saturation:0, level:100]

What can I add into the code to override or delete this holiday.

Hi @mbishop, Thanks this app is great!. I just came across it, loaded it up, and am looking forward to seeing it in action. There was one small request I have after going through the configuration. Would it be possible to add the 'days before'/'days after' to the holiday schedule button? That would make it easier to ready. It works fine when fixed weekday is used but when you put offsets to a fixed date or special days it does not appear.

i.e. the button will show '1 day after the fourth Thursday in November' and I have an offset for 12 days after December 25th but it only lists 'December 25th' as the end date. This is consistent with any fixed date or special days; fixed weekday works.

Thanks for the app!

1 Like

Holiday Day's offset would be great!

This should be fixed by Move HSV-RGB conversion inside try/catch by MikeBishop · Pull Request #28 · MikeBishop/hubitat-holiday · GitHub -- if you can incorporate that change and verify that it lets you recover, I'll merge it ASAP.

That worked like a champ. I could load up that page and edit the bad entry.

1 Like

Ah, good catch. The string was being calculated for two of the three types, but only displayed for one. Fix offset string being dropped by MikeBishop · Pull Request #29 · MikeBishop/hubitat-holiday · GitHub should address that.

1 Like

I am still not seeing the colors I expect when editing the entry.

I wanted to try these for thanksgiving.

So I went to this site to find the HSL value


Thanks

1 Like

For whatever reason, Hubitat uses a hue range of 0-100 rather than 0-360, so the app has to follow suit. If the converter is giving you 348.9°, try 348.9/360*100 = 96.91. You could also try clicking the color block and using the RGB/HSV selector in your browser.

Slightly harder than expected; I took a stab at this as Consolidate OtherSwitch handling by MikeBishop · Pull Request #30 · MikeBishop/hubitat-holiday · GitHub, but I haven't tested it yet and am headed to bed. Feel free to take it for a spin and tell me what breaks, or I'll get back to it another time.

Right, but the other triggers keep it in triggered-illumination state for as long as they match the indicated state; that's not what you'd likely want with presence.

Again, I think a virtual motion sensor and a rule to actuate it is probably a better solution for you than adding presence as a monitored state in the app with different behavior to the other types.

Thanks, looks to be working!

Mine crashed when I tried to save with the idle light selected. I restored the app and it still crashes.

Not sure what the crash on revert is, but I found and fixed a typo in the PR. If that doesn't resolve it for you, please include the error that's in the Hubitat logs for the crash and I'll take a closer look.

It was weird, I pulled the latest you had and it still wouldn't load. Nothing in the logs. Reboot the hub and it worked again.

The non-holiday lighting is completely broke now. It doesn't work for when switched or idle.

Nothing in the log for errors.

Thanks for the tip. Is Hubitat dumbing down to a reduced granularity? What I program doesn't look like my color pallet.




I would use the selector but it doesn't preload the sliders with what was saved or typed in. Thanks!