Couldn't quite get this intergrated into my speech engine so had to roll back unfortunately. This is going to be amazing though once it's bullet-proof.

This commit is contained in:
ccostan 2018-09-24 17:16:10 -04:00
parent 89d5bb29bc
commit 5cc50017c1
5 changed files with 18 additions and 18 deletions

View File

@ -233,14 +233,14 @@ climate:
# name: Living Room TV
# scan_interval: 180
# tts:
# - platform: amazon_polly
# aws_access_key_id: !secret aws_access_key_ID
# aws_secret_access_key: !secret aws_secret_access_key
# region_name: 'us-east-1'
# text_type: ssml
# cache: True
# cache_dir: /data/tts
tts:
- platform: amazon_polly
aws_access_key_id: !secret aws_access_key_ID
aws_secret_access_key: !secret aws_secret_access_key
region_name: 'us-east-1'
text_type: ssml
cache: True
# cache_dir: /data/tts
wink:
# email: !secret wink_username

View File

@ -11,6 +11,7 @@ logs:
aiohttp.access: critical
aiohttp.server: critical
custom_components.media_player.floorplan_speaker: error
custom_components.media_player.living_room: info
homeassistant.core: error
homeassistant.components.automation: warn
homeassistant.components.binary_sensor: error
@ -19,7 +20,7 @@ logs:
homeassistant.components.discovery: warn
homeassistant.components.feedreader: warn
homeassistant.components.http: warn
homeassistant.components.media_player: warn
homeassistant.components.media_player: info
homeassistant.components.sensor.pi_hole: critical
homeassistant.components.sensor.rest: critical
homeassistant.components.recorder: error

View File

@ -29,7 +29,7 @@ media_player:
group:
#
all_echoes:
view: yes
view: no
control: hidden
name: 'Alexa'
entities:

View File

@ -31,9 +31,8 @@ speech_engine:
media_player: >-
{% if media_player | length == 0 %}
{% set media_player = [
'media_player.living_room',
'media_player.bedroom_alarm_panel',
'media_player.office'
'media_player.livingroomcc',
'media_player.bedroom_alarm_panel'
] %}
{% endif %}

View File

@ -58,19 +58,19 @@ speech_processing:
0.3
{% endif %}
- service: media_player.alexa_tts
- service: tts.amazon_polly_say
data_template:
entity_id: >
{% if states.group.bed.state == 'off' %}
media_player.living_room
media_player.livingroomCC
{% else %}
media_player.alarm_clock, media_player.bedroom_alarm_panel
{% endif %}
message: >-
# <speak>
<speak>
{{ speech_message }}
# </speak>
# cache: true
</speak>
cache: true
- service: input_boolean.turn_off
data: