Thanks, but that link doesn't work?
I've tried a bunch of searches ("Home Assistant Automations", "yaml", etc.) but haven't found that post. Sorry to be a pain...
From
@borski
I’ll kick it off - part of the reason I don’t care about anyone’s homelink woes anymore is because I no longer have to wait for Lucid to give me geolocated garage opening and closing.
I installed an
Infinity Shield, after seeing people like it on this forum. It’s a completely offline tool that just replaces your single beam sensor with a multi-beam array, meaning any obstruction breaks the beam, not just the single line at the bottom. This is optional but made me more comfortable shutting the door automatically.
I used to use MyQ to control the door, but after they turned off API access because they’re proper asshats, I installed
ratgdo for $45 in about five minutes instead. It’s infinitely better. Orders of magnitude better, seriously.
Because it’s local and there’s no cloud service, I not only get access to control the door in what feels like actual real-time with no wait, but I also get to see the obstruction and motion sensor status, in what seems like real time.
As a result, here are my automations (all of which I set up in the UI, without touching a single line of code). If you’ve got HA set up, I am happy to help build the automation for you, if the UI is confusing.
To automatically close the garage door six minutes after I leave (or whenever it’s left open for any reason):
YAML:
alias: Auto close garage door
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.ratgdov2_1b599b_1b599b_obstruction
from: null
for:
hours: 0
minutes: 6
seconds: 0
to: "off"
- platform: state
entity_id:
- binary_sensor.ratgdov2_1b599b_1b599b_motion
from: null
to: "off"
for:
hours: 0
minutes: 6
seconds: 0
- platform: state
entity_id:
- cover.ratgdov2_1b599b_1b599b_door
from: null
to: open
for:
hours: 0
minutes: 6
seconds: 0
condition:
- condition: and
conditions:
- condition: state
entity_id: cover.ratgdov2_1b599b_1b599b_door
state: open
for:
hours: 0
minutes: 6
seconds: 0
- condition: state
entity_id: binary_sensor.ratgdov2_1b599b_1b599b_motion
state: "off"
for:
hours: 0
minutes: 6
seconds: 0
- condition: state
entity_id: binary_sensor.ratgdov2_1b599b_1b599b_obstruction
state: "off"
for:
hours: 0
minutes: 6
seconds: 0
action:
- device_id: 5bd3f28166bb4dffa429afdf09830d32
domain: cover
entity_id: d73cba0eb4d59525ea7a76e1e1dabfea
type: close
mode: single
And to open the garage as I get home (which works literally flawlessly, 100% of the time being open by the time I drive up):
YAML:
alias: Auto open garage door (Borski)
description: ""
trigger:
- platform: zone
entity_id: device_tracker.lulu
zone: zone.home
event: enter
condition:
- condition: state
entity_id: cover.ratgdov2_1b599b_1b599b_door
state: closed
action:
- service: cover.open_cover
metadata: {}
data: {}
target:
entity_id: cover.ratgdov2_1b599b_1b599b_door
mode: single