Skip to content

Instantly share code, notes, and snippets.

@zsarnett
Last active February 14, 2022 04:04
Show Gist options
  • Save zsarnett/c6094f978f6c656d11e172a6b2712a53 to your computer and use it in GitHub Desktop.
Save zsarnett/c6094f978f6c656d11e172a6b2712a53 to your computer and use it in GitHub Desktop.
Garage Door Open Notification
blueprint:
name: Send a Notification when the garage door has been open for X min
description: >
This automation blueprint sends a notification to your phone when the garage door as been open for 10 min
domain: automation
input:
garage_device:
name: Garage Device
description: The garage device to monitor
selector:
device:
entity:
domain: cover
garage_entity:
name: Garage Entity
description: The garage entity to monitor
selector:
entity:
domain: cover
time:
name: Minutes
description: How many minutes to wait with the Garage Open before sending Notification
default: 10
selector:
number:
min: 1
max: 60
unit_of_measurement: minutes
notify_device:
name: Phone to notify
description: Device needs to run the official Home Assistant app to receive notifications
selector:
device:
integration: mobile_app
notification_title:
name: Notification title
description: "Title of the Notification"
default: "Garage Door Open"
notification_message:
name: Notification Message
description: "Message body of the Notification"
default: "Your Garage Door has been open for 10 min"
trigger:
platform: device
device_id: !input garage_device
domain: cover
type: opened
entity_id: !input garage_entity
for:
minutes: 10
variables:
garage_device: !input garage_device
garage_entity: !input garage_entity
garage_name: "{{ states[garage_entity].name }}"
notify_device: !input notify_device
notification_title: !input notification_title
notification_message: !input notification_message
action:
- device_id: !input notify_device
domain: mobile_app
type: notify
title: "{{ notification_title }}"
message: "{{ notification_message }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment