Control 2 Denon zone volume with one slider

Hi,

I’m breaking my brains over the following. Some background to my problem.

I have a Denon AVC-X3700H working in a multizone speaker setup. I control my media setup with a harmony remote and have both of them connected to Home Assistant. When someone is using the TV for some purpose (e.a. google home netflix, gaming, etc.) The speakers from zone 1 are outputting that sound. The speakers from zone 2 are used for music only. When the tv is off, the speakers from zone 1 join the party for the music.

I control both of the volumes with a volume slider from mini media control (https://github.com/kalkih/mini-media-player) on a wallmounted screen. I want to combine the two volume sliders in to one slider when the tv is off and the music is playing. I have lots of ‘condition’ card in the dashboard and know how to hide the 2 sliders. The only thing i need to make is a grouped mediaplayer for volume control of both zones. No play, pauze or anything, just volume. Any ideas on how to make this?

TLDR: How can I combine two media_player.denon entities into one volume slider?

Thanks,

Seyude

Create a variable or switch that represents the the global state and make the UI control it and setup automation that will update the related devices whenever the variable is changed