diff --git a/README.md b/README.md index 49f41998..0a9c6760 100755 --- a/README.md +++ b/README.md @@ -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) diff --git a/config/automation/System/CucKoo_Clock.yaml b/config/automation/System/CucKoo_Clock.yaml index effe7bcf..6a249036 100755 --- a/config/automation/System/CucKoo_Clock.yaml +++ b/config/automation/System/CucKoo_Clock.yaml @@ -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 diff --git a/config/automation/System/README.md b/config/automation/System/README.md index 4aecdb52..cd40f672 100755 --- a/config/automation/System/README.md +++ b/config/automation/System/README.md @@ -29,6 +29,7 @@ Meta automations that keep Home Assistant healthy�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 diff --git a/config/sounds/README.md b/config/sounds/README.md index 7f509e74..89d2eba3 100755 --- a/config/sounds/README.md +++ b/config/sounds/README.md @@ -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.** diff --git a/config/www/sounds/README.md b/config/www/sounds/README.md new file mode 100644 index 00000000..a2e982ab --- /dev/null +++ b/config/www/sounds/README.md @@ -0,0 +1,34 @@ +

+ Bear Stone Smart Home +
+ Bear Stone Smart Home Documentation +

+

Be sure to :star: my configuration repo so you can keep up to date on any daily progress!

