Hey I was wondering if it were possible to add in more volume customization. We can already set min and max, and I was wondering if we could also get stuff like this:
But honestly this thing is great! I use it all the time. Thanks for the hard work.
The scale displayed in the frontend does not reflect the actual value sent to the backend component in HA. All components (at least that I'm aware of) in HA have a volume scale of 0.0 - 1.0, you can also see this in the docs volume_set service call.
So the scale of the slider in the card shouldn't matter, think of it as 0 - 100% volume, the actual scale is handled by the individual component.
I'm not entirely sure what you mean by scale and offset, do you want a non-linear scale or what's the use-case? can you elaborate?
Stateless volume is primarily there for players not exposing a volume state (hence the name stateless). We utilize the media_player.volume_up & media_player.volume_down services to adjust the volume and it's up to the component how those are handled, the size of the volume step may vary.
That's the reason I'm hesitant of adding volume step and volume display for volume_stateless.
Yea, I guess the problem I ultimately have is with the media player volume itself. The stereo I use doesn't have a great 1:1 correlation with the 100% scale. And I think that's what I was trying to get at with the non-linear scale. Since I can't change the component itself it'd be nice if I could make the front end modify it.
For example, my stereo's actual volume slider to me is at 0% at -45dB and 100% at -15dB. But when I adjust it in HA, it looks like the component just subtracts 100 to get the dB level (so 20% = -80dB and 75% = -25dB). It makes it super difficult for me to pick an appropriate level when my scale is so small compared. I ultimately can't use it in the UI.
And that's why I've mostly been using stateless for these stereos. While it's still a bit of a big jump, At least increasing/decreasing the volume by a set amount has somewhat worked. I just only can press it once or twice before it's too loud or too quiet.
Ultimately what I would love to see is some way to actually be able to adjust the volume where the 0-100% just doesn't quite work out. I recently stumbled upon this appdaemon program in HACS (https://github.com/Petro31/ad_convert_media_volume) that hits the nail on the head with what I want, but I don't know how to use it. And I was curious if that's something that might just be a simple variable for this (since it's the only thing I use to display media players!).
Hope that makes sense. I understand if it just doesn't mesh with the direction mini media is in, but I figured I'd ask!
Alright, thanks for the clarification!
We could potentially add some sort of customisable scaling for the volume, but I don't want to get your hopes up, so it's a maybe...for now 😉
I came in figuring as much! But thought it didn't hurt to ask! Thanks for keeping it in mind.
https://github.com/Petro31/ad_convert_media_volume
@kflinderman this is you? xD looks like examples for exactly your setup
That's not my AppDaemon app, but it is what I'm using and was questioning about!
Looks like you put in the good work! Can't wait to try it out, thanks a bunch!
If I may add my two cents here, I've implemented the appdaemon app from Petro31, and via the Universal Media Player platform, simply managed in replacing my AVR volume from between 0 and 1 to the sensor output provided by the aforementioned app. However, the mini media player card does not allow for negative values, so my range from -80.5 to 12 dB will not be of any use, since min_volume and max_volume are between 1 and 100.
I would most definitely be interested in being able to reflect said range in dB on the volume slider on this card, but since I'm not much of a coder, I can't tell what the implications would be, so: would be nice to have, can live without it, and thanks a bunch for the work put into this card!
I have several sonos zones, how do i control the volume for the additional zone not tied to the primary? I'd like to group everything and play from one playlist but control the volume of each zone?
So follow 463? Is 463 still wip?
On Jan 9, 2021, at 4:41 PM, Karl Kihlström notifications@github.com wrote:

See #404—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Yup, still WIP