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 # name: Living Room TV
# scan_interval: 180 # scan_interval: 180
# tts: tts:
# - platform: amazon_polly - platform: amazon_polly
# aws_access_key_id: !secret aws_access_key_ID aws_access_key_id: !secret aws_access_key_ID
# aws_secret_access_key: !secret aws_secret_access_key aws_secret_access_key: !secret aws_secret_access_key
# region_name: 'us-east-1' region_name: 'us-east-1'
# text_type: ssml text_type: ssml
# cache: True cache: True
# cache_dir: /data/tts # cache_dir: /data/tts
wink: wink:
# email: !secret wink_username # email: !secret wink_username

View File

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

View File

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

View File

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

View File

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