More voice notification updates...minor stuff tweaking routing and such

This commit is contained in:
Jeffrey Stone
2020-12-06 22:03:02 -05:00
parent 47c5f0c275
commit 7d64e92426
3 changed files with 8 additions and 22 deletions

View File

@@ -117,7 +117,7 @@ sensor:
{% if sensor_count >= 1 %}
{% for sensor in expand('group.occupancy') %}
{% if as_timestamp(sensor.last_changed) == as_timestamp(expand('group.occupancy') | selectattr('state', 'eq', 'on') | map(attribute='last_changed') | max) %}
{%- if sensor.name == 'Theater Occupancy' and is_state('media_player.theater_tv', 'on') %}
{%- if is_state('media_player.theater_tv', 'on') %}
theater
{% elif sensor.name == 'Kitchen Occupancy' %}
kitchen