diff --git a/README.md b/README.md index cfc1c3ef..6f0061e6 100755 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Live, personal Home Assistant configuration shared for **browsing and inspiratio - Holiday/front-of-house color scenes: [config/scene/monthly_colors.yaml](config/scene/monthly_colors.yaml), [config/script/monthly_color_scene.yaml](config/script/monthly_color_scene.yaml) - Dash-button triggers for quick actions: [config/automation/dash_buttons.yaml](config/automation/dash_buttons.yaml) - PC lock/unlock-driven lighting via HASS.Agent: [config/packages/hass_agent_homepc.yaml](config/packages/hass_agent_homepc.yaml) +- Seasonal cuckoo clock with October and Christmas sound packs: [config/automation/System/CucKoo_Clock.yaml](config/automation/System/CucKoo_Clock.yaml) - Battery and solar awareness: [config/packages/powerwall.yaml](config/packages/powerwall.yaml) - Presence-aware office comfort: [config/packages/office_motion.yaml](config/packages/office_motion.yaml) - Weather-aware lighting: [config/automation/dark_rainy_day.yaml](config/automation/dark_rainy_day.yaml) diff --git a/config/README.md b/config/README.md index 826e44b8..95c4aa9f 100755 --- a/config/README.md +++ b/config/README.md @@ -46,6 +46,7 @@ Live view of the `config/` directory my production Home Assistant instance loads | Scenes | Seasonal and ambiance presets that the scripts and automations call into. | [scene/monthly_colors.yaml](scene/monthly_colors.yaml), [scene/living_room.yaml](scene/living_room.yaml) | | Templates & Speech | Human-friendly voice briefings and templated responses. | [templates/speech/briefing.yaml](templates/speech/briefing.yaml) | | Dashboards & Media | UI chrome, floorplans, sound bites, and automation assets. | [www/custom_ui/floorplan/images/branding/Bear-Stone-Docker-Diagram.jpg](www/custom_ui/floorplan/images/branding/Bear-Stone-Docker-Diagram.jpg), [media/](media) | +| Seasonal Audio | Cuckoo clock with Halloween and Christmas sound packs. | [automation/System/CucKoo_Clock.yaml](automation/System/CucKoo_Clock.yaml) | ### Gear tied to these automations (affiliate links) Only including devices that have active references in the files above. Want the legacy list? Jump to [../legacy-readme.md](../legacy-readme.md). diff --git a/config/automation/System/CucKoo_Clock.yaml b/config/automation/System/CucKoo_Clock.yaml index a0ea3fa3..b13fc8f5 100755 --- a/config/automation/System/CucKoo_Clock.yaml +++ b/config/automation/System/CucKoo_Clock.yaml @@ -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 diff --git a/config/sounds/README.md b/config/sounds/README.md index 306756b7..d64df4e7 100755 --- a/config/sounds/README.md +++ b/config/sounds/README.md @@ -27,6 +27,7 @@ Audio assets (alert tones, chimes, TTS snippets) used by automations and scripts ### Tips - Keep filenames descriptive so automations stay readable. - Subfolders hold themed or device-specific sounds. +- Seasonal cuckoo clock uses `october-clock` (Halloween) and `december-clock` (Christmas) variants, falling back to `cuckoo-clock`. **All of my configuration files are tested against the most stable version of home-assistant.** diff --git a/config/sounds/december-clock/cuckoo-clock-01.wav b/config/sounds/december-clock/cuckoo-clock-01.wav new file mode 100644 index 00000000..6b29ff68 Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-01.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-02.wav b/config/sounds/december-clock/cuckoo-clock-02.wav new file mode 100644 index 00000000..751abfb2 Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-02.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-03.wav b/config/sounds/december-clock/cuckoo-clock-03.wav new file mode 100644 index 00000000..145ed9ba Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-03.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-04.wav b/config/sounds/december-clock/cuckoo-clock-04.wav new file mode 100644 index 00000000..83aa562d Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-04.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-05.wav b/config/sounds/december-clock/cuckoo-clock-05.wav new file mode 100644 index 00000000..26b9c4b0 Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-05.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-06.wav b/config/sounds/december-clock/cuckoo-clock-06.wav new file mode 100644 index 00000000..8657e285 Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-06.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-07.wav b/config/sounds/december-clock/cuckoo-clock-07.wav new file mode 100644 index 00000000..410fd565 Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-07.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-08.wav b/config/sounds/december-clock/cuckoo-clock-08.wav new file mode 100644 index 00000000..026006be Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-08.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-09.wav b/config/sounds/december-clock/cuckoo-clock-09.wav new file mode 100644 index 00000000..d4321a47 Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-09.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-10.wav b/config/sounds/december-clock/cuckoo-clock-10.wav new file mode 100644 index 00000000..5ea539bf Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-10.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-11.wav b/config/sounds/december-clock/cuckoo-clock-11.wav new file mode 100644 index 00000000..c25386e0 Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-11.wav differ diff --git a/config/sounds/december-clock/cuckoo-clock-12.wav b/config/sounds/december-clock/cuckoo-clock-12.wav new file mode 100644 index 00000000..cd470231 Binary files /dev/null and b/config/sounds/december-clock/cuckoo-clock-12.wav differ