Sitemap Input with comma values

  • Platform information:
    • Hardware: QNAP Docker
    • openHAB version: 5.1.1
    • German keyboard

I created a simple item and an accoring sitemap input field:

Item:

Number:Volume WaterMeter_Setup “Water Meter Setup [%.3f m³]”

Sitemap:

Input item=WaterMeter_Setup inputHint=“number”

When I enter a value with 2 comma values (for example 380,29), it’s working.

But if I enter a value with 3 comma values (for example 380,291), then the value is taken as 380291,000.

Do you have an idea if my configuration is wrong or if this is a bug (what it looks like for me)?

Well, it is kind of both. The input box tries its best at interpreting dot and comma, but doesn’t know the international format you are operating in. So it does some guessing. If you write 380,2910 it will work again I believe. The alternative would have been to always have to use dot as a decimal separator.

You are right! With 4 values after the comma it’s working again - for me a sufficient solution.
Theoretically in german, there’s no other way to interpret the comma, but I understand, that it’s not easy to make it work international for all standards.