From 3a08243a5f78c16fd2e152c3831ab328602b579a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Jul 2016 13:08:02 +0200 Subject: [PATCH] Add another notify example --- .../notify_if__new_ha_release.markdown | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 source/_cookbook/notify_if__new_ha_release.markdown diff --git a/source/_cookbook/notify_if__new_ha_release.markdown b/source/_cookbook/notify_if__new_ha_release.markdown new file mode 100644 index 00000000000..1c760a8b3f4 --- /dev/null +++ b/source/_cookbook/notify_if__new_ha_release.markdown @@ -0,0 +1,32 @@ +--- +layout: page +title: "Send notification if new Home Assistant release" +description: "Basic example of how to send a notification if a new Home Assistant release is available" +date: 2016-07-17 10:00 +sidebar: true +comments: false +sharing: true +footer: true +ha_category: Automation Examples +--- + +The following example sends a notification via XMPP if a new Home Assistant release is available: + +```yaml +notify: + - platform: xmpp + name: jabber + sender: sender@jabber.org + password: !secret xmpp_password + recipient: recipient@jabber.org + +automation: + - alias: Update notifications + trigger: + - platform: state + entity_id: updater.updater + action: + service: notify.jabber + data: + message: 'There is a new Home Assistant release available.' +```