openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Slider for dimmer in main UI breaks with state description set

Open vguna opened this issue 1 year ago • 0 comments

Expected Behavior

When a state description is set on a dimmer item (my example: SCALE(dimmer.scale):%s) it should be working or show an error what is wrong with the state description. As a user I'm not notified anywhere (main UI locations, item config page) what might be wrong with the state description.

Current Behavior

After migration from 3.4.4 to 4.1 with a fresh install and 3.4.4 openhab-config import it seems the slider on the main UI acts weird. Sometimes after one click it stops working in a sense that the light is not following anymore. Looking at the http traffic shows there is no POST send anymore to OH from the UI. Somtimes it survives multiple clicks but finally also dies again. The slider itself moves, but no POST is send anymore

After some debugging it turned out, that the state description is the root cause. If I remove it completely, it's working as expected.

Details about my setup are described in the link above.

Possible Solution

Remove state description from item

Steps to Reproduce (for Bugs)

Add the above state description to a dimmer item and try to change it.

Context

The slider worked with the state description with 3.4.4 but stopped with 4.1.

Your Environment

4.1 on a raspberry pi 4 8GB fresh install via openhabian and import of 3.4.4 OH configs.

vguna avatar Jan 06 '24 00:01 vguna