Using new toggle

This commit is contained in:
2022-09-18 19:00:39 -04:00
parent f25568df23
commit 5ea39efde5

View File

@ -537,19 +537,19 @@ script:
{% elif who in ['master_bedroom','master_bedroom_echo_dot','media_player.master_bedroom_echo_dot','Master Bedroom Echo Dot','Master Bedroom'] %} {% elif who in ['master_bedroom','master_bedroom_echo_dot','media_player.master_bedroom_echo_dot','Master Bedroom Echo Dot','Master Bedroom'] %}
'master_bedroom' 'master_bedroom'
{% elif who in ['Basement','basement','basement_echo_dot','media_player.basement_echo_dot','Basement Echo Dot'] %} {% elif who in ['Basement','basement','basement_echo_dot','media_player.basement_echo_dot','Basement Echo Dot'] %}
{% if is_state('input_boolean.stream_online','on') %} {% if is_state('input_boolean.studio_quiet','on') %}
'living_room' 'living_room'
{% else %} {% else %}
'basement' 'basement'
{% endif %} {% endif %}
{% elif who in ['Common Areas','common','common_areas'] %} {% elif who in ['Common Areas','common','common_areas'] %}
{% if is_state('input_boolean.stream_online','on') %} {% if is_state('input_boolean.studio_quiet','on') %}
'living_room' 'living_room'
{% else %} {% else %}
'common' 'common'
{% endif %} {% endif %}
{% elif who in ['Everywhere','everywhere'] %} {% elif who in ['Everywhere','everywhere'] %}
{% if is_state('input_boolean.stream_online','on') %} {% if is_state('input_boolean.studio_quiet','on') %}
'alexa_no_basement' 'alexa_no_basement'
{% else %} {% else %}
'everywhere' 'everywhere'
@ -558,7 +558,7 @@ script:
'living_room_echo_dot' 'living_room_echo_dot'
{% endif %} {% endif %}
message: > message: >
{% if who in ['Basement','basement','basement_echo_dot','media_player.basement_echo_dot','Basement Echo Dot'] and is_state('input_boolean.stream_online','on') %} {% if who in ['Basement','basement','basement_echo_dot','media_player.basement_echo_dot','Basement Echo Dot'] and is_state('input_boolean.studio_quiet','on') %}
'I cannot play notifications in the basement while the stream is live' 'I cannot play notifications in the basement while the stream is live'
{% else %} {% else %}
{{ message }} {{ message }}