#holidays
1 messages · Page 1 of 1 (latest)
Is this the correct state to check state on for a Holiday (using the holiday integration)? I’m not sure how to test without waiting for a holiday
I got the text from the calendar after adding the integration, but I’m not sure it’s the “Description” field I need to be using
There’s also a message field
I guess I will be able to find out on saint Patrick’s day if this one works but if it doesn’t then I’m kinda screwed for a while before next test
For a specific holiday? The state of the calendar entity will be on if today is a holiday and off if not. The attributes will reflect the next holiday. The message attribute has the name of the holiday. You can see all this in dev->States
Yeah specific holiday. I’m changing my trigger that turns on my house’s spotlights at sunset to do colors during a few specific holidays, so that’s why I’m not just checking on or off
Like green for st patty’s
I appreciate the dev -> states tip in addition to the answer, cause not knowing about that was what stopped me from figuring it out in the first place 🙂
hmm apparently the message attribute has the name of the next holiday even before it starts
I guess i check state is on/off AND description?
👌
well thi sis unfortunate
um
this event was triggered by the event triggering the holiday turning on
what if I change the offset type to ‘after’ ?
if it stays at 00:00 will that make it work?
If your trigger is whether the state is 'on', which is it also in your conditions? Perhaps share your entire YAML
it’s triggered by holiday on/off and sunset, because it’s the sunset/sunrise outside lights. the additional triggers just serve to control midnight holiday color switching
Is the strat I just trigger it one second after?
Seems a bit silly but not meaningfully different
When is the next holiday to test 🤔
If you share the YAML, perhaps somebody can help
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
the off trigger didn’t work either, so both the holiday triggers are broke
I guess you can split this into two automations but then I will have to copy a bunch of color stuff every time (particularly later when the individual lights have different colors?)
but yeah changing offset type to after didn’t fix the holiday triggers check
I don't see what the triggers related to the calendar are doing for you. Just trigger on sunset and sunrise to turn the lights on and off and choose the color of the calendar state is on and depending on the holiday
And each holiday with a ' in it should be double quoted
that’s probably an interface bug
given I created it with the GUI, and the normal expectation is the escaping would be done on the backend in that scenario
so like, 7 pm st patrick’s eve -> 3000K lights, everybody on evening run sees normal lights.
midnight -> green lights, so it’s green for people on morning walks on st patrick’s
otherwise it’s 3000K still in the morning
so it’s necessary for morning holiday lights to be the correct color, otherwise it has the regular color from the night before
My current best idea is replace the holiday start/end trigger with a 12:01 am trigger (not sure if midnight will have a race condition)