Page 1 of 1

DS18b20 Domoticz and MQTT

Posted: 13 Sep 2021, 20:52
by Kokko74
Hello all.
I have problem with combination DS18b20 and Domoticz MQTT.
Domoticz log tell, Error: MQTT Kasvi: MQTT: Invalid data received!
I have other unit with DHT11 and that working.
I take log from node red and messages have failure, "{"idx":89,"RSSI":10,"nvalue":0,"svalue":28.94}" , this string is wrong, right message must be "{"idx":89,"RSSI":6,"nvalue":0,"svalue":"28.94"}"
How I can solve this, bug?

My unit data.
Firmware
Build:⋄ 20114 - Mega
System Libraries:⋄ ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄ pygit2_not_installed
Plugin Count:⋄ 47 [Normal]
Build Origin: GitHub Actions
Build Time:⋄ Jun 15 2021 10:24:29
Binary Filename:⋄ ESP_Easy_mega_20210615_normal_ESP8266_1M
Build Platform:⋄ Linux-5.4.0-54-generic-x86_64-with-glibc2.29
Git HEAD:⋄ pygit2_not_installed

Re: DS18b20 Domoticz and MQTT

Posted: 14 Sep 2021, 09:54
by TD-er
Ah, I get it, the "svalue" is supposed to be a string, but since its value is a numerical value it will drop the quotes.

I can imagine the difference between those is that the DHT11 does send 2 values, while the Dallas only sends one.
So when it is converted to JSON, it figures it has a value which can be considered a numerical and thus does not need quotes.

I will make a fix for it.

Re: DS18b20 Domoticz and MQTT

Posted: 14 Sep 2021, 10:54
by TD-er

Re: DS18b20 Domoticz and MQTT

Posted: 15 Sep 2021, 17:30
by Kokko74
Thanks, I was old firmware. Unit working new one.