Let's give this a shot #421. Perfect timing since my Google ChromeCast Audios got jacked thanks to my new crappy router.
parent
4f78c6694d
commit
89d5bb29bc
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
|
||||||
|
|||||||
@ -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
|
||||||
Loading…
Reference in new issue