feat(cuckoo): serve seasonal chimes locally

master
Carlo Costanzo 3 weeks ago
parent da77ca0bb0
commit 9bda0b1a7f

@ -54,7 +54,7 @@ This walkthrough shows the Home Assistant evidence trail from a failed HVAC blow
- 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 plus workday wake-up via HASS.Agent + Wake on LAN: [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)
- Seasonal cuckoo clock with patriotic, October, and Christmas sound packs: [config/automation/System/CucKoo_Clock.yaml](config/automation/System/CucKoo_Clock.yaml)
- Garage arrival and entry helpers: [config/packages/garadget.yaml](config/packages/garadget.yaml)
- Vacation Mode and house-sitter checks: [config/packages/vacation_mode.yaml](config/packages/vacation_mode.yaml)
- HVAC runtime maintenance loop: [config/packages/climate.yaml](config/packages/climate.yaml), [config/dashboards/overview/partials/water_sections.yaml](config/dashboards/overview/partials/water_sections.yaml), [video walkthrough](https://youtu.be/nScl2JxYSB8)

@ -4,9 +4,12 @@
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Plays the number of cuckoos per hour and 1 on the half hour - Home Assistant automation behavior.
# Related Issue: 984
# Defines the Plays the number of cuckoos per hour and 1 on the half hour triggers, conditions, and actions.
# -------------------------------------------------------------------
# Notes: More Info and Video: https://www.vcloudinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html
# Notes: Patriotic cuckoos run July 3-4, last Monday in May, and first Monday in September.
# Notes: Clock WAVs are served from /local/sounds so Chromecast fetches them from Home Assistant.
######################################################################
- alias: Cuckoo Clock
id: 33dcd8e2-e87c-4d18-82bc-c7f9b53a1624
@ -43,8 +46,14 @@
entity_id: media_player.livingroomCC
media_content_id: >
{% set month = now().strftime("%B") %}
{% set base = "https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/" %}
{% if month == 'October' %}
{% set is_july_celebration = now().month == 7 and now().day in [3, 4] %}
{% set is_memorial_day = now().month == 5 and now().weekday() == 0 and now().day >= 25 %}
{% set is_labor_day = now().month == 9 and now().weekday() == 0 and now().day <= 7 %}
{% set is_patriotic_day = is_july_celebration or is_memorial_day or is_labor_day %}
{% set base = "http://192.168.10.10:8123/local/sounds/" %}
{% if is_patriotic_day %}
{% set folder = 'july-clock' %}
{% elif month == 'October' %}
{% set folder = 'october-clock' %}
{% elif month == 'December' %}
{% set folder = 'december-clock' %}
@ -53,4 +62,4 @@
{% 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
media_content_type: audio/wav

@ -29,6 +29,7 @@ Meta automations that keep Home Assistant healthy<68>watchdogs, diagnostics, and
| [detect_and_adjust_lights.yaml](detect_and_adjust_lights.yaml) | Auto-untangles stuck lights and re-syncs states. |
| [watchdog_light.yaml](watchdog_light.yaml) | Detects flapping entities and nudges them back. |
| [trigger_dump.yaml](trigger_dump.yaml) | Debug helper that logs trigger payloads for troubleshooting. |
| [CucKoo_Clock.yaml](CucKoo_Clock.yaml) | Hourly and half-hour chimes with seasonal sound packs. |
| [door_chime.yaml](door_chime.yaml) | Friendly tones for door open/close events. |
### Tips

@ -27,7 +27,8 @@ 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`.
- Non-clock alert tones and speech snippets live here.
- Cuckoo clock packs live in `config/www/sounds/` as the single source of truth for Home Assistant-local Chromecast playback.
**All of my configuration files are tested against the most stable version of home-assistant.**

@ -0,0 +1,34 @@
<h1 align="center">
<a name="logo" href="https://www.vCloudInfo.com/tag/iot"><img src="https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/x_profile.png" alt="Bear Stone Smart Home" width="200"></a>
<br>
Bear Stone Smart Home Documentation
</h1>
<h4 align="center">Be sure to :star: my configuration repo so you can keep up to date on any daily progress!</h4>
Public Home Assistant static audio served from `/local/sounds/`.
### Quick navigation
- You are here: `config/www/sounds/` (public local audio)
- [Repo overview](../../../README.md) | [Config index](../../README.md) | [Sound sources](../../sounds)
![Home Assistant header](https://i.imgur.com/vjDH1LJ.png)
### Tips
- Keep only files that need HA-local HTTP playback here.
- Cuckoo clock packs live here as the single source of truth so Chromecast fetches them from Home Assistant instead of GitHub raw URLs.
- Seasonal cuckoo clock uses `july-clock` (patriotic holidays), `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.**
<a name="bottom" href="https://github.com/CCOSTAN/Home-AssistantConfig#logo"><img align="right" border="0" src="https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/www/custom_ui/floorplan/images/branding/up_arrow.png" width="25" ></a>
**Still have questions on my Config?** <br>
**Message me on X :** [![Follow CCostan](https://img.shields.io/twitter/follow/CCostan)](https://www.x.com/ccostan)
<p align="center">
<a target="_blank" href="https://www.buymeacoffee.com/vCloudInfo"><img src="https://www.buymeacoffee.com/assets/img/BMC-btn-logo.svg" alt="Buy me a coffee"><span style="margin-left:5px">You can buy me a coffee</span></a><a target="_blank" href="https://www.buymeacoffee.com/vCloudInfo"><img src="https://www.buymeacoffee.com/assets/img/BMC-btn-logo.svg" alt="Buy me a coffee"></a>
<br>
<a href="https://eepurl.com/dmXFYz"><img align="center" border="0" src="https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/www/custom_ui/floorplan/images/branding/email_link.png" height="50" ></a><br>
<a href="https://www.vCloudInfo.com/p/affiliate-disclosure.html">
Affiliate Disclosure
</a></p>
Loading…
Cancel
Save

Powered by TurnKey Linux.