Automation for Countdown for New Years Eve

I would like to have an automation setup to play an audio file 10 seconds before new years, I see that there’s an option to setup an automation based on time. I’m having a hard time finding a way to limit the automation to only fire on December 31st.

Thanks for any help!

Template trigger:

trigger:
  platform: template
  value_template: >
    {{now() >= ((now().year~"-12-31 23:59:50")|as_datetime|as_local) }}

Or add a condition to a standard time trigger…

  condition: template
  value_template: "{{ now().month == 12 and now().day == 31 }}"
1 Like

Perfect! Thank you so much!