Ensemble icon indicating copy to clipboard operation
Ensemble copied to clipboard

Volume changes not applied through Music Assistant

Open Szene opened this issue 9 months ago • 8 comments

Hello, with the latest beta (v3.0.3-beta) I've seen the issue that setting volume through Music Assistant itself isn't applied to the device nor to the app itself. This breaks entire automisations through Home Assistant. I can't confirm if older versions worked or if this was always an issue. Changeing the volume in the app itself works fine but is useless for automations. To me this seems like a bug as sendspin usually works fine with applying changes to the volume through Music Assistant itself or even with HA automations.

I've tried many apps now but this one seems to be more or less the best one. So if this volume issue can be fixed than that would be very much appricated, as this is the current deal breaker for me.

Edit: Just tested the latest stable version and the problem exists there as well. By the way I tested it on my Xiaomi 14 Ultra as well as on my Honor Pad 10 and Lenovo Tab M10, all three showed the same behavior.

Szene avatar Feb 12 '26 12:02 Szene

Hi @Szene, are you specifically talking about the local player volume? So if you set the volume on your phone in ensemble, the volume in the home assistant phone media player doesn't change?

CollotsSpot avatar Feb 12 '26 16:02 CollotsSpot

Hi, the other way around, but to be honest it should work both ways anyway. Ensemble is connected to Music Assistant, but changeing the volume on the sendspin player inside the Music Assistant website doesn't change it in Ensemble nor the other way around. Home Assistant only manages the player entitiy from the Music Assistant integration, but if even Music Assistant itself isnt able to, then HA is neither.

The issue is only between Ensemble and Music Assistant through the sendspin player. Right now the volume changes that are done through Music Assistant itself just do nothing even if other sendspin players and also apps do this without issue (MassDroid/Snapcast/HA Voice PE). Same for volume changes in Ensemble, those also don't change the volume inside Music Assistant for its Sendspin player.

To me it just looks like there is a missing connection between those two.

And to a better visual understanding I'm talking about those controls:

Image

Settings inside Music Assitant should be correct, as they work in the other players as well.

Image

Szene avatar Feb 12 '26 16:02 Szene

I'm with you. What automations have you got for the ensemble player in home assistant?

CollotsSpot avatar Feb 12 '26 17:02 CollotsSpot

Nothing special, its just doing these things in order:

Setting the volume of the player with a script stepwise till it's 0% Playing a special music or stopping it Setting the volume of the player with a script stepwise till it's 55%

Image (ignore the playername, as I tried out many apps today and it creates a new player everytime for each app)

But it's also just for manual control, because I use the Music Assistant webinterface as a dashboard inside HA itself as a central managment console. As long as Music Assitance is able to controll the volume of the app everything would be fine. My automation itself works fine by the way, I see it changing the volume inside Music Assistance just fine, it just doesn't change it on the Ensemble app player. So the MA <-> HA connection is totaly fine.

Szene avatar Feb 12 '26 17:02 Szene

Looks like it's fixed. Will be included in next release. Here's a build you can test.

https://github.com/CollotsSpot/Ensemble/actions/runs/22151747976/artifacts/5560474312

CollotsSpot avatar Feb 18 '26 18:02 CollotsSpot

Thanks for looking into it, but sadly I cant really test if it's fixed or not now. As soon as I update the sendspin player from Ensemble vanishes in MA, almost like as it never connects. With this version I can only see my HA Voice PE Sendspin player, but my tablet gets unavailable. (Now a Xiaomi Pad 7)

I tried stopping, clearing data and cache of the app, as well as a clean reinstall, but no changes. As soon as I roll back to v3.0.3-beta the Ensemble's sendspin player pops up immediately and is available, playing just fine, but with the volume issue again logically.

So this version breaks playback entirely as it seems.

Szene avatar Feb 18 '26 19:02 Szene

Oops forgot to commit the fixes! Here you go

https://github.com/CollotsSpot/Ensemble/actions/runs/22155170187/artifacts/5561961742

CollotsSpot avatar Feb 18 '26 20:02 CollotsSpot

Now it works perfectly. Thank you very much! I'll use this (alpha?) version till the new beta or stable version is released.

Szene avatar Feb 18 '26 20:02 Szene