Hello
I have problems with json messages with NaN values in numbers. openHAB is simply ignoring them and not actualizing items.
I have a MQTT thing with a channel type Number configured with this jsonpath transform
This MQTT payload
{“Time”:“2020-02-17T15:12:02”,“AM2301”:{“Temperature”:2,“Humidity”:null},“TempUnit”:“C”}
will produce the following log
2020-02-17 16:48:06.312 [vent.ItemStateChangedEvent] - BadzimmerTemp changed from 26.6 °C to 2.0 °C
Humidity item is not updated, and no warning is thrown. I would spect a NULL to show in the item.
But this payload works
{“Time”:“2020-02-17T15:12:02”,“AM2301”:{“Temperature”:2,“Humidity”:4},“TempUnit”:“C”}’
2020-02-17 16:51:01.779 [vent.ItemStateChangedEvent] - BadzimmerTemp changed from 26.6 °C to 2.0 °C
2020-02-17 16:51:01.779 [vent.ItemStateChangedEvent] - BadzimmerHum changed from 31.9 to 4
Is there an alternate transformation to convert null to NULL or NaN?
My setup is
openHAB version 2.5.1-2 (deb package)
Debian 10 on LXC container
Mosquitto 1.5.7-1+deb10u
MQTT binding binding-mqtt - 2.5.1
Thank you for your help