From 43eafc7a0ceb42ea61dd9a60e9f5eea9251adfe4 Mon Sep 17 00:00:00 2001 From: bbrendon Date: Mon, 6 Feb 2017 13:34:50 -0800 Subject: [PATCH] fix some syntax errors and made the example more complete (#1981) --- source/_cookbook/sonos_say.markdown | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/source/_cookbook/sonos_say.markdown b/source/_cookbook/sonos_say.markdown index fc1d7c9ff2f..6c73f0e1bb6 100644 --- a/source/_cookbook/sonos_say.markdown +++ b/source/_cookbook/sonos_say.markdown @@ -41,10 +41,16 @@ script: We call this now with: ```yaml -service: script.sonos_say -data: - sonos_entity: media_player.kitchen - volume: 0.3 - message: 'Your husband comming home!' - delay: '00:00:05' +automation: + - alias: 'test' + trigger: + - platform: state + entity_id: input_boolean.mytest + action: + - service: script.sonos_say + data: + sonos_entity: media_player.office + volume: 0.5 + message: 'Your husband comming home!' + delay: '00:00:05' ```