Anders Alfredsson

Results comments of Anders Alfredsson

Actually, after reading a [discussion](https://physics.stackexchange.com/questions/132720/how-do-you-add-temperatures) linked from a previous [issue](https://github.com/unitsofmeasurement/indriya/issues/321) this seems to be the correct way to handle it when thinking about the physics (a temperature _difference_ of 2...

Another perhaps more surprising difference is this: Rule: ```java var q1 = 50|'°F'; var q2 = 50|'m'; var q3 = new QuantityType('2'); var bd = new java.math.BigDecimal('2'); logWarn('test', "q1: %s...

Thanks @Rossko57 for the reply, after having read som discussions (like the one I linked to above) I realize that this is the correct way of handling temperature calculations. However,...

Ah, that would be a problem of course. But wouldn't it be better to at least use OH's own [LocaleService](https://github.com/openhab/openhab-core/blob/cabb3f73150d13f44d647f46af8362e396684b92/bundles/org.openhab.core.io.rest/src/main/java/org/openhab/core/io/rest/LocaleService.java) to get the locale that the user configured instead of...

Submitted a PR to use the locale configured in OH, so at least one doesn't have to configure the language in three different places

I agree with @spacemanspiff2007, this would make visualization using e.g. grafana a real pain. Another example: the SMHI binding (and perhaps other weather bindings?) report precipitation intensity in mm/h, which...

For the simple solution, I can provide a PR, but I think it would be good to discuss how to prevent this from happening in the future.

> What do you consider as the "standard DTO class"? This one: https://github.com/openhab/openhab-core/blob/main/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ChannelTypeDTO.java If I understand correctly, it's what the REST API uses, so should be able to be used...

Then I'll submit a PR that just updates the AbstractStorageBasedTypeProvider.