kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.51k stars 206 forks source link

Volume up button kind of stuck #572

Closed MarcinL1977 closed 2 years ago

MarcinL1977 commented 2 years ago

Strange issue - I have the automation set to start playing internet radio in the mornings through Bluesound streamer. I set volume to 6% using media_player.volume_set. All seem to work fine, but when I want to turn volume up by clicking on volume up button, I cannot do this. I can go below 6% and back, but not higher, as if volume_set was acting as a threshold. Clicking on a card and using slider works fine and unlocks functionality of volume up button. I am very new to home assistant, so if I need to provide any logs or further info please point me in the right direction.

TobiasSchwarz74 commented 2 years ago

Are you using sonos speakers? I had the same issue, even when controlling the volume using a zigbee remote with node-red automation.

I fetched the current volume level, added "0.01" to set it with the new value - it stuck at 6%.

This seems to be a rounding issue of the sonos integration i think - i fixed this issue by adding "0.011" instead. This workaround also works with MMP - set "volume_step: 1.1" and the volume will increase correctly in %-steps.

MarcinL1977 commented 2 years ago

No, media player is bluesound and speakers attached are wired ones.

TobiasSchwarz74 commented 2 years ago

Ok, so perhaps a HA issue - definitely not a MMP issue. Have you tried my workaround? It solved my issues with node-red as well as with MMP.

kalkih commented 2 years ago

Hello, when you have this issue, is the issue present in the default media-control card as well?

MarcinL1977 commented 2 years ago

I haven't used the default cards so far, but I just tried it and yes, the issue is the same. Looks like a general Home Assistant problem and not mini-media-playr. Thanks for your response.

kalkih commented 2 years ago

No worries, I would suggest opening an issue in the core HA repository for a better chance to get this resolved. Thanks!