From 92756cd28ec451bff324f618498302378cd6cecd Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sat, 4 Feb 2017 22:52:11 +0000 Subject: [PATCH] More and More Voice Notifications! --- automation/announcements.yaml | 9 ++++----- automation/watchdog.yaml | 9 ++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/automation/announcements.yaml b/automation/announcements.yaml index 378dfd35..4e0a7d84 100755 --- a/automation/announcements.yaml +++ b/automation/announcements.yaml @@ -14,7 +14,6 @@ - device_tracker.joyce_ipad from: 'home' to: 'not_home' - for: '00:03:00' - platform: state entity_id: @@ -25,7 +24,7 @@ - device_tracker.joyce_ipad from: 'not_home' to: 'home' - for: '00:03:00' + for: '00:02:00' - platform: state entity_id: @@ -33,9 +32,9 @@ - cover.garadget_small from: 'closed' to: 'open' - for: '00:03:00' + for: '00:02:00' action: - service: script.Voice_notify - data_template: - value1: "{{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ trigger.to_state.state }}" \ No newline at end of file + data_template: + value1: "{{ trigger.entity_id.split('.')[1]|replace('_', ' ')|replace('garadget large', 'The large garage ')|replace('garadget small', 'The small garage ') }} is {{ (trigger.to_state.state)|replace('_', ' ') }}" \ No newline at end of file diff --git a/automation/watchdog.yaml b/automation/watchdog.yaml index ccc0f500..3eb669da 100755 --- a/automation/watchdog.yaml +++ b/automation/watchdog.yaml @@ -67,4 +67,11 @@ ############################################################################## - +- alias: "New device connected" + trigger: + - platform: event + event_type: device_tracker_new_device + action: + - service: script.Voice_notify + data_template: + value1: "There has been a new device detected on the network. Be sure to appropriately catagorie it within Circle."