Gonna give it another shot. #241

This commit is contained in:
ccostan
2018-09-27 10:16:52 -04:00
parent 5cc50017c1
commit 78a044267d
4 changed files with 22 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ speech_processing:
- service: mqtt.publish
data_template:
topic: 'polly/lastmsg'
payload: "This message is from {{ now().strftime('%-I') }}:{{ now().strftime('%M') }} {{ now().strftime('%p') }}. {{ speech_message | truncate(254)}}"
payload: "This message is from {{ now().strftime('%-I') }}:{{ now().strftime('%M') }} {{ now().strftime('%p') }}. {{ speech_message | truncate(220)}}"
retain: true
- condition: and
@@ -58,6 +58,17 @@ speech_processing:
0.3
{% endif %}
- service: media_player.alexa_tts
data_template:
entity_id: >
{% if states.group.bed.state == 'off' %}
media_player.office
{% else %}
media_player.office
{% endif %}
message: >-
{{ speech_message }}
- service: tts.amazon_polly_say
data_template:
entity_id: >