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.

master
Carlo Costanzo 2 weeks ago
parent f5860beca1
commit ec03ee2267

@ -1,10 +1,16 @@
#------------------------------------------- ######################################################################
# Garage Garbage Day Reminders # @CCOSTAN - Follow Me on X
# Description: After either garage door opens on garbage day, play staggered reminders in the garage to take cans out. # For more info visit https://www.vcloudinfo.com/click-here
# # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# 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). # 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' - alias: 'Garage Garbage Day Reminders'
id: 3f97f3be-3d0a-4d2d-9100-5b9c0dbfd5c3 id: 3f97f3be-3d0a-4d2d-9100-5b9c0dbfd5c3
mode: restart mode: restart
@ -14,6 +20,7 @@
entity_id: group.garage_doors entity_id: group.garage_doors
from: 'closed' from: 'closed'
to: 'open' to: 'open'
for: "00:00:20"
condition: condition:
# Only run on garbage days (Wed/Sun) # Only run on garbage days (Wed/Sun)

@ -1,15 +1,25 @@
################################### ######################################################################
## Late Night lights Section # @CCOSTAN - Follow Me on X
# @CCOSTAN # For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # 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' - alias: 'Late Night Helper outside'
id: 14115d72-6bea-41c1-8411-1eaf41b4ef2b id: 14115d72-6bea-41c1-8411-1eaf41b4ef2b
trigger: trigger:
- platform: state - platform: state
entity_id: group.garage_doors entity_id: group.garage_doors
to: 'open'
for: "00:00:15"
- platform: state - platform: state
entity_id: binary_sensor.mcu1_gpio5 #front door entity_id: binary_sensor.mcu1_gpio5 #front door
to: 'on'
for: "00:00:02"
- platform: state - platform: state
entity_id: sun.sun entity_id: sun.sun
to: 'below_horizon' to: 'below_horizon'

@ -56,6 +56,7 @@
- platform: state - platform: state
entity_id: group.garage_doors entity_id: group.garage_doors
to: 'closed' to: 'closed'
for: "00:00:30"
condition: condition:
- condition: state - condition: state
entity_id: group.entry_points entity_id: group.entry_points
@ -110,6 +111,7 @@
entity_id: group.garage_doors entity_id: group.garage_doors
from: 'closed' from: 'closed'
to: 'open' to: 'open'
for: "00:00:15"
action: action:
- service: scene.turn_on - service: scene.turn_on
target: target:
@ -121,6 +123,7 @@
- platform: state - platform: state
entity_id: group.garage_doors entity_id: group.garage_doors
to: 'closed' to: 'closed'
for: "00:00:30"
timeout: "01:00:00" timeout: "01:00:00"
- choose: - choose:
- conditions: "{{ was_off }}" - conditions: "{{ was_off }}"

@ -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 # 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 # Token fix: https://www.vcloudinfo.com/2020/05/fixing-garadget-in-home-assistant.html
# Hardware: Garadget unit https://amzn.to/2jQLpVQ # Hardware: Garadget unit https://amzn.to/2jQLpVQ
######################################################################
mqtt: mqtt:
cover: cover:
@ -333,6 +336,7 @@ automation:
- cover.large_garage_door - cover.large_garage_door
- cover.small_garage_door - cover.small_garage_door
to: 'open' to: 'open'
for: "00:01:00"
- platform: state - platform: state
entity_id: group.family entity_id: group.family
to: not_home to: not_home
@ -398,11 +402,13 @@ automation:
- cover.small_garage_door - cover.small_garage_door
from: 'closed' from: 'closed'
to: 'open' to: 'open'
for: "00:00:15"
- platform: state - platform: state
entity_id: binary_sensor.mcu1_gpio12 #interior Garage Doors entity_id: binary_sensor.mcu1_gpio12 #interior Garage Doors
from: 'off' from: 'off'
to: 'on' to: 'on'
for: "00:00:05"
- platform: state - platform: state
entity_id: entity_id:

Loading…
Cancel
Save

Powered by TurnKey Linux.