Updating owntracks and presence sensors
This commit is contained in:
parent
fde0b87dcc
commit
ff9fd8e125
|
@ -47,3 +47,21 @@
|
||||||
kat_mini:
|
kat_mini:
|
||||||
friendly_name: "Kat's Mini"
|
friendly_name: "Kat's Mini"
|
||||||
value_template: "{{ 'Online' if is_state('device_tracker.katherinesmini', 'home') else 'Offline' }}"
|
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 %}
|
|
@ -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
|
|
@ -8,7 +8,6 @@
|
||||||
name: "Jeff Velocity"
|
name: "Jeff Velocity"
|
||||||
state_topic: "owntracks/owntracks/jeffreysphone"
|
state_topic: "owntracks/owntracks/jeffreysphone"
|
||||||
qos: 0
|
qos: 0
|
||||||
unit_of_measurement: ""
|
unit_of_measurement: "mph"
|
||||||
value_template: '{{ value_json.vel }}'
|
value_template: '{{ value_json.vel }} '
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue