diff --git a/README.md b/README.md index cad7e9f1..5bab43c7 100755 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ A phone tap on the water cooler logs a 40 US fl oz refill for the person who sca - Bedroom camera kiosk tablet: [`kiosk_tablet.yaml`](config/packages/kiosk_tablet.yaml), [config/dashboards/kiosk](config/dashboards/kiosk), [![Watch on YouTube](https://img.shields.io/badge/Watch-YouTube-FF0000?logo=youtube&logoColor=white)](https://youtu.be/ChgEu0IDWzc) - Holiday/front-of-house color scenes: [`monthly_colors.yaml`](config/scene/monthly_colors.yaml), [`monthly_color_scene.yaml`](config/script/monthly_color_scene.yaml); local calendar source: [`holiday.yaml`](config/packages/holiday.yaml) [![Watch local holiday countdowns](https://img.shields.io/badge/Watch-Local%20Holiday%20Countdowns-FF0000?logo=youtube&logoColor=white)](https://youtu.be/QzrfDFA7htc) [![Local holiday countdowns blog](https://img.shields.io/static/v1?label=vCloudInfo&message=Local%20Holiday%20Countdowns&color=21759B&logo=wordpress&logoColor=white)](https://www.vcloudinfo.com/2026/10/home-assistant-local-holiday-countdowns-python-codex.html) Seasonal dashboard accents: [![Watch holiday dashboard theming](https://img.shields.io/badge/Watch-Holiday%20Theming-FF0000?logo=youtube&logoColor=white)](https://youtu.be/qawvBd8_RJ0) [![Holiday dashboard guide](https://img.shields.io/static/v1?label=vCloudInfo&message=Holiday%20Theming&color=21759B&logo=wordpress&logoColor=white)](https://www.vcloudinfo.com/2026/11/home-assistant-holiday-dashboard-theming.html) - PC lock/unlock-driven lighting plus workday wake-up via HASS.Agent + Wake on LAN: [`hass_agent_homepc.yaml`](config/packages/hass_agent_homepc.yaml) -- Seasonal cuckoo clock with Hanukkah, New Year's, Easter, Halloween, Thanksgiving, and Christmas sound packs: [`CucKoo_Clock.yaml`](config/automation/System/CucKoo_Clock.yaml) +- Cuckoo clock with birthday, Hanukkah, New Year's, Easter, Halloween, Thanksgiving, and Christmas sound packs: [`CucKoo_Clock.yaml`](config/automation/System/CucKoo_Clock.yaml) - Garage arrival and entry helpers: [`garadget.yaml`](config/packages/garadget.yaml) - Vacation Mode and house-sitter checks: [`vacation_mode.yaml`](config/packages/vacation_mode.yaml) - HVAC runtime maintenance loop: [`climate.yaml`](config/packages/climate.yaml), [`hvac_sections.yaml`](config/dashboards/infrastructure/partials/hvac_sections.yaml), [![Watch on YouTube](https://img.shields.io/badge/Watch-YouTube-FF0000?logo=youtube&logoColor=white)](https://youtu.be/nScl2JxYSB8) [![Watch Nest schedule](https://img.shields.io/badge/Watch-Nest%20Schedule-FF0000?logo=youtube&logoColor=white)](https://youtu.be/J7OSCINNNdM) [![Nest schedule guide](https://img.shields.io/static/v1?label=vCloudInfo&message=Nest%20Schedule&color=21759B&logo=wordpress&logoColor=white)](https://www.vcloudinfo.com/2026/11/nest-thermostat-schedule-fresh-air-home-assistant.html) diff --git a/config/automation/System/CucKoo_Clock.yaml b/config/automation/System/CucKoo_Clock.yaml index 51500990..ac3b1cf8 100755 --- a/config/automation/System/CucKoo_Clock.yaml +++ b/config/automation/System/CucKoo_Clock.yaml @@ -10,6 +10,7 @@ # Notes: More Info and Video: https://www.vcloudinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html # Notes: Patriotic/fireworks chimes (July 3-4, Memorial Day, Labor Day) are disabled for noise sensitivity. See issue 984. # Notes: Holiday lighting mode selects Hanukkah, New Year's, Easter, and Thanksgiving ahead of the monthly packs. +# Notes: The two household birthday entries take precedence over seasonal packs. # Notes: Clock WAVs are served from /local/sounds so Chromecast fetches them from Home Assistant. # Notes: Guest mode keeps scheduled chimes running outside the normal 09:00-22:00 window. ###################################################################### @@ -62,9 +63,11 @@ 'thanksgiving': 'thanksgiving-clock' } %} {% set monthly_packs = {10: 'october-clock', 12: 'december-clock'} %} - {% set folder = holiday_packs.get(states('sensor.holiday_lighting_mode'), - monthly_packs.get(chime_time.month, 'cuckoo-clock')) %} - {% set hour = '01' if chime_time.minute == 30 else chime_time.strftime('%I') %} + {% set fixed_dates = (state_attr('sensor.holiday', 'MAJOR_US') or {}).get('static', {}) %} + {% set occasion = fixed_dates.get(chime_time.month ~ '/' ~ chime_time.day) %} + {% set folder = 'birthday-clock' if occasion in ['Carlos Birthday', 'Staceys Birthday'] + else holiday_packs.get(states('sensor.holiday_lighting_mode'), monthly_packs.get(chime_time.month, 'cuckoo-clock')) %} + {% set chime = ('half' if folder == 'birthday-clock' else '01') if chime_time.minute == 30 else chime_time.strftime('%I') %} {% set base = "http://192.168.10.10:8123/local/sounds/" %} - {{ base ~ folder ~ '/cuckoo-clock-' ~ hour ~ '.wav' }} + {{ base ~ folder ~ '/cuckoo-clock-' ~ chime ~ '.wav' }} media_content_type: audio/wav diff --git a/config/www/sounds/README.md b/config/www/sounds/README.md index 2f44a23b..63b4212e 100644 --- a/config/www/sounds/README.md +++ b/config/www/sounds/README.md @@ -21,6 +21,8 @@ Home Assistant sound assets are served from `/local/sounds/`. - [New Year's](new-years-clock/) (`new_years_day`) uses one glass clink per hour over a piano arrangement of *Auld Lang Syne*. - [Easter](easter-clock/) (`easter`) uses a two-note bird call for each count, answered by bassoon, plucked strings, and marimba. - [Thanksgiving](thanksgiving-clock/) (`thanksgiving`) pairs turkey calls with dulcimer and quiet dinner-table sounds. The turkey call was recorded by JarredGibb. [Recording and license](https://orangefreesounds.com/turkey-gobble/) +- [Birthday](birthday-clock/) takes priority on the two selected household birthdays in the existing holiday calendar. Count the hour by listening for a handclap and a piano note together, once per second. After the last clap, the piano finishes the phrase under a group birthday greeting. At half past, `cuckoo-clock-half.wav` plays one solo piano note. [Sound credits](birthday-clock/CREDITS.txt) + - To use the pack at home, copy `birthday-clock/` into `config/www/sounds/`. In the [clock automation](../../automation/System/CucKoo_Clock.yaml), set `base` to a Home Assistant URL your speaker can reach, ending in `/local/sounds/`. Replace the two birthday labels with your own entries from `sensor.holiday`, or use your own birthday condition. - Outside these lighting modes, October uses `october-clock`, December uses `december-clock`, and other months use `cuckoo-clock`. The patriotic `july-clock` pack is disabled. **All of my configuration files are tested against the most stable version of home-assistant.** diff --git a/config/www/sounds/birthday-clock/CREDITS.txt b/config/www/sounds/birthday-clock/CREDITS.txt new file mode 100644 index 00000000..43a302d6 --- /dev/null +++ b/config/www/sounds/birthday-clock/CREDITS.txt @@ -0,0 +1,11 @@ +Birthday clock sound pack + +Each hour pairs one handclap with one piano note per count, one second apart. +The piano finishes the phrase under the group greeting. At the half-hour, +play cuckoo-clock-half.wav for one solo piano note. + +Piano (a sampled Steinway B) and handclaps: Versilian Community Sample Library, +Versilian Studios. https://versilian-studios.com/vcsl/ +Happy Birthday Crowd, recorded by theuned: https://freesound.org/people/theuned/sounds/391869/ +Both sound sources are available under CC0 1.0: https://creativecommons.org/publicdomain/zero/1.0/ +The samples were excerpted, arranged and mixed for this clock. diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-01.wav b/config/www/sounds/birthday-clock/cuckoo-clock-01.wav new file mode 100644 index 00000000..1aea0606 Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-01.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-02.wav b/config/www/sounds/birthday-clock/cuckoo-clock-02.wav new file mode 100644 index 00000000..601ae63e Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-02.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-03.wav b/config/www/sounds/birthday-clock/cuckoo-clock-03.wav new file mode 100644 index 00000000..b7b894e0 Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-03.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-04.wav b/config/www/sounds/birthday-clock/cuckoo-clock-04.wav new file mode 100644 index 00000000..be99068b Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-04.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-05.wav b/config/www/sounds/birthday-clock/cuckoo-clock-05.wav new file mode 100644 index 00000000..2606d7f6 Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-05.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-06.wav b/config/www/sounds/birthday-clock/cuckoo-clock-06.wav new file mode 100644 index 00000000..c5359107 Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-06.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-07.wav b/config/www/sounds/birthday-clock/cuckoo-clock-07.wav new file mode 100644 index 00000000..d0c20dca Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-07.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-08.wav b/config/www/sounds/birthday-clock/cuckoo-clock-08.wav new file mode 100644 index 00000000..abfcba6c Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-08.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-09.wav b/config/www/sounds/birthday-clock/cuckoo-clock-09.wav new file mode 100644 index 00000000..07c66c27 Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-09.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-10.wav b/config/www/sounds/birthday-clock/cuckoo-clock-10.wav new file mode 100644 index 00000000..733d1336 Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-10.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-11.wav b/config/www/sounds/birthday-clock/cuckoo-clock-11.wav new file mode 100644 index 00000000..63811c4f Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-11.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-12.wav b/config/www/sounds/birthday-clock/cuckoo-clock-12.wav new file mode 100644 index 00000000..898feb8d Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-12.wav differ diff --git a/config/www/sounds/birthday-clock/cuckoo-clock-half.wav b/config/www/sounds/birthday-clock/cuckoo-clock-half.wav new file mode 100644 index 00000000..b9309e86 Binary files /dev/null and b/config/www/sounds/birthday-clock/cuckoo-clock-half.wav differ