Tweaking the apple tv sensor

This commit is contained in:
Jeffrey Stone 2017-04-03 15:36:44 -04:00
parent 467b70d918
commit 4479e66602
1 changed files with 4 additions and 4 deletions

View File

@ -23,11 +23,11 @@
appletv:
friendly_name: 'Apple Tv'
value_template: >-
{%- if is_state("media_player.appletv", "on") %}
{%- if is_state("media_player.apple_tv", "on") %}
On
{% elif is_state("media_player.appletv", "playing") %}
Playing {%- if states.media_player.appletv.attributes.media_title %}
- {{ states.media_player.appletv.attributes.media_title }}
{% elif is_state("media_player.apple_tv", "playing") %}
Playing {%- if states.media_player.apple_tv.attributes.media_title %}
- {{ states.media_player.apple_tv.attributes.media_title }}
{% else %}
Off
{%- endif %}