Updating owntracks and presence sensors
This commit is contained in:
parent
fde0b87dcc
commit
ff9fd8e125
|
@ -3,10 +3,10 @@
|
|||
amazon_dot_lr:
|
||||
friendly_name: 'Amazon Dot LR'
|
||||
value_template: "{{ 'Online' if is_state('device_tracker.kindlecdf98981f', 'home') else 'Offline' }}"
|
||||
|
||||
|
||||
circle:
|
||||
friendly_name: 'Disney Circle'
|
||||
value_template: "{{ 'Online' if is_state('device_tracker.circle', 'home') else 'Offline' }}"
|
||||
value_template: "{{ 'Online' if is_state('device_tracker.circle', 'home') else 'Offline' }}"
|
||||
|
||||
tycho:
|
||||
friendly_name: 'tycho'
|
||||
|
@ -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 %}
|
|
@ -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"
|
||||
state_topic: "owntracks/owntracks/jeffreysphone"
|
||||
qos: 0
|
||||
unit_of_measurement: ""
|
||||
value_template: '{{ value_json.vel }}'
|
||||
unit_of_measurement: "mph"
|
||||
value_template: '{{ value_json.vel }} '
|
||||
|
||||
|
Loading…
Reference in New Issue