Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OmgImAlexis/d884f6b21df1323233ae0a3a314b74a9 to your computer and use it in GitHub Desktop.
Save OmgImAlexis/d884f6b21df1323233ae0a3a314b74a9 to your computer and use it in GitHub Desktop.
Home Assistant Shutdown Notification Blueprint
blueprint:
name: Home Assistant Shutdown Notification
description: Notify a user that Home Assistant starts shutting down
domain: automation
input:
notification_title:
name: Notification title (Optional)
description: 'Default: "Home Assistant"'
default: Home Assistant
notification_message:
name: Notification message (Optional)
description: 'Default: "Home Assistant is shutting down!"'
default: Home Assistant is shutting down!
notify_device:
name: Device to notify
description: Device needs to run the official Home Assistant app to receive
notifications
selector:
device:
integration: mobile_app
trigger:
platform: homeassistant
event: stop
variables:
notification_title: !input 'notification_title'
notification_message: !input 'notification_message'
notify_device: !input 'notify_device'
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