I’d like to format a number (total amount of water in liters) in Main UI as 7.301 Liter (as in: 7 thousand 145 liter). Currently it’s shown as 7,301 Liter.
I’m using a stateDescription to format it (currently: %, .0f Liter). Changing it to %. .0f Liter instead results in gibberish.
Question is: What do I have to do?
My local raspi is set (under raspi-config) to the profile de_DE.UTF-8
Changing the openHAB Regional Setting to “German” (though I’d like to have openHAB in English) doesn’t make a difference.
In the karaf-console, as mentioned here, the reading user.country is the one I have to change as described in the post, if I want to keep openHAB’s language as “English” and the number formating with “.” as thousand separator. Correct?
Thanks for all the hints. I managed to solve the problem myself based on the hints above.
Fun fact: My case illustrates how important it is to state the overall setting in which you’re operating in when opening a new post here in this forum: Since I’m running on docker (but forgot to mention this), raspi-config doesn’t even play a role, since this changes the Raspbian-variables, and the ones that are relevant for openHAB are (in my case) the ones of the docker container and thus defined in my docker-compose.yml. As a result the problem is also fairly easy to fix.
Here’s what I did to solve the problem:
Access terminal of the openHAB docker container via docker exec -t -i openhab /bin/bash
Typing locale proves that the reason why “,” is used as a thousand separator in openHAB is because all variables of the openHAB container are set to default (here: ```
en_US.UTF-8):