mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-09-14 07:45:48 +00:00
Coninuing with the major audible notifications overhual of 2020
This commit is contained in:
@@ -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 }}
|
Reference in New Issue
Block a user