Cleaned up a few presence states
This commit is contained in:
@ -49,7 +49,9 @@ sensor:
|
||||
unit_of_measurement: ""
|
||||
value_template: >-
|
||||
{% set person = states.person.tony_stork.state %}
|
||||
{%- if person in ['WalMart','Kroger','Chief','Meijer','Dollar General - Clinton St','Aldi'] %}
|
||||
{% if person in ['Home','home'] %}
|
||||
Home
|
||||
{% elif person in ['WalMart','Kroger','Chief','Meijer','Dollar General - Clinton St','Aldi'] %}
|
||||
Grocery Store
|
||||
{% elif person in ['Rite Aid'] %}
|
||||
Pharmacy
|
||||
@ -74,7 +76,9 @@ sensor:
|
||||
unit_of_measurement: ""
|
||||
value_template: >-
|
||||
{% set person = states.person.christina_stork.state %}
|
||||
{%- if person in ['WalMart','Kroger','Chief','Meijer','Dollar General - Clinton St','Aldi'] %}
|
||||
{% if person in ['Home','home'] %}
|
||||
Home
|
||||
{% elif person in ['WalMart','Kroger','Chief','Meijer','Dollar General - Clinton St','Aldi'] %}
|
||||
Grocery Store
|
||||
{% elif person in ['Rite Aid'] %}
|
||||
Pharmacy
|
||||
@ -101,11 +105,11 @@ sensor:
|
||||
unit_of_measurement: ""
|
||||
value_template: >-
|
||||
{% if is_state('input_boolean.kallen_school', 'on') %}
|
||||
school
|
||||
School
|
||||
{% elif is_state('calendar.kallen_events', 'on') %}
|
||||
{{ state_attr('calendar.kallen_events', 'message') }}
|
||||
{%- elif is_state('person.tony_stork', 'home') and is_state('person.christina_stork', 'home') and is_state('input_boolean.kallen_school', 'off')%}
|
||||
home
|
||||
Home
|
||||
{%- elif is_state('person.tony_stork', 'Hospital') and is_state('input_boolean.kallen_school', 'off')%}
|
||||
{{ states('sensor.tina_location') }}
|
||||
{%- elif is_state('person.christina_stork', 'Bob Evans') and is_state('input_boolean.kallen_school', 'off')%}
|
||||
|
Reference in New Issue
Block a user