Forked from gregoryduckworth/restart_notification.yaml
Last active
May 21, 2021 06:38
-
-
Save OmgImAlexis/d884f6b21df1323233ae0a3a314b74a9 to your computer and use it in GitHub Desktop.
Home Assistant Shutdown Notification Blueprint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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