Tweaks to presence sensors

This commit is contained in:
2022-07-28 03:48:04 -04:00
parent b9dda5c84f
commit 89e3644e45

View File

@ -44,7 +44,7 @@ sensor:
unit_of_measurement: "" unit_of_measurement: ""
value_template: >- value_template: >-
{% set person = states.person.tony_stork.state %} {% set person = states.person.tony_stork.state %}
{%- if person in ['Wal-Mart','Kroger','Chief','Meijer'] %} {%- if person in ['WalMart','Kroger','Chief','Meijer','Dollar General - Clinton St'] %}
Grocery Store Grocery Store
{% else %} {% else %}
{% if person in ['not_home','Stationary'] %} {% if person in ['not_home','Stationary'] %}
@ -60,7 +60,7 @@ sensor:
unit_of_measurement: "" unit_of_measurement: ""
value_template: >- value_template: >-
{% set person = states.person.christina_stork.state %} {% set person = states.person.christina_stork.state %}
{%- if person in ['Wal-Mart','Kroger','Chief','Meijer'] %} {%- if person in ['WalMart','Kroger','Chief','Meijer','Dollar General - Clinton St'] %}
Grocery Store Grocery Store
{% elif person in ['Chipotle'] and is_state('input_boolean.work_today','on') %} {% elif person in ['Chipotle'] and is_state('input_boolean.work_today','on') %}
Work Work