Add seasonal cuckoo clock automation with Halloween and Christmas sound packs, and update README files to reflect new features and audio assets.

This commit is contained in:
Carlo Costanzo
2025-11-24 16:31:37 -05:00
parent ddb10fd4ac
commit fd6ef6ffd5
16 changed files with 12 additions and 11 deletions

View File

@@ -39,17 +39,15 @@
data:
entity_id: media_player.livingroomCC
media_content_id: >
{% if now().strftime("%M")|int == 30 %}
{% if now().strftime("%B") == 'October' %}
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/october-clock/cuckoo-clock-01.wav
{% set month = now().strftime("%B") %}
{% set base = "https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/" %}
{% if month == 'October' %}
{% set folder = 'october-clock' %}
{% elif month == 'December' %}
{% set folder = 'december-clock' %}
{% else %}
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/cuckoo-clock/cuckoo-clock-01.wav
{% endif %}
{% else %}
{% if now().strftime("%B") == 'October' %}
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/october-clock/cuckoo-clock-{{now().strftime("%I")}}.wav
{% else %}
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/cuckoo-clock/cuckoo-clock-{{now().strftime("%I")}}.wav
{% endif %}
{% set folder = 'cuckoo-clock' %}
{% endif %}
{% set file = 'cuckoo-clock-01.wav' if now().strftime("%M")|int == 30 else 'cuckoo-clock-' ~ now().strftime("%I") ~ '.wav' %}
{{ base ~ folder ~ '/' ~ file }}
media_content_type: audio/mp4