#holidays

1 messages · Page 1 of 1 (latest)

lethal grove
#

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

lethal grove
#

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

summer turret
#

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

lethal grove
#

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

lethal grove
lethal grove
#

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?

summer turret
#

Yes

#

Trigger on state, condition on attribute

lethal grove
#

👌

lethal grove
#

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?

summer turret
#

If your trigger is whether the state is 'on', which is it also in your conditions? Perhaps share your entire YAML

lethal grove
lethal grove
#

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 🤔

summer turret
#

If you share the YAML, perhaps somebody can help

lethal grove
#

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

summer turret
#

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

lethal grove
#

given I created it with the GUI, and the normal expectation is the escaping would be done on the backend in that scenario

lethal grove
#

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)

lethal grove
#

that’s what I did for now

#

just set a trigger for 5 seconds after midnight

#

not sure the format is rich enough for a midnight trigger that doesn’t have a race condition if the holiday trigger itself goes off before it sets as on