Coninuing with the major audible notifications overhual of 2020

This commit is contained in:
Jeffrey Stone
2020-12-04 01:01:28 -05:00
parent 2bd15de241
commit da591c9631
14 changed files with 405 additions and 244 deletions

View File

@@ -112,7 +112,6 @@ sensor:
sensors:
room_audio:
friendly_name: "Room Audio"
unit_of_measurement: ''
value_template: >-
{%- if is_state('binary_sensor.theater_occupancy', 'on') and is_state('media_player.theater_tv', 'on') %}
theater
@@ -127,6 +126,16 @@ sensor:
{% else %}
all_google
{%- endif %}
alexa_audio:
friendly_name: "Alexa Audio"
value_template: >-
{%- if is_state('sensor.last_alexa', 'media_player.living_room') %}
main
{% elif is_state('sensor.last_alexa', 'media_player.kitchen') %}
kitchen
{% else %}
main
{%- endif %}
last_alexa:
value_template: >
{{ states.media_player | selectattr('attributes.last_called','eq',True) | map(attribute='entity_id') | first }}