You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
661 B
16 lines
661 B
######################################################################
|
|
## Announce when people come or go.
|
|
## Announce over all Chromecast Audios
|
|
######################################################################
|
|
- alias: 'State Announcements'
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.repeat_message
|
|
state: 'on'
|
|
from: 'off'
|
|
|
|
action:
|
|
- service: script.Voice_notify
|
|
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('_', ' ') }}." |