From 00b16e3cf5a8d8cb4a9f2e2a9bcbf7ec05c02423 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Tue, 7 Feb 2017 04:10:22 +0000 Subject: [PATCH] Adding more Voice Notifications to the Setup. --- automation/dark_rainy_day.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/automation/dark_rainy_day.yaml b/automation/dark_rainy_day.yaml index b7200b47..12b73e4c 100755 --- a/automation/dark_rainy_day.yaml +++ b/automation/dark_rainy_day.yaml @@ -35,11 +35,11 @@ - service: light.turn_on entity_id: - light.couch_1 - data: - transition: 1200 - - service: switch.turn_on - entity_id: - - switch.living_room_outlet + - light.sink + - service: script.Voice_notify + data_template: + value1: "It is getting a little dark because of the {{trigger.entity_id.split('_')[2]|replace('precip','rain') }} {{trigger.entity_id.split('_')[3]|replace('intensity',' ')}} + outside. I will turn on some extra lights in the living room." ###################################################################### @@ -57,8 +57,9 @@ - service: light.turn_off entity_id: - light.couch_1 + - light.sink data: transition: 1200 - - service: switch.turn_off - entity_id: - - switch.living_room_outlet \ No newline at end of file + - service: script.Voice_notify + data_template: + value1: "Sun is back out. Let's turn down these lights now." \ No newline at end of file