From 7cab3d430f19428f0913f7c4602323d4b0093b06 Mon Sep 17 00:00:00 2001 From: Phil Hawthorne Date: Tue, 4 Oct 2016 13:19:02 +1100 Subject: [PATCH 1/2] Add Pushbullet and Home Assistant version to update notification Adds an example configuration for someone who wants to be alerted when a new Home Assistant is released, and they would like the notification to include the new Home Assistant version in the message. --- .../notify_if__new_ha_release.markdown | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/_cookbook/notify_if__new_ha_release.markdown b/source/_cookbook/notify_if__new_ha_release.markdown index 1c760a8b3f48..af9391c47e36 100644 --- a/source/_cookbook/notify_if__new_ha_release.markdown +++ b/source/_cookbook/notify_if__new_ha_release.markdown @@ -30,3 +30,24 @@ automation: data: message: 'There is a new Home Assistant release available.' ``` + +You can use [templates](/topics/templating/) to include the release number of Home Assistant if you prefer. The following example sends a notification via [Pushbullet](/components/notify.pushbullet/) with the Home Assistant version in the message. + +```yaml +notify: + platform: pushbullet + api_key: 'YOUR_KEY_HERE' + name: pushbullet + +automation: + - alias: Update notifications + trigger: + - platform: state + entity_id: updater.updater + action: + service: notify.pushbullet + data: + title: 'New Home Assistant Release' + target: 'YOUR_TARGET_HERE' #See Pushbullet component for usage + message: "Home Assistant {{ states.updater.updater.state }} is now available." +``` From fcb4c1d8f27a07f6793fd639c354402be8ac6704 Mon Sep 17 00:00:00 2001 From: Phil Hawthorne Date: Wed, 5 Oct 2016 10:24:36 +1100 Subject: [PATCH 2/2] Add extra line after code example --- source/_cookbook/notify_if__new_ha_release.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_cookbook/notify_if__new_ha_release.markdown b/source/_cookbook/notify_if__new_ha_release.markdown index af9391c47e36..62e92ac57af3 100644 --- a/source/_cookbook/notify_if__new_ha_release.markdown +++ b/source/_cookbook/notify_if__new_ha_release.markdown @@ -51,3 +51,4 @@ automation: target: 'YOUR_TARGET_HERE' #See Pushbullet component for usage message: "Home Assistant {{ states.updater.updater.state }} is now available." ``` +