slider-button-card icon indicating copy to clipboard operation
slider-button-card copied to clipboard

Issue with slider not always sending actual selected values

Open davidtheITguy opened this issue 3 years ago • 0 comments

Hi, so I have a weird but reproduceable problem using the slider coupled with a custom Zwave device using a Z-Uno/Arduino setup. It seems the slider is not always saving the selected values. When I slide to say 46% (for a dimmer) sometimes the value shown in the slider jumps around a bit and is off by a digit when the mouse up command occurs. In this example the slider will come to a rest at 45%. So no problem, I try to readjust the slider back to the intended 46% and it works, except that the value sent to the dimmer (or in my case a Z-wave device) is the original 45%. The slider did not seem to report back the one-digit change...

Now maybe this is not an issue for most users who tie directly to a dimmer thru an integration. Perhaps that is because if a user slides to say 55% and the sliders sends back say 54% the user typically will be unaware of the difference unless he/she looks very carefully at what is sent (I am only guessing here).

But in my case I am intercepting the actual set value the slider sets each time and inspecting it at the Arduino sketch (serial monitor) level and I am seeing consistently wrong (off by one) reported values. This is affecting my back-end control. Here is what is happening on my end:

image

image

image

image

Here is my markup for the control: image

And finally, my HA configuration data (I'm using core). Testing all this on a PC running Chrome. image

Hope this all makes sense and thanks for making such a great control!

-David

davidtheITguy avatar Oct 16 '21 00:10 davidtheITguy