2016-12-30 16:10:09 +00:00
|
|
|
- platform: template
|
|
|
|
sensors:
|
|
|
|
amazon_dot_lr:
|
|
|
|
friendly_name: 'Amazon Dot LR'
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.kindlecdf98981f', 'home') else 'Offline' }}"
|
2017-01-05 16:16:12 +00:00
|
|
|
|
2017-02-03 20:00:25 +00:00
|
|
|
amazon_dot_kn:
|
|
|
|
friendly_name: 'Amazon Dot KN'
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.kindle23d7b37a0', 'home') else 'Offline' }}"
|
|
|
|
|
2016-12-30 16:10:09 +00:00
|
|
|
circle:
|
|
|
|
friendly_name: 'Disney Circle'
|
2017-01-05 16:16:12 +00:00
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.circle', 'home') else 'Offline' }}"
|
2016-12-30 16:10:09 +00:00
|
|
|
|
|
|
|
tycho:
|
|
|
|
friendly_name: 'tycho'
|
2017-01-02 19:37:09 +00:00
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.jarvis', 'home') else 'Offline' }}"
|
2016-12-30 16:10:09 +00:00
|
|
|
|
|
|
|
tightbeam:
|
|
|
|
friendly_name: 'tightbeam'
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.tightbeam', 'home') else 'Offline' }}"
|
|
|
|
|
|
|
|
appletv:
|
|
|
|
friendly_name: 'Apple Tv'
|
2017-04-03 19:04:18 +00:00
|
|
|
value_template: >-
|
2017-04-03 19:36:44 +00:00
|
|
|
{%- if is_state("media_player.apple_tv", "on") %}
|
2017-04-03 19:13:13 +00:00
|
|
|
On
|
2017-04-08 19:01:06 +00:00
|
|
|
{% elif states.media_player.apple_tv.attributes.media_title) %}
|
|
|
|
{{ states.media_player.apple_tv.attributes.media_title }}
|
2017-04-03 19:04:18 +00:00
|
|
|
{% else %}
|
2017-04-03 19:13:13 +00:00
|
|
|
Off
|
2017-04-03 19:04:18 +00:00
|
|
|
{%- endif %}
|
2016-12-30 16:10:09 +00:00
|
|
|
|
|
|
|
xboxone:
|
|
|
|
friendly_name: 'xboxone'
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.xboxone', 'home') else 'Offline' }}"
|
|
|
|
|
|
|
|
chromecast:
|
|
|
|
friendly_name: 'Chromecast'
|
2017-04-08 19:01:06 +00:00
|
|
|
value_template: "{{ 'On' if is_state("media_player.chromecast_lr", "on") else 'Off' }}"
|
2016-12-30 16:10:09 +00:00
|
|
|
|
|
|
|
smartthings:
|
|
|
|
friendly_name: 'SmartThings'
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.d052a8170fef', 'home') else 'Offline' }}"
|
|
|
|
|
|
|
|
samsungtv:
|
|
|
|
friendly_name: 'Samsung Tv'
|
2017-04-08 19:01:06 +00:00
|
|
|
value_template: "{{ 'On' if is_state("media_player.pn60e550_pn60e550", "on") else 'Off' }}"
|
|
|
|
|
2016-12-30 16:10:09 +00:00
|
|
|
honeywell:
|
|
|
|
friendly_name: 'Honeywell'
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.gateway2f3bca', 'home') else 'Offline' }}"
|
|
|
|
|
|
|
|
router:
|
|
|
|
friendly_name: 'Asus Router'
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.routerasuscom', 'home') else 'Offline' }}"
|
|
|
|
|
|
|
|
kat_mini:
|
|
|
|
friendly_name: "Kat's Mini"
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.katherinesmini', 'home') else 'Offline' }}"
|
2017-01-05 16:16:12 +00:00
|
|
|
|
2017-02-03 20:00:25 +00:00
|
|
|
jeff_mbp:
|
|
|
|
friendly_name: "Jeff's MBP"
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.jeffreysmbp', 'home') else 'Offline' }}"
|
|
|
|
|
|
|
|
jeff_work_mbp:
|
|
|
|
friendly_name: "Jeff's Work MBP"
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.jstonemac', 'home') else 'Offline' }}"
|
|
|
|
|
|
|
|
jeff_ipad:
|
|
|
|
friendly_name: "Jeff's iPad"
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.jeffreysipad', 'home') else 'Offline' }}"
|
|
|
|
|
|
|
|
kat_ipad:
|
|
|
|
friendly_name: "Kat's iPad"
|
|
|
|
value_template: "{{ 'Online' if is_state('device_tracker.katherinesipad', 'home') else 'Offline' }}"
|
|
|
|
|
2017-01-05 16:16:12 +00:00
|
|
|
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: >-
|
2017-02-03 20:00:25 +00:00
|
|
|
{%- if states.device_tracker.katherinesiphone.attributes.battery %}
|
|
|
|
{{ states.device_tracker.katherinesiphone.attributes.battery | round(1) }}
|
2017-01-05 16:16:12 +00:00
|
|
|
{% else %}
|
|
|
|
{{ states.sensor.kat_iphone_batt.state }}
|
2017-02-03 20:00:25 +00:00
|
|
|
{%- endif %}
|