The Garage Door Has Been Open for 17 Minutes, Geoffrey
Stop leaving the whole house open to the street like we run a museum.
The problem
Someone — not naming names — leaves the garage door open for hours. After dark. With the bikes right there.
What it does
Waits until the garage has been open for 15 minutes. Sends a nag. Waits 5 more. If it's still open, closes it itself. After 9pm it skips the nagging and just shuts it.
You'll need
- Garage door cover entity
- A phone with the HA app for notifications
The payoff
One closed garage = not getting your tools nicked. Priceless.
The YAML
alias: "Angry Dad — Garage Nag & Auto-Close"
description: Nags then closes a garage left open too long. After 9pm, just closes it.
mode: single
triggers:
- trigger: state
entity_id: cover.garage_door
to: "open"
for:
minutes: 15
id: open_too_long
conditions: []
actions:
- choose:
- conditions:
- condition: time
after: "21:00:00"
before: "05:00:00"
sequence:
- action: cover.close_cover
target:
entity_id: cover.garage_door
- action: notify.mobile_app_dads_phone
data:
title: "Garage shut (it's late)"
message: "Closed the garage. It was open after 9pm. You're welcome."
default:
- action: notify.mobile_app_dads_phone
data:
title: "Garage still open"
message: "The garage has been open 15 minutes. Closing it in 5 unless someone deals with it."
- wait_for_trigger:
- trigger: state
entity_id: cover.garage_door
to: "closed"
timeout:
minutes: 5
continue_on_timeout: true
- condition: state
entity_id: cover.garage_door
state: "open"
- action: cover.close_cover
target:
entity_id: cover.garage_door
- action: notify.mobile_app_dads_phone
data:
message: "Closed it myself. Again."Drop this into an automation (or a package under config/packages/) and swap the entity IDs for your own.
Want the next one automatically?
One automation like this in your inbox every week.
Don't fancy the DIY?
Get Dycom Automation to do it properly.
Reading YAML isn't everyone's idea of a good night in. Dycom Automation — the grown-up, properly-insured version of all this — will design, install and tune your whole smart home for you. Same ruthless automations, none of the swearing.
Get it done by Dycom Automation →