+ +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.** + + + +**Still have questions on my Config?**
+**Message me on X :** [![Follow CCostan](https://img.shields.io/twitter/follow/CCostan)](https://www.x.com/ccostan) + +

+Buy me a coffeeYou can buy me a coffeeBuy me a coffee +
+
+ +Affiliate Disclosure +

diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-01.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-01.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-01.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-01.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-02.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-02.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-02.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-02.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-03.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-03.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-03.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-03.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-04.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-04.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-04.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-04.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-05.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-05.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-05.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-05.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-06.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-06.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-06.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-06.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-07.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-07.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-07.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-07.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-08.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-08.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-08.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-08.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-09.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-09.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-09.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-09.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-10.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-10.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-10.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-10.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-11.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-11.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-11.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-11.wav diff --git a/config/sounds/cuckoo-clock/cuckoo-clock-12.wav b/config/www/sounds/cuckoo-clock/cuckoo-clock-12.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/cuckoo-clock/cuckoo-clock-12.wav rename to config/www/sounds/cuckoo-clock/cuckoo-clock-12.wav diff --git a/config/sounds/december-clock/cuckoo-clock-01.wav b/config/www/sounds/december-clock/cuckoo-clock-01.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-01.wav rename to config/www/sounds/december-clock/cuckoo-clock-01.wav diff --git a/config/sounds/december-clock/cuckoo-clock-02.wav b/config/www/sounds/december-clock/cuckoo-clock-02.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-02.wav rename to config/www/sounds/december-clock/cuckoo-clock-02.wav diff --git a/config/sounds/december-clock/cuckoo-clock-03.wav b/config/www/sounds/december-clock/cuckoo-clock-03.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-03.wav rename to config/www/sounds/december-clock/cuckoo-clock-03.wav diff --git a/config/sounds/december-clock/cuckoo-clock-04.wav b/config/www/sounds/december-clock/cuckoo-clock-04.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-04.wav rename to config/www/sounds/december-clock/cuckoo-clock-04.wav diff --git a/config/sounds/december-clock/cuckoo-clock-05.wav b/config/www/sounds/december-clock/cuckoo-clock-05.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-05.wav rename to config/www/sounds/december-clock/cuckoo-clock-05.wav diff --git a/config/sounds/december-clock/cuckoo-clock-06.wav b/config/www/sounds/december-clock/cuckoo-clock-06.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-06.wav rename to config/www/sounds/december-clock/cuckoo-clock-06.wav diff --git a/config/sounds/december-clock/cuckoo-clock-07.wav b/config/www/sounds/december-clock/cuckoo-clock-07.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-07.wav rename to config/www/sounds/december-clock/cuckoo-clock-07.wav diff --git a/config/sounds/december-clock/cuckoo-clock-08.wav b/config/www/sounds/december-clock/cuckoo-clock-08.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-08.wav rename to config/www/sounds/december-clock/cuckoo-clock-08.wav diff --git a/config/sounds/december-clock/cuckoo-clock-09.wav b/config/www/sounds/december-clock/cuckoo-clock-09.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-09.wav rename to config/www/sounds/december-clock/cuckoo-clock-09.wav diff --git a/config/sounds/december-clock/cuckoo-clock-10.wav b/config/www/sounds/december-clock/cuckoo-clock-10.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-10.wav rename to config/www/sounds/december-clock/cuckoo-clock-10.wav diff --git a/config/sounds/december-clock/cuckoo-clock-11.wav b/config/www/sounds/december-clock/cuckoo-clock-11.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-11.wav rename to config/www/sounds/december-clock/cuckoo-clock-11.wav diff --git a/config/sounds/december-clock/cuckoo-clock-12.wav b/config/www/sounds/december-clock/cuckoo-clock-12.wav similarity index 100% rename from config/sounds/december-clock/cuckoo-clock-12.wav rename to config/www/sounds/december-clock/cuckoo-clock-12.wav diff --git a/config/www/sounds/july-clock/cuckoo-clock-01.wav b/config/www/sounds/july-clock/cuckoo-clock-01.wav new file mode 100644 index 00000000..cfd31bd8 Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-01.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-02.wav b/config/www/sounds/july-clock/cuckoo-clock-02.wav new file mode 100644 index 00000000..48325004 Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-02.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-03.wav b/config/www/sounds/july-clock/cuckoo-clock-03.wav new file mode 100644 index 00000000..f6c2e04b Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-03.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-04.wav b/config/www/sounds/july-clock/cuckoo-clock-04.wav new file mode 100644 index 00000000..0e28b681 Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-04.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-05.wav b/config/www/sounds/july-clock/cuckoo-clock-05.wav new file mode 100644 index 00000000..1e89d5de Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-05.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-06.wav b/config/www/sounds/july-clock/cuckoo-clock-06.wav new file mode 100644 index 00000000..a72da9e8 Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-06.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-07.wav b/config/www/sounds/july-clock/cuckoo-clock-07.wav new file mode 100644 index 00000000..e49d7f37 Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-07.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-08.wav b/config/www/sounds/july-clock/cuckoo-clock-08.wav new file mode 100644 index 00000000..b4171161 Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-08.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-09.wav b/config/www/sounds/july-clock/cuckoo-clock-09.wav new file mode 100644 index 00000000..8b9ab229 Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-09.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-10.wav b/config/www/sounds/july-clock/cuckoo-clock-10.wav new file mode 100644 index 00000000..26c46447 Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-10.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-11.wav b/config/www/sounds/july-clock/cuckoo-clock-11.wav new file mode 100644 index 00000000..4329e71a Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-11.wav differ diff --git a/config/www/sounds/july-clock/cuckoo-clock-12.wav b/config/www/sounds/july-clock/cuckoo-clock-12.wav new file mode 100644 index 00000000..1c6b9b8b Binary files /dev/null and b/config/www/sounds/july-clock/cuckoo-clock-12.wav differ diff --git a/config/sounds/october-clock/cuckoo-clock-01.wav b/config/www/sounds/october-clock/cuckoo-clock-01.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-01.wav rename to config/www/sounds/october-clock/cuckoo-clock-01.wav diff --git a/config/sounds/october-clock/cuckoo-clock-02.wav b/config/www/sounds/october-clock/cuckoo-clock-02.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-02.wav rename to config/www/sounds/october-clock/cuckoo-clock-02.wav diff --git a/config/sounds/october-clock/cuckoo-clock-03.wav b/config/www/sounds/october-clock/cuckoo-clock-03.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-03.wav rename to config/www/sounds/october-clock/cuckoo-clock-03.wav diff --git a/config/sounds/october-clock/cuckoo-clock-04.wav b/config/www/sounds/october-clock/cuckoo-clock-04.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-04.wav rename to config/www/sounds/october-clock/cuckoo-clock-04.wav diff --git a/config/sounds/october-clock/cuckoo-clock-05.wav b/config/www/sounds/october-clock/cuckoo-clock-05.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-05.wav rename to config/www/sounds/october-clock/cuckoo-clock-05.wav diff --git a/config/sounds/october-clock/cuckoo-clock-06.wav b/config/www/sounds/october-clock/cuckoo-clock-06.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-06.wav rename to config/www/sounds/october-clock/cuckoo-clock-06.wav diff --git a/config/sounds/october-clock/cuckoo-clock-07.wav b/config/www/sounds/october-clock/cuckoo-clock-07.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-07.wav rename to config/www/sounds/october-clock/cuckoo-clock-07.wav diff --git a/config/sounds/october-clock/cuckoo-clock-08.wav b/config/www/sounds/october-clock/cuckoo-clock-08.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-08.wav rename to config/www/sounds/october-clock/cuckoo-clock-08.wav diff --git a/config/sounds/october-clock/cuckoo-clock-09.wav b/config/www/sounds/october-clock/cuckoo-clock-09.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-09.wav rename to config/www/sounds/october-clock/cuckoo-clock-09.wav diff --git a/config/sounds/october-clock/cuckoo-clock-10.wav b/config/www/sounds/october-clock/cuckoo-clock-10.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-10.wav rename to config/www/sounds/october-clock/cuckoo-clock-10.wav diff --git a/config/sounds/october-clock/cuckoo-clock-11.wav b/config/www/sounds/october-clock/cuckoo-clock-11.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-11.wav rename to config/www/sounds/october-clock/cuckoo-clock-11.wav diff --git a/config/sounds/october-clock/cuckoo-clock-12.wav b/config/www/sounds/october-clock/cuckoo-clock-12.wav old mode 100755 new mode 100644 similarity index 100% rename from config/sounds/october-clock/cuckoo-clock-12.wav rename to config/www/sounds/october-clock/cuckoo-clock-12.wav