Ability to play announcements in just living room and basement

This commit is contained in:
2022-06-18 21:29:30 -04:00
parent a9be86795d
commit ccdc0b8839
4 changed files with 16 additions and 5 deletions

View File

@ -5,6 +5,7 @@ tts_devices:
- Basement - Basement
- Master Bedroom - Master Bedroom
- Kallen Bedroom - Kallen Bedroom
- Common Areas
- Everywhere - Everywhere
initial: Living Room initial: Living Room
icon: mdi:dots-horizontal-circle icon: mdi:dots-horizontal-circle

File diff suppressed because one or more lines are too long

View File

@ -116,7 +116,7 @@ automation:
action: action:
- service: script.daily_briefing - service: script.daily_briefing
data: data:
who: living_room who: common
- id: 5d06ba92-de10-4bf3-bc08-86f5be60c4a7 - id: 5d06ba92-de10-4bf3-bc08-86f5be60c4a7
alias: Morning Briefing alias: Morning Briefing
@ -130,7 +130,7 @@ automation:
action: action:
- service: script.morning_report - service: script.morning_report
data: data:
who: living_room who: common
script: script:
reset_annc_switches: reset_annc_switches:
@ -148,7 +148,7 @@ script:
sequence: sequence:
- service: script.speech_engine - service: script.speech_engine
data: data:
who: living_room who: common
message: !include ../templates/speech/kallen_nightly_briefing.yaml message: !include ../templates/speech/kallen_nightly_briefing.yaml
- service: script.text_notify - service: script.text_notify
data: data:
@ -173,7 +173,7 @@ script:
{% if is_state('input_boolean.school_today', 'on') %} {% if is_state('input_boolean.school_today', 'on') %}
kallen_bedroom kallen_bedroom
{% else %} {% else %}
living_room common
{% endif %} {% endif %}
message: !include ../templates/speech/kallen_morning_briefing.yaml message: !include ../templates/speech/kallen_morning_briefing.yaml
- service: script.text_notify - service: script.text_notify

View File

@ -139,6 +139,11 @@ notify:
- service: alexa_media_living_room_echo_dot - service: alexa_media_living_room_echo_dot
- service: alexa_media_basement_echo_dot - service: alexa_media_basement_echo_dot
- service: alexa_media_master_bedroom_echo_dot - service: alexa_media_master_bedroom_echo_dot
- name: alexa_common_areas
platform: group
services:
- service: alexa_media_living_room_echo_dot
- service: alexa_media_basement_echo_dot
script: script:
@ -469,6 +474,9 @@ script:
{% elif who in ['basement','basement_echo_dot','media_player.basement_echo_dot','Basement Echo Dot'] %} {% elif who in ['basement','basement_echo_dot','media_player.basement_echo_dot','Basement Echo Dot'] %}
{% set who = 'basement_echo_dot' %} {% set who = 'basement_echo_dot' %}
script.alexa_voice script.alexa_voice
{% elif who in ['Common Areas','common','common_areas'] %}
{% set who = 'common' %}
script.alexa_voice
{% elif who in ['Everywhere','everywhere'] %} {% elif who in ['Everywhere','everywhere'] %}
{% set who = 'everywhere' %} {% set who = 'everywhere' %}
script.alexa_voice script.alexa_voice
@ -600,6 +608,8 @@ script:
notify.alexa_media_master_bedroom_echo_dot notify.alexa_media_master_bedroom_echo_dot
{% elif who in ['basement','basement_echo_dot'] %} {% elif who in ['basement','basement_echo_dot'] %}
notify.alexa_media_basement_echo_dot notify.alexa_media_basement_echo_dot
{% elif who in ['common'] %}
notify.alexa_common_areas
{% elif who in ['Everywhere','everywhere'] %} {% elif who in ['Everywhere','everywhere'] %}
notify.alexa_everywhere notify.alexa_everywhere
{% else %} {% else %}