Hello
a dimmer Item with min / max value 0 / 100 publishes values from 0 to 100…thats ok.
If min max values are different from 0 / 100 it looks like this:
The Min - Max controls how the 0-100 that is stored by the Dimmer Item are translated to the range you defined. So let’s take your 0-10 example. That means I would expect the Dimmer’s values between 0-9 to be 0, values between 10-19 to be 1 and so on.
So yes, if you set the min and max to be 0-10, and you only changed the Dimmer Item to be a value between 0 and 10 you would only see 0 until you get to 10 where it becomes 1.
The Dimmer Item will always store a value between 0 and 100. What happens is that 0-100 gets translated to a number between the defined min and max before being sent. You are not constraining the values that the Dimmer Item can hold. You are defining a formula that is use to transform the Dimmer’s value to be within the range expected by the device.
“…formatBeforePublish: "%s"....Don’t think you want that, it just might be interfering with scaling.”
Thats not a problem, the device also needs a prefix which works.
The device undestand the command but how to send the right values (eg 6, 7,8…14, 15,16) thats my problem.
This is starting to look like an XY Problem. What are you controlling that only accepts values between 6 and 16?
As I tried to explain, those values will not change how the Dimmer Item behaves. It will always store a value between 0 and 100. Setting the min and max on the channel is not going to restrict the Item to only be between 6 and 16. What it will do is do the math (see above) to convert from those 100 values to a value between 6 and 16.
You probably want a String Item or a Number Item and using a selection on the sitemap or something like that.