Updating owntracks and presence sensors

This commit is contained in:
Jeffrey Stone 2017-01-05 11:16:12 -05:00
parent fde0b87dcc
commit ff9fd8e125
3 changed files with 27 additions and 5 deletions

View File

@ -47,3 +47,21 @@
kat_mini:
friendly_name: "Kat's Mini"
value_template: "{{ 'Online' if is_state('device_tracker.katherinesmini', 'home') else 'Offline' }}"
jeff_iphone_batt:
unit_of_measurement: '%'
value_template: >-
{%- if states.device_tracker.jeffreysiphone.attributes.battery %}
{{ states.device_tracker.jeffreysiphone.attributes.battery | round(1) }}
{% else %}
{{ states.sensor.jeff_iphone_batt.state }}
{%- endif %}
kat_iphone_batt:
unit_of_measurement: '%'
value_template: >-
{%- if states.device_tracker.katherinestonesiphone.attributes.battery %}
{{ states.device_tracker.katherinestonesiphone.attributes.battery | round(1) }}
{% else %}
{{ states.sensor.kat_iphone_batt.state }}
{%- endif %}

View File

@ -0,0 +1,5 @@
- platform: google_travel_time
name: "Jeff ETT Home"
api_key: !secret google_api
origin: device_tracker.owntracks_jeffreysphone
destination: zone.home

View File

@ -8,7 +8,6 @@
name: "Jeff Velocity"
state_topic: "owntracks/owntracks/jeffreysphone"
qos: 0
unit_of_measurement: ""
value_template: '{{ value_json.vel }}'
unit_of_measurement: "mph"
value_template: '{{ value_json.vel }} '