Commit 8f8bdbe1 authored by Rob Connolly's avatar Rob Connolly

Implement startup and shutdown notifications.

parent e5387e2d
......@@ -30,12 +30,12 @@
host: !secret kodi_bedroom_host
username: !secret kodi_username
password: !secret kodi_password
- name: gotify_1
platform: rest
resource: !secret gotify_resource
method: POST_JSON
headers:
headers:
X-Gotify-Key: !secret gotify_key
message_param_name: message
title_param_name: title
......
......@@ -127,3 +127,22 @@ automation:
title: "Room Sensors Reset"
message: "Device '{{ trigger.to_state.name }}' was offline for 10 minutes, room sensors reset."
- alias: Notify on startup
trigger:
- platform: homeassistant
event: start
action:
- service: notify.notify
data:
title: "Home Assistant Started Up"
message: "Home Assistant has been started up!"
- alias: Notify on shutdown
trigger:
- platform: homeassistant
event: shutdown
action:
- service: notify.notify
data:
title: "Home Assistant Shutdown"
message: "Home Assistant is shutting down!"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment