Right now I use something similar to fire my holiday lights for about 10 holidays. Instead of having an automation for each holiday, is there a way I can use a condition in the action to execute the script based on the holiday?
- alias: Lights - Exterior On - Sun- PM St. Patricks Day
initial_state: true
trigger:
platform: sun
event: sunset
condition:
- condition: state
entity_id: input_select.holiday
state:
- "St. Patrick's Day"
action:
repeat:
count: 5
sequence:
- service: script.stpatricks_lights_on
- delay:
seconds: 5