Adding media players to group
This commit is contained in:
parent
ddd4cc52f4
commit
df50ddf04d
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue