Adding media players to group

This commit is contained in:
Jeffrey Stone 2017-04-08 15:17:58 -04:00
parent ddd4cc52f4
commit df50ddf04d
2 changed files with 4 additions and 11 deletions

View File

@ -90,10 +90,10 @@ Internet:
# - device_tracker.gateway2f3bca
Entertainment:
- sensor.samsungtv
- sensor.appletv
- media_player.pn60e550_pn60e550
- media_player.apple_tv
- sensor.xboxone
- sensor.chromecast
- media_player.chromecast_lr
Home Automation:
- sensor.smartthings

View File

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