Tweaking the apple tv sensor

This commit is contained in:
Jeffrey Stone 2017-04-03 15:04:18 -04:00
parent 377814de38
commit 68e6d7d024
1 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,14 @@
appletv:
friendly_name: 'Apple Tv'
value_template: "{{ 'Online' if is_state('device_tracker.appletv', 'home') else 'Offline' }}"
value_template: >-
{%- if is_state("device_tracker.appletv", "home") %}
Online
{% elif is_state("device_tracker.appletv", "playing") %}
Playing
{% else %}
Offline
{%- endif %}
xboxone:
friendly_name: 'xboxone'