sbryfcz / harmony-card

A Home Assistant Lovelace Care for Harmony Integration
MIT License
104 stars 12 forks source link

volume slider isn't accurate for onkyo receiver #73

Closed smenzer closed 2 years ago

smenzer commented 2 years ago

I've set up my receiver via dlna integration and I can properly control the volume when controlling it via the device directly. The numbers on the volume in HA don't match the number on my receiver (for example, in HA if I'm at "30", my receiver shows "19", HA at "35" is "22" on my receiver. But they are consistent in the translation from HA to receiver volumes, so it works great.

However, when I use this entity as the volume_entity in the harmony-card config, then the volume controls aren't working as nicely. A few issues:

  1. hitting volume up or volume down changes the volume in HA by a value of 10 (so if I'm at 34, it changes to 24 if I press down). This is a big jump and I'd expect it to move one volume amount up or down in HA. This would correspond on my receiver to whatever value it means, but it would be a nice way to tweak the volume up and down, which I can't do right now.
  2. moving the slider from one value ("30") to another value ("35") doesn't consistently change the volume on my receiver to the same value.

I have a feeling that this is due to the different units of measure that HA uses (0-1) and my receiver (0-60). Based on the detail that [this post](https://community.home-assistant.io/t/harmony-activities-volume-slider-and-lovelace/72419 -- go to Volume Sliders section) goes into to make the conversion from HA to a receiver, I'm assuming this is where the problem lies.

It would be great if we could customize our media player's min/max and what the step is when we hit up/down to make it more usable.

happy to provide more details and/or test if necessary

github-actions[bot] commented 2 years ago

This issue is being marked as stale due to lack of activity