Took quite a while to figure out why the volume got stuck at 27, though. Might or might not need the “round” but this falls into the category of “once it works, don’t touch it”
I do wonder if the issue is in your layer and if it constitutes a bug or not…it seems like adding one to the volume should work. If you do want to try to repro it, you can use an expression like mine which just adds one and see if you hit a point at which the volume doesn’t advance.
Here’s a fully functioning version of an action which increases volume by a single step by incrementing the current volume. It’s probably obvious that you can modify the increment (would be .01 in my case if not for the rounding issue) and, of course, subtract for volume decrementing.
I just verified the issue still occurs on HA version 2023.2.5 on a Pi.
Hi.
This is a Naim Uniti Atom HE on which the volume scale is 1-100. No volume limit. Image of volume settings at the end of this post.
Here’s the simplest repro I’ve found. It doesn’t repro 100% of the time but it’s pretty close.
Go to Developer Tools | Services. Do a simple volume_set. You don’t need to do the read, increment, write step…just set. In my case. I can set to any number up to 56 and that works. I try to set to .57 and Roon doesn’t respond to it. Set to .58, Roon sets the volume to .57 Setting to .59 and beyond work fine. It’s specifically .57 where it has the issue.
If the volume is above .57 and I set it to .57 using this method, Roon will often show it at .56 and then I can’t set it to 57 again.
I don’t see any equivalent issue when using increase volume - it’s just “set” where the problem occurs.
I’m interested to hear if you figure it out.
FWIW, this little knob is a pretty decent volume controller. I posted earlier about how generates events inconsistently. It has two modes that you toggle between by holding the button down for a few seconds. One mode sends rotation events and does so inconsistently. The other mode sends brightness events quite consistently. I switched to that mode and I’m using this controller regularly. Well worth the $12.
That’s interesting. I can’t reproduce what you’re seeing. The volume increment/decrement buttons work fine for me.
Might be related or the same issue. I suppose what I’m seeing could actually be an issue with Naim’s Roon integration. I can’t tell if you’re also using a Naim device.
When you initially wrote that you reproduced my issue, was that with the developer UX that I described?
Thanks. I’m on 2023.3.6 - I thought it would be picked up in the one of the point releases but I’ll check again when 2023.4 is out. Appreciate the response!