From ec03ee22674d8f337566b2c9c51c81d1d42aab97 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Mon, 19 Jan 2026 09:19:25 -0500 Subject: [PATCH] Refactor automation configurations for improved reliability and documentation. Added debounce timing for garage door triggers in multiple automations to reduce false activations. Updated comments and descriptions for clarity and consistency across files. --- .../automation/Speech/garbage_day_garage.yaml | 21 ++++++++++++------- .../automation/late_night_outside_helper.yaml | 18 ++++++++++++---- .../living_room_color_defaults.yaml | 3 +++ config/packages/garadget.yaml | 20 +++++++++++------- 4 files changed, 44 insertions(+), 18 deletions(-) diff --git a/config/automation/Speech/garbage_day_garage.yaml b/config/automation/Speech/garbage_day_garage.yaml index 7fd57229..a8a8b868 100644 --- a/config/automation/Speech/garbage_day_garage.yaml +++ b/config/automation/Speech/garbage_day_garage.yaml @@ -1,10 +1,16 @@ -#------------------------------------------- -# Garage Garbage Day Reminders -# Description: After either garage door opens on garbage day, play staggered reminders in the garage to take cans out. -# -# Schedule: 30s, 90s, and 180s after the door opens (skips if it isn't garbage day or the doors close). -# Output: Uses Alexa announce in the garage so it plays locally (speech_engine is limited to Chromecasts inside). -#------------------------------------------- +###################################################################### +# @CCOSTAN - Follow Me on X +# For more info visit https://www.vcloudinfo.com/click-here +# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig +# ------------------------------------------------------------------- +# Garage Garbage Day Reminders - staggered reminders after door opens +# On garbage days, announce at 30s/90s/180s if the garage stays open. +# ------------------------------------------------------------------- +# Notes: Uses Alexa announce in the garage for local playback; also sends +# one inside reminder via `script.speech_engine` (Chromecasts). +# Notes: Debounced garage door open trigger to avoid restarts if the +# garage door state flaps (noisy sensors/reflection). +###################################################################### - alias: 'Garage Garbage Day Reminders' id: 3f97f3be-3d0a-4d2d-9100-5b9c0dbfd5c3 mode: restart @@ -14,6 +20,7 @@ entity_id: group.garage_doors from: 'closed' to: 'open' + for: "00:00:20" condition: # Only run on garbage days (Wed/Sun) diff --git a/config/automation/late_night_outside_helper.yaml b/config/automation/late_night_outside_helper.yaml index 6a8e42d9..e8570fd8 100755 --- a/config/automation/late_night_outside_helper.yaml +++ b/config/automation/late_night_outside_helper.yaml @@ -1,15 +1,25 @@ -################################### -## Late Night lights Section -# @CCOSTAN +###################################################################### +# @CCOSTAN - Follow Me on X +# For more info visit https://www.vcloudinfo.com/click-here # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig -################################### +# ------------------------------------------------------------------- +# Late Night Helper Outside - brighten exterior and restore after secure +# Turns on front scene/outlets after dark when doors open or at sunset. +# ------------------------------------------------------------------- +# Notes: Debounced garage/front door triggers to avoid noisy state flaps +# from repeatedly re-running the outside lighting routine. +###################################################################### - alias: 'Late Night Helper outside' id: 14115d72-6bea-41c1-8411-1eaf41b4ef2b trigger: - platform: state entity_id: group.garage_doors + to: 'open' + for: "00:00:15" - platform: state entity_id: binary_sensor.mcu1_gpio5 #front door + to: 'on' + for: "00:00:02" - platform: state entity_id: sun.sun to: 'below_horizon' diff --git a/config/automation/living_room_color_defaults.yaml b/config/automation/living_room_color_defaults.yaml index d97b56d4..7c0aad4b 100644 --- a/config/automation/living_room_color_defaults.yaml +++ b/config/automation/living_room_color_defaults.yaml @@ -56,6 +56,7 @@ - platform: state entity_id: group.garage_doors to: 'closed' + for: "00:00:30" condition: - condition: state entity_id: group.entry_points @@ -110,6 +111,7 @@ entity_id: group.garage_doors from: 'closed' to: 'open' + for: "00:00:15" action: - service: scene.turn_on target: @@ -121,6 +123,7 @@ - platform: state entity_id: group.garage_doors to: 'closed' + for: "00:00:30" timeout: "01:00:00" - choose: - conditions: "{{ was_off }}" diff --git a/config/packages/garadget.yaml b/config/packages/garadget.yaml index 9488b45a..0aeb8f24 100755 --- a/config/packages/garadget.yaml +++ b/config/packages/garadget.yaml @@ -1,14 +1,17 @@ -#------------------------------------------- -# @CCOSTAN -# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig -# Garadget Garage Doors - MQTT cover control and monitoring. -#------------------------------------------- -###################################################################### -## Open/close commands, reflection alerts, and actionable notifications. ###################################################################### +# @CCOSTAN - Follow Me on X +# For more info visit https://www.vcloudinfo.com/click-here +# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig +# ------------------------------------------------------------------- +# Garadget Garage Doors - MQTT cover control and monitoring +# Open/close commands, status polling, and notifications. +# ------------------------------------------------------------------- +# Notes: Debounces garage door open/close triggers to reduce noisy +# state flapping from spamming lights, speech, and Alexa displays. # Setup: https://www.vcloudinfo.com/2019/03/how-to-add-garadget-to-home-assistant.html # Token fix: https://www.vcloudinfo.com/2020/05/fixing-garadget-in-home-assistant.html # Hardware: Garadget unit https://amzn.to/2jQLpVQ +###################################################################### mqtt: cover: @@ -333,6 +336,7 @@ automation: - cover.large_garage_door - cover.small_garage_door to: 'open' + for: "00:01:00" - platform: state entity_id: group.family to: not_home @@ -398,11 +402,13 @@ automation: - cover.small_garage_door from: 'closed' to: 'open' + for: "00:00:15" - platform: state entity_id: binary_sensor.mcu1_gpio12 #interior Garage Doors from: 'off' to: 'on' + for: "00:00:05" - platform: state entity_id: