mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-28 09:01:08 +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:
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
|
Reference in New Issue
Block a user