Switching back to owntracks for my presence

This commit is contained in:
Jeffrey Stone 2017-01-05 11:19:12 -05:00
parent 0d20992bdd
commit 77d88b359a
1 changed files with 6 additions and 6 deletions

View File

@ -4,11 +4,11 @@ intents:
type: plaintext type: plaintext
text: > text: >
{%- if is_state('device_tracker.owntracks_jeffreysphone', 'home') and {%- if is_state('device_tracker.owntracks_jeffreysphone', 'home') and
is_state('device_tracker.katheriesiphone', 'home') -%} is_state('device_tracker.katherinestonesiphone', 'home') -%}
You are both home You are both home
{%- else -%} {%- else -%}
Jeff is at {{ states("device_tracker.owntracks_jeffreysiphone") }} Jeff is at {{ states("device_tracker.owntracks_jeffreysphone") }}
and Kat is at {{ states("device_tracker.katheriesiphone") }} and Kat is at {{ states("device_tracker.katherinestonesiphone") }}
{% endif %} {% endif %}
WhereIsJeffIntent: WhereIsJeffIntent:
@ -29,12 +29,12 @@ intents:
speech: speech:
type: plaintext type: plaintext
text: > text: >
{%- if is_state('device_tracker.katheriesiphone', 'home') -%} {%- if is_state('device_tracker.katherinestonesiphone', 'home') -%}
Kat is at home Kat is at home
{%- else -%} {%- else -%}
{%- if is_state('device_tracker.katheriesiphone', 'not_home') -%} {%- if is_state('device_tracker.katherinestonesiphone', 'not_home') -%}
Kat is not here Kat is not here
{%- else -%} {%- else -%}
Kat is at {{ states("device_tracker.katheriesiphone") }} Kat is at {{ states("device_tracker.katherinestonesiphone") }}
{% endif %} {% endif %}
{% endif %} {% endif %}