Hi All,
I’m currently having an issue with the universal media player - I’m trying to get it to display as ‘playing’ when someone is playing Xbox on the TV, I currently have Sky, AndroidTV and Xbox mapped to the UMP - Sky and Android report the play status OK, but I have no media player device for the Xbox.
I tried using a state template to force the state to show ‘playing’ when the Harmony is set to Xbox, and then look directly at the device for other sources. This template works fine in the ‘developer tools’ but when I use it in the UMP config the state is always ‘off’ regardless of source.
Here’s what I tried;
media_player:
- platform: universal
name: Living Room TV
attributes:
state: >
{% if is_state_attr('remote.living_room', 'current_activity', 'Play Xbox One') %}
playing
{% elif is_state_attr('remote.living_room', 'current_activity', 'Watch Android TV')%}
{{states('media_player.living_room_androidtv')}}
{% elif is_state_attr('remote.living_room', 'current_activity', 'Watch Sky TV')%}
{{states('media_player.skyq_living_room')}}
{% else %}
off
{% endif %}
source_list: remote.living_room|activity_list
source: remote.living_room|current_activity
<snip>
Anyone know why this wouldn’t work?
1 post - 1 participant