mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-22 00:55:18 +00:00
More and More Voice Notifications!
This commit is contained in:
parent
f366eb1df7
commit
92756cd28e
@ -14,7 +14,6 @@
|
|||||||
- device_tracker.joyce_ipad
|
- device_tracker.joyce_ipad
|
||||||
from: 'home'
|
from: 'home'
|
||||||
to: 'not_home'
|
to: 'not_home'
|
||||||
for: '00:03:00'
|
|
||||||
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -25,7 +24,7 @@
|
|||||||
- device_tracker.joyce_ipad
|
- device_tracker.joyce_ipad
|
||||||
from: 'not_home'
|
from: 'not_home'
|
||||||
to: 'home'
|
to: 'home'
|
||||||
for: '00:03:00'
|
for: '00:02:00'
|
||||||
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -33,9 +32,9 @@
|
|||||||
- cover.garadget_small
|
- cover.garadget_small
|
||||||
from: 'closed'
|
from: 'closed'
|
||||||
to: 'open'
|
to: 'open'
|
||||||
for: '00:03:00'
|
for: '00:02:00'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: "{{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ trigger.to_state.state }}"
|
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('_', ' ') }}"
|
@ -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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user