

If user exposed functionality or configuration variables are added/changed: Tests have been added to verify that the new code works. The code has been formatted using Black (`black -fast homeassistant tests`) There is no commented out code in this PR. **Your PR cannot be merged unless tests pass** The code change is tested and works locally. Code quality improvements to existing code or addition of tests Breaking change (fix/feature causing existing functionality to break) New feature (which adds functionality to an existing integration)

Bugfix (non-breaking change which fixes an issue) The idea is that if you have both a paused and a playing child, the playing child should be picked above the paused one, while today this is determined by the order in the list of children. This creates an "order of importance" between the states of the children of Universal Media Player. Someone must have a similar scenario or some words of wisdom on how to come to a solution? I feel this should be possible, but I’m no further ahead than I was a few months ago when I tried before. And the state_template option only changes the state label rather than allowing customisation of which should be the active media player in certain circumstances.

If I change the order of the ‘children’ so the Sonos is first, it will always show ‘TV’ when using the Roku and not show that Netflix is the currently active source.Ĭorrect me if I’m wrong, but the Universal Media Player attributes > source option can’t be templated. Music starts playing, volume and controls are fine as I have them configured as commands, but the player is still showing Netflix rather than the music cover art from the Sonos. So what do you do when your media players are rarely off or idle, but the currently used player changes frequently? For example - watching Netflix on the Roku and then decide to listen to some music on the Sonos Beam. The Universal Media Player will control the first child on the list that is active (not idle/off).
