From 412bdd570ebbdef6015511dcd1ae89a4bcd2afe0 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Fri, 19 Feb 2016 13:46:49 -0500 Subject: [PATCH 1/2] Updated google voice doc with automation notification example --- source/_components/notify.google_voice.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/_components/notify.google_voice.markdown b/source/_components/notify.google_voice.markdown index 61044ffc40a..4d5e19f304f 100644 --- a/source/_components/notify.google_voice.markdown +++ b/source/_components/notify.google_voice.markdown @@ -34,3 +34,18 @@ Configuration variables: ### Usage Google Voice is a notify platform and thus can be controlled by calling the notify service [as described here](/components/notify/). It will send a notification to all devices listed in the notification **target**. + +```yaml +# Example automation notification entry + - alias: Send a notification + trigger: + platform: event + event_type: 'some event' + action: + service: notify.googlevoice + data: + message: 'Google Voice SMS test' + target: + - 5555555555 + - 5555555556 +``` From 89b3c382c8d64cec290b8b552583d1c52438a9e3 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Fri, 19 Feb 2016 16:23:00 -0500 Subject: [PATCH 2/2] Fixed automation --- source/_components/notify.google_voice.markdown | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/_components/notify.google_voice.markdown b/source/_components/notify.google_voice.markdown index 4d5e19f304f..83676fd3923 100644 --- a/source/_components/notify.google_voice.markdown +++ b/source/_components/notify.google_voice.markdown @@ -37,14 +37,15 @@ Google Voice is a notify platform and thus can be controlled by calling the noti ```yaml # Example automation notification entry - - alias: Send a notification +automation: + - alias: The sun has set trigger: - platform: event - event_type: 'some event' + platform: sun + event: sunset action: service: notify.googlevoice data: - message: 'Google Voice SMS test' + message: 'The sun has set' target: - 5555555555 - 5555555556