mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-28 08:50:34 +00:00
Updating owntracks and presence sensors
This commit is contained in:
@@ -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 %}
|
Reference in New Issue
Block a user