Adding in Repeat Function for TTS via MQTT.

pull/76/head
CCOSTAN 9 years ago
parent 9f49b5d646
commit ab7e64abd6

@ -0,0 +1,16 @@
######################################################################
## 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('_', ' ') }}."

@ -61,7 +61,7 @@ voice_notify:
- service: mqtt.publish
data_template:
payload: '{{ value1 }}"'
payload: '{{ value1 }}'
topic: 'polly/lastmsg'
retain: true

@ -0,0 +1,7 @@
###################################################
## Various MQTT sensors
###################################################
- platform: mqtt
name: "Latest Arrival"
state_topic: "polly/lastmsg"
Loading…
Cancel
Save

Powered by TurnKey Linux.