ok..fixing Polly Speech routines..

This commit is contained in:
ccostan
2022-06-23 13:00:15 -04:00
parent 02f2d30228
commit dd93c57914
4 changed files with 7 additions and 30 deletions

View File

@@ -14,7 +14,7 @@ speech_processing:
- service: mqtt.publish
data:
topic: 'polly/lastmsg'
payload: "This message is from {{ now().strftime('%-I') }}:{{ now().strftime('%M') }} {{ now().strftime('%p') }}. {{ speech_message | truncate(220)}}"
payload: "This message is from {{ now().strftime('%-I') }}:{{ now().strftime('%M') }} {{ now().strftime('%p') }}. {{ speech_message | striptags | truncate(220)}}"
retain: true
- condition: and
@@ -49,8 +49,9 @@ speech_processing:
- service: media_player.volume_set
data:
entity_id: >
{{ media_player }}
# entity_id: >
# {{ media_player }}
entity_id: media_player.livingroomCC
volume_level: >-
{% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 6 %}
0.3
@@ -60,18 +61,6 @@ speech_processing:
0.3
{% endif %}
# - service: notify.alexa_media
# data:
# data:
# type: tts
# target: >
# {% if states.group.bed.state == 'off' %}
# media_player.office
# {% else %}
# media_player.master_bathroom
# {% endif %}
# message: >-
# {{ speech_message }}
- service: tts.amazon_polly_say
data: