mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-04-17 06:01:24 +00:00
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
|
# 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:
|
||||||
|
1077
config/custom_components/media_player/alexa.py
Executable file
1077
config/custom_components/media_player/alexa.py
Executable file
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,13 @@
|
|||||||
media_players:
|
media_players:
|
||||||
entities:
|
entities:
|
||||||
- media_player.livingroomcc
|
- media_player.livingroomcc
|
||||||
- media_player.whole_house
|
|
||||||
- media_player.living_room_tv
|
- media_player.living_room_tv
|
||||||
- media_player.living_room_ultra
|
- media_player.living_room_ultra
|
||||||
- media_player.upstairs_living_room
|
- media_player.upstairs_living_room
|
||||||
- media_player.alarm_clock
|
|
||||||
- media_player.bedroom_alarm_panel
|
- 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
|
||||||
|
82
config/packages/alexa_tts.yaml
Executable file
82
config/packages/alexa_tts.yaml
Executable file
@ -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: >-
|
media_player: >-
|
||||||
{% if media_player | length == 0 %}
|
{% if media_player | length == 0 %}
|
||||||
{% set media_player = [
|
{% set media_player = [
|
||||||
'media_player.livingroomcc',
|
'media_player.living_room',
|
||||||
'media_player.bedroom_alarm_panel'
|
'media_player.bedroom_alarm_panel',
|
||||||
|
'media_player.office'
|
||||||
] %}
|
] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -58,19 +58,19 @@ speech_processing:
|
|||||||
0.3
|
0.3
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- service: tts.amazon_polly_say
|
- service: media_player.alexa_tts
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
{% if states.group.bed.state == 'off' %}
|
{% if states.group.bed.state == 'off' %}
|
||||||
media_player.livingroomCC
|
media_player.living_room
|
||||||
{% 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:
|
||||||
|
@ -9,7 +9,9 @@ MQTT_username: MQTT_username
|
|||||||
MQTT_password: password
|
MQTT_password: password
|
||||||
ssl_certificate: fake_key.pem
|
ssl_certificate: fake_key.pem
|
||||||
ssl_key: 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
|
ifttt_key: iftttKEYPassphrase
|
||||||
camera1_url: http://192.168.10.21:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=password
|
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
|
camera2_url: http://192.168.10.22:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=password
|
||||||
|
Loading…
x
Reference in New Issue
Block a user