Slider dimmer not aligned properly

There’s something wrong with how sliders are visualised. I’ve set this item to 4, but as you see, the button is not exactly at 4:

Also, if I refresh the page (F5), the communication between the browser and the item seems to break:


If I then try to change the dimmer to e.g. 5, I get this:

In the log, that triggers:

17:20:01.048 [INFO ] [openhab.event.ItemCommandEvent       ] - Item 'haard_eetkamer_niveau2' received command 4

So openHAB receives the already set command of 4, instead of my new command of 5.

These might be two seperate issues…

Your scale looks a little bit odd. Maybe try adjusting that first.

Note: What you are showing is the MainUI item details page, not a sitemap. The sitemap is a completely different UI so your tag here is not accurate.

Some more information would be helpful:

  • What version of OH are you using? I seem to recall that there were some issues with the slider in the very early OH3 version, but those have long since been fixed.
  • Is this just the default slider that is shown for dimmer items, or have you created a custom default widget for this item?
  • Can you show the item definition itself (the text definition or the yaml from the item code tab - if your version of OH has that)?

Edit:
Also, the screen shot shows that you have State Description metadata for this item. What is that metadata?

I didn’t want to claim this is a sitemap. It’s an item though…

Version 4.2.1 Release build

I created just the item. My plan is to create a widget later though…

The code is rather scarce:

label: Haard eetkamer - Niveau
type: Dimmer
category: temperature
groupNames: []
tags: []

This is the stateDescription:


(so basically: { stateDescription=" "[min="1", max="8"] })

Isn’t that part of the problem? :slight_smile:

I wonder if this is an error in handling the blank step setting in the state description. It should, default to one when there’s no value, but with the conversion to metadata and back again, sometimes there are string related errors. What happens if you explicitly set the step to 1 in the state description?

I tried that, following the same reasoning. No difference…

I see the same phenomenon here too I am on 4.2.1.
But have I had the ‘problem’ since 4.0 or earlier?
image

Based on the information provided, I think this must have something to do with the way the slider tries to debounce values as it’s being manipulated. I also agree that the disconnection is probably a separate problem.

In both cases, at this point I would recommend filing an issue on the UI repository.

I think this is an unrelated problem. The fact that the slider dot is not in the right place is what I referred to earlier as one of the known set of slider issues. It has to do with when and how the f7 library calculates the functional of width of the slider and what might change after that calculation is done. This should have been fixed in all the MainUI versions of the slider. Your image looks like a sitemap. If that’s the case then you would want to file an issue in the UI repository but tag it with [BasinUI] so the maintainers know it’s a sitemap issue.

I’d add that the underlying capability of the device can be a factor. I have heat pump that only works in 0.5 degrees C. When I set the slider to 66 degrees F it settles to 66.2 because that is 19 C. I don’t know what 1 to 8 means in your case, but maybe if it is a stop on a thermostat, there might be a slight adjustment internal to the device to get to an allowable temperature

It’s an item without a link to a channel. So any number should be possible :wink:

1 Like

Like this?
https://github.com/openhab/openhab-webui/issues/2767
and
https://github.com/openhab/openhab-webui/issues/2768

1 Like