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.

This commit is contained in:
Carlo Costanzo
2026-01-19 09:19:25 -05:00
parent f5860beca1
commit ec03ee2267
4 changed files with 44 additions and 18 deletions

View File

@@ -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)

View File

@@ -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'

View File

@@ -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 }}"

View File

@@ -1,14 +1,17 @@
#-------------------------------------------
# @CCOSTAN
######################################################################
# @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, reflection alerts, and actionable notifications.
######################################################################
# -------------------------------------------------------------------
# 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: