I am attempting to create an automation for the 12 days of Christmas.
I have created a HA Calendar (calendar.12xmas).
I have created a calendar entry for each of the 12 days. (12day_1, 12day_2, etc)
Each day is set to start at 16:30 and stop at 22:00
I have also created 12 decorations using wled. Each of the devices is called (light.12day_1, light.12day_2, etc).
After reading a great many posts about calendars and light integerations, I am at a loss as how to create the automation.
I tried scheduler but the online directions do not match what my scheduler looks like.
Can anyone provide a basic pointer.
I have started the automation to look like this. But got lost fast.
Does the time I set on the calendar start and stop the automation.
For each one of the 12 scheduled events in calendar.12xmas, enter the light’s entity_id in the event’s Description field. For example, for the first day’s event, enter light.12day_1, for the second day’s event enter light.12day_2, etc.
Now you can use a single automation to turn on/off the appropriate light for each one of the 12 days.
This automation’s Calendar Trigger will only trigger at the start of a scheduled event but not at the end of the event (based on tests performed with version 2025.11.1). Therefore it is unsuitable for your needs. Two Calendar Triggers are required, one with event: start and the other with event: end.
Instead of having the light’s entity ID in the description, just put the day number. Then that can be used to generate a list for a repeat to do them sequentially:
The example I posted above will not turn off the lights.
I made an incorrect assumption about how the Calendar Trigger’s event option behaves. Omitting it will simply cause the Calendar Trigger to fire at the start of a scheduled event but not at the end of the event (so the light would get turned on but not off).
You must create two Calendar Triggers, one configured with event: start and the other with event: end.
Thank you for the update.
After fooling around with it I figured it out and saw the exact same thing.
I have not had time to come back to the forum for a few days to thank everyone.