Tweaking Apple TV

This commit is contained in:
Jeffrey Stone 2017-04-08 15:01:06 -04:00
parent 33140bf959
commit a378c5ccf1
1 changed files with 5 additions and 19 deletions

View File

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