I am interacting with OpenHAB through a self-developed AngularJS web application using the REST API.
So far so good, all works. However I do have one annoying behavior where I am not sure if I am the problem, or if the REST API has a specific behavior: value formatting.
If I retrieve e.g. Netatmo pressure data OpenHAB is sending a string incl unit of measure - hPa in this case: 1013.9000244140625 hPa
I would prefer 1013,900…. (using my local / regional formatting with , vs . and not having the string).
Is there a way to simply get the plain number values (especially for decimals) w/o unit or any other string elements? Would love to avoid having to „clean & transform“ any incoming string on AngularJS side to use the numbers for some calculations or conditional formatting…
If not it is not a big deal but wanted to consult with you prior to writing more code for something that might just be a mistake of use on my end.