2017-02-14 00:26:22 +00:00
|
|
|
######################################################################
|
2017-03-06 19:33:11 +00:00
|
|
|
## Garage Status Announcements - Only during normal hours.
|
2017-02-14 00:26:22 +00:00
|
|
|
######################################################################
|
2017-03-13 23:57:22 +00:00
|
|
|
- alias: 'Garage or Door closed'
|
2017-02-23 01:14:00 +00:00
|
|
|
|
2017-02-14 00:26:22 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2017-02-22 22:37:15 +00:00
|
|
|
- cover.large_garage
|
|
|
|
- cover.small_garage
|
2017-03-13 23:57:22 +00:00
|
|
|
- sensor.backdoor
|
2017-02-14 00:26:22 +00:00
|
|
|
from: 'open'
|
|
|
|
to: 'closed'
|
|
|
|
for: '00:02:00'
|
2017-02-23 01:14:00 +00:00
|
|
|
|
2017-02-14 00:26:22 +00:00
|
|
|
action:
|
|
|
|
- service: script.Voice_notify
|
|
|
|
data_template:
|
2017-04-13 17:10:05 +00:00
|
|
|
DoorClosed: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}."
|