Tweaking Apple TV

This commit is contained in:
Jeffrey Stone 2017-04-08 15:01:06 -04:00
parent 33140bf959
commit a378c5ccf1

View File

@ -25,9 +25,8 @@
value_template: >- value_template: >-
{%- if is_state("media_player.apple_tv", "on") %} {%- if is_state("media_player.apple_tv", "on") %}
On On
{% elif is_state("media_player.apple_tv", "playing") %} {% elif states.media_player.apple_tv.attributes.media_title) %}
Playing {%- if states.media_player.apple_tv.attributes.media_title %} {{ states.media_player.apple_tv.attributes.media_title }}
- {{ states.media_player.apple_tv.attributes.media_title }}
{% else %} {% else %}
Off Off
{%- endif %} {%- endif %}
@ -38,14 +37,7 @@
chromecast: chromecast:
friendly_name: 'Chromecast' friendly_name: 'Chromecast'
value_template: >- value_template: "{{ 'On' if is_state("media_player.chromecast_lr", "on") else 'Off' }}"
{%- if is_state("media_player.chromecast_lr", "on") %}
On
{% elif is_state("media_player.chromecast_lr", "playing") %}
Playing
{% else %}
Off
{%- endif %}
smartthings: smartthings:
friendly_name: 'SmartThings' friendly_name: 'SmartThings'
@ -53,13 +45,7 @@
samsungtv: samsungtv:
friendly_name: 'Samsung Tv' friendly_name: 'Samsung Tv'
value_template: >- value_template: "{{ 'On' if is_state("media_player.pn60e550_pn60e550", "on") else 'Off' }}"
{%- if is_state("media_player.pn60e550_pn60e550", "on") %}
On
{% else %}
Off
{%- endif %}
honeywell: honeywell:
friendly_name: 'Honeywell' friendly_name: 'Honeywell'