I’ve followed the instruction to create automations based on the local calendar, but for some reason I can’t seem to get it to work and I don’t know why.
My goal is to be able to validate if there are certain holiday dates for which to then perform certain actions. To test the automation I have created a “all day” event in my local calendar called “TEST” but the automation doesn’t seem to catch it properly.
The way a calendar works is that when an event starts, it’s state turns on. When it ends it turns off. An all day event it just stay on. So you could use it as a condition if you use an all day event.
check the condition/template in the developer tools
check the traces from that automation
test the action in a script
What seems strange to me: you have used the same entity_id twice for different triggers.
Also, why don’t you just use the entity_id in the IF condition instead of that template.
It looks like you used the “Run” options from the expansion menu… That only runs the actions, it does not populate the trigger variable, so your If will always be false.
The light will turn on, but you won’t actually be testing anything…
You should test it by triggering it with an actual calendar event.
Also, be aware that your sunset trigger will not populate trigger.calendar_event.summary, so you need to provide an option in the general condition to make that trigger work. One option would be to use a trigger ID as follows: