Add seasonal cuckoo clock sound packs

master
Carlo Costanzo 2 days ago
parent e66e2e0015
commit bda2458b8b

@ -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 patriotic, October, and Christmas sound packs: [`CucKoo_Clock.yaml`](config/automation/System/CucKoo_Clock.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)
- 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)

@ -8,8 +8,8 @@
# 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: Patriotic/fireworks cuckoos are disabled for now; revisit issue 984 before re-enabling.
# 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: 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.
######################################################################
@ -53,30 +53,18 @@
- service: media_player.play_media
data:
entity_id: media_player.livingroomCC
media_content_id: >
{% set month = now().strftime("%B") %}
{#
Patriotic/fireworks cuckoos disabled 2026-07-04 due to noise sensitivity at home.
Re-enable by restoring this date branch and the july-clock folder selection below.
{% 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 is_patriotic_day = false %}
media_content_id: >-
{% set chime_time = as_local(trigger.now) if trigger is defined and trigger.now is defined else now() %}
{% set holiday_packs = {
'hanukkah': 'hanukkah-clock',
'new_years_day': 'new-years-clock',
'easter': 'easter-clock',
'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 base = "http://192.168.10.10:8123/local/sounds/" %}
{#
{% if is_patriotic_day %}
{% set folder = 'july-clock' %}
{% elif month == 'October' %}
#}
{% if month == 'October' %}
{% set folder = 'october-clock' %}
{% elif month == 'December' %}
{% set folder = 'december-clock' %}
{% else %}
{% 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 }}
{{ base ~ folder ~ '/cuckoo-clock-' ~ hour ~ '.wav' }}
media_content_type: audio/wav

@ -16,7 +16,12 @@ Home Assistant sound assets are served from `/local/sounds/`.
### Tips
- Door chimes, dog barks, and speech effects use the same local audio directory as the clock packs.
- The `gf_clock/`, `custom/`, and `speechcons/` folders group other sound sets.
- Seasonal cuckoo clock uses `july-clock` (patriotic holidays), `october-clock` (Halloween), and `december-clock` (Christmas) variants, falling back to `cuckoo-clock`.
- The cuckoo clock follows `sensor.holiday_lighting_mode` for the four sets below. Each hourly recording counts from one to twelve. The half-hour uses the one o'clock recording.
- [Hanukkah](hanukkah-clock/) (`hanukkah`) counts with wooden dreidel knocks, answered by klezmer clarinet and hammered dulcimer.
- [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/)
- 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.**

Loading…
Cancel
Save

Powered by TurnKey Linux.