-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roon Volumetric dB-scale not converted to percentage #81138
Comments
Hey there @pavoni, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) roon documentation |
Hi @pavoni, I'm using a Matrix Audio Mini i3 Pro (Roon Ready) device. In HA it reports the volume between -1.27 and 0. When I drag the volume control it bumps to the left and stays at 0. Happened one time when playing music... i feel sorry for my ears and my neighbours ;-). In roon and on the device itself, it reports the volume between -127.0 and 0 with 0.5 increments. Just installed the extension, that's it. Can i give you more information? |
I think the code is likely assuming the level is between -80 and 0 for a db based device. What happens if you set the volume in roon - does HA show something sensible - or always 100%. |
I've had a look at the roon api docs and the pyroon library and the HA integration are both making some assumptions about endpoints, rather than looking at the information from the api (basically that a db volume control is always -80 to 0, and a regular volume control is always 0-100) So this is probably the source of the problem. Will take a look when I'm next working on the library. |
Reopening - as now have a fix |
The problem
The extension doesn't convert a dB-scale to percentage scale, volume adjustment in HA always sets the volume to 0 (which is maximum on a dB-scale).
Looking at the code there is a function that tries to convert the scale in media_player.py on line 192 but that doesn't seem to work.
Already tried other possibilities like "Input Number" and "Compensation" but can't get it to work.
What version of Home Assistant Core has the issue?
2022.10.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
roon
Link to integration documentation on our website
https://www.home-assistant.io/integrations/roon/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: