Skip to content

Instantly share code, notes, and snippets.

@nikosthanos
Last active January 16, 2021 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nikosthanos/0af8b2b484694ede4250ef5817bb4da4 to your computer and use it in GitHub Desktop.
Save nikosthanos/0af8b2b484694ede4250ef5817bb4da4 to your computer and use it in GitHub Desktop.
Home Assistant Restart Notification app & Telegram
blueprint:
name: HA Restart Notify app & telegram
description: Notify mobile HA user & telegram that Home Assistant has successfully restarted
domain: automation
source_url: https://gist.github.com/nikosthanos/0af8b2b484694ede4250ef5817bb4da4
input:
notification_title:
name: Notification title (Optional)
description: 'Default: "Home Assistant"'
default: Home Assistant
notification_message:
name: Notification message (Optional)
description: 'Default: "Home Assistant has succesfully started!"'
default: Home Assistant has succesfully restarted!
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: start
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 }}'
- service: telegram_bot.send_message
data:
message: !input 'notification_message'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment