iobroker-community-adapters / ioBroker.openhab

Connect ioBroker with openHAB
MIT License
13 stars 3 forks source link

Incorrect handling of number locales #47

Open jaghatei opened 3 years ago

jaghatei commented 3 years ago

When sending number values like temperatures ( i.e. "20.1 C") the value is correctly updated in iobroker openhab item. But if locales differ in iobroker and OH the binding does not convert properly. i.e. 20.1 in iobroker is not transcoded to 20,1 for German locale before sending to OH. Values without decimal places like "20" are working. Effect: OH is ignorring the value change in case the transported number has decimal places, but iobroker shows new value as accepted. There is no error in iobroker nor in OH logfiles.

The node-red-contrib-openhab3 node does not have this problem and is transcoding values with decimal places correctly when sending to OH. So the issue must be within ioBroker.openhab.