From 30f061a61844b4b62ce38e270565323c3e988215 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Fri, 23 Oct 2026 09:19:49 -0400 Subject: [PATCH] Compact garage bin notification text (#2022) --- config/automation/Speech/README.md | 1 + .../automation/Speech/garbage_day_garage.yaml | 3 +- config/custom_templates/garbage_bins.jinja | 62 +++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 config/custom_templates/garbage_bins.jinja diff --git a/config/automation/Speech/README.md b/config/automation/Speech/README.md index 8f6a862a..e5d23a91 100755 --- a/config/automation/Speech/README.md +++ b/config/automation/Speech/README.md @@ -34,6 +34,7 @@ Speech-first automations: contextual announcements, stats briefings, guest mode ### Tips - Pairs with `script/speech_engine.yaml` and `templates/speech/briefing.yaml` for reusable phrasing. +- Garage bin alerts use the short "Garage Bins" title and single-line shared reminder text so the phone can wrap naturally. iOS controls Priority Notifications styling and text size (Issue #2022). - Keep announcements natural and action-first; the LLM prompt should avoid previous-message repetition and include weather when requested, safety-relevant, or still useful before late-day context takes over. - Airly's nearest-monitor CAQI is the primary local reading and stays silent below medium (50); Pirate Weather US AQI is a safety backstop at 101 or higher. Normal readings are never added to speech. [![Watch on YouTube](https://img.shields.io/badge/Watch-YouTube-FF0000?logo=youtube&logoColor=white)](https://youtu.be/Gjk7z34Qe_4) [![vCloudInfo Blog Post](https://img.shields.io/static/v1?label=vCloudInfo&message=Blog%20Post&color=21759B&logo=wordpress&logoColor=white)](https://www.vcloudinfo.com/2026/07/home-assistant-air-quality-airly-pirate-weather.html) - Briefing context includes quiet-by-default Tesla, energy, water, comfort, and vacuum checks so routine announcements stay useful without repeating normal status. diff --git a/config/automation/Speech/garbage_day_garage.yaml b/config/automation/Speech/garbage_day_garage.yaml index bfb35962..3e07fd57 100644 --- a/config/automation/Speech/garbage_day_garage.yaml +++ b/config/automation/Speech/garbage_day_garage.yaml @@ -4,6 +4,7 @@ # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # ------------------------------------------------------------------- # Garage Garbage Day Reminders - actionable, snoozable garage alerts +# Related Issue: 2022 # Notify Carlo and announce at 30s/90s/180s if the garage stays open. # ------------------------------------------------------------------- # Notes: Carlo's push offers 30-minute and 2-hour snooze actions. The @@ -122,7 +123,7 @@ - parallel: - service: script.notify_engine_two_button data: - title: "Garbage Day Reminder" + title: "Garage Bins" value1: "{{ reminder_message }}" who: 'carlo' group: 'Garbage_Reminders' diff --git a/config/custom_templates/garbage_bins.jinja b/config/custom_templates/garbage_bins.jinja new file mode 100644 index 00000000..2efbd0e8 --- /dev/null +++ b/config/custom_templates/garbage_bins.jinja @@ -0,0 +1,62 @@ +{# +###################################################################### +# @CCOSTAN - Follow Me on X +# For more info visit https://www.vcloudinfo.com/click-here +# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig +# ------------------------------------------------------------------- +# Garage Bin Reminder - Shared take-out and bring-in wording +# Related Issue: 2022 +# Related Issue: 2016 +# Video: https://youtu.be/zcCrtwcw-S4 +# Blog: https://www.vcloudinfo.com/2026/10/home-assistant-frigate-garbage-bin-reminders.html +# Sunday needs garbage; Wednesday needs garbage and recycling. +# Return checks start Monday/Thursday mornings; following days continue +# until the next take-out day. Return speech is limited to 08:00-21:00. +# ------------------------------------------------------------------- +# Notes: Unknown camera/classifier states never establish bins at curb +# or a completed return. +# Preserve the existing shared garbage snooze across every speech path. +# Notes: Keep reminder text on one line so phone notifications wrap naturally. +###################################################################### +#} +{% macro garbage_takeout_reminder() -%} + {%- set day = now().strftime('%a') -%} + {%- if day in ['Wed', 'Sun'] + and is_state('timer.garbage_reminder_snooze', 'idle') + and not is_state('binary_sensor.garbage_cans_out', 'on') -%} + {%- set ns = namespace(needed=[]) -%} + {%- if not is_state('binary_sensor.garage_garbage_at_curb', 'on') -%} + {%- set ns.needed = ns.needed + ['garbage pail'] -%} + {%- endif -%} + {%- if day == 'Wed' and not is_state('binary_sensor.garage_recycling_at_curb', 'on') -%} + {%- set ns.needed = ns.needed + ['recycling containers'] -%} + {%- endif -%} + {%- if ns.needed -%} + Today is {{ 'garbage and recycling' if day == 'Wed' else 'garbage' }} day. Please put the {{ ns.needed | join(' and ') }} at the curb. + {%- endif -%} + {%- endif -%} +{%- endmacro %} + +{% macro garbage_reminder() -%} + {%- set day = now().strftime('%a') -%} + {%- if day in ['Sun', 'Wed'] -%} + {{- garbage_takeout_reminder() -}} + {%- elif 8 <= now().hour < 21 -%} + {{- garbage_return_reminder(include_recycling=day in ['Thu', 'Fri', 'Sat']) -}} + {%- endif -%} +{%- endmacro %} + +{% macro garbage_return_reminder(include_recycling=true) -%} + {%- if is_state('timer.garbage_reminder_snooze', 'idle') -%} + {%- set ns = namespace(needed=[]) -%} + {%- if not is_state('binary_sensor.garage_garbage_at_curb', 'off') -%} + {%- set ns.needed = ns.needed + ['garbage pail'] -%} + {%- endif -%} + {%- if include_recycling and not is_state('binary_sensor.garage_recycling_at_curb', 'off') -%} + {%- set ns.needed = ns.needed + ['recycling containers'] -%} + {%- endif -%} + {%- if ns.needed -%} + Please return the {{ ns.needed | join(' and ') }} to {{ 'its usual spot' if ns.needed == ['garbage pail'] else 'their usual spots' }} in the garage. + {%- endif -%} + {%- endif -%} +{%- endmacro %}