mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-07-21 19:40:17 +00:00
Tweaking the apple tv sensor
This commit is contained in:
parent
377814de38
commit
68e6d7d024
@ -22,7 +22,14 @@
|
|||||||
|
|
||||||
appletv:
|
appletv:
|
||||||
friendly_name: 'Apple Tv'
|
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:
|
xboxone:
|
||||||
friendly_name: 'xboxone'
|
friendly_name: 'xboxone'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user