Let's give this a shot #421. Perfect timing since my Google ChromeCast Audios got jacked thanks to my new crappy router.
This commit is contained in:
parent
4f78c6694d
commit
89d5bb29bc
|
@ -233,13 +233,13 @@ 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
|
||||
# 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:
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,9 +1,13 @@
|
|||
media_players:
|
||||
entities:
|
||||
- media_player.livingroomcc
|
||||
- media_player.whole_house
|
||||
- media_player.living_room_tv
|
||||
- media_player.living_room_ultra
|
||||
- media_player.upstairs_living_room
|
||||
- media_player.alarm_clock
|
||||
- media_player.bedroom_alarm_panel
|
||||
- media_player.living_room
|
||||
- media_player.office
|
||||
- media_player.kitchen
|
||||
- media_player.justin_room
|
||||
- media_player.tap
|
||||
- media_player.upstairs
|
||||
|
|
|
@ -0,0 +1,82 @@
|
|||
#####################################################################
|
||||
# @package : alexa_tts
|
||||
# @description : alexa_tts settings
|
||||
#####################################################################
|
||||
homeassistant:
|
||||
customize:
|
||||
################################################
|
||||
## Node Anchors
|
||||
################################################
|
||||
package.node_anchors:
|
||||
customize: &customize
|
||||
package: 'alexa_tts'
|
||||
|
||||
hidden: &hidden
|
||||
<<: *customize
|
||||
hidden: true
|
||||
|
||||
###################################################################
|
||||
##media_player
|
||||
###################################################################
|
||||
media_player:
|
||||
- platform: alexa
|
||||
email: !secret alexa_email
|
||||
password: !secret alexa_password
|
||||
url: amazon.com
|
||||
#################################################################
|
||||
##group
|
||||
#################################################################
|
||||
group:
|
||||
#
|
||||
all_echoes:
|
||||
view: yes
|
||||
control: hidden
|
||||
name: 'Alexa'
|
||||
entities:
|
||||
- media_player.living_room
|
||||
- media_player.office
|
||||
- media_player.kitchen
|
||||
- media_player.justin_room
|
||||
- media_player.tap
|
||||
- media_player.upstairs
|
||||
#
|
||||
|
||||
##################################################################
|
||||
#automation
|
||||
##################################################################
|
||||
# automation:
|
||||
# ## Announce what is typed as input
|
||||
# - alias: Alexa TTS
|
||||
# trigger:
|
||||
# platform: state
|
||||
# entity_id: input_select.alexa
|
||||
# action:
|
||||
# - service: media_player.volume_set
|
||||
# data_template:
|
||||
# entity_id: >
|
||||
# {% if is_state('input_select.alexa', 'Living Room') %}
|
||||
# media_player.livingroom
|
||||
# {% elif is_state('input_select.alexa', 'This device') %}
|
||||
# media_player.this_device
|
||||
# {% elif is_state('input_select.alexa', 'None') %}
|
||||
# false
|
||||
# {% endif %}
|
||||
# volume_level: '{{ states.input_number.alexa_volume.state | float /10 }}'
|
||||
# - service: media_player.alexa_tts
|
||||
# data_template:
|
||||
# entity_id: >
|
||||
# {% if is_state('input_select.alexa', 'Living Room') %}
|
||||
# media_player.livingroom
|
||||
# {% elif is_state('input_select.alexa', 'This device') %}
|
||||
# media_player.this_device
|
||||
# {% elif is_state('input_select.alexa', 'None') %}
|
||||
# false
|
||||
# {% endif %}
|
||||
# message: "{{ states.input_text.alexa_tts.state }}"
|
||||
#
|
||||
# - delay: '00:00:02'
|
||||
#
|
||||
# - service: input_select.select_option
|
||||
# data:
|
||||
# entity_id: input_select.alexa
|
||||
# option: None
|
|
@ -31,8 +31,9 @@ speech_engine:
|
|||
media_player: >-
|
||||
{% if media_player | length == 0 %}
|
||||
{% set media_player = [
|
||||
'media_player.livingroomcc',
|
||||
'media_player.bedroom_alarm_panel'
|
||||
'media_player.living_room',
|
||||
'media_player.bedroom_alarm_panel',
|
||||
'media_player.office'
|
||||
] %}
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -58,19 +58,19 @@ speech_processing:
|
|||
0.3
|
||||
{% endif %}
|
||||
|
||||
- service: tts.amazon_polly_say
|
||||
- service: media_player.alexa_tts
|
||||
data_template:
|
||||
entity_id: >
|
||||
{% if states.group.bed.state == 'off' %}
|
||||
media_player.livingroomCC
|
||||
media_player.living_room
|
||||
{% 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:
|
||||
|
|
|
@ -9,7 +9,9 @@ MQTT_username: MQTT_username
|
|||
MQTT_password: password
|
||||
ssl_certificate: fake_key.pem
|
||||
ssl_key: fake_key.pem
|
||||
http_base_url: your.website.com
|
||||
http_base_url: vCloudInfo.com
|
||||
alexa_email: carlo@vCloudInfo.COM
|
||||
alexa_password: YOUTUBE_vCloudInfo
|
||||
ifttt_key: iftttKEYPassphrase
|
||||
camera1_url: http://192.168.10.21:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=password
|
||||
camera2_url: http://192.168.10.22:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=password
|
||||
|
|
Loading…
Reference in New Issue