DS18b20 Domoticz and MQTT

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Kokko74
New user
Posts: 2
Joined: 13 Sep 2021, 20:41

DS18b20 Domoticz and MQTT

#1 Post by Kokko74 » 13 Sep 2021, 20:52

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

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DS18b20 Domoticz and MQTT

#2 Post by TD-er » 14 Sep 2021, 09:54

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.

TD-er
Core team member
Posts: 8642
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DS18b20 Domoticz and MQTT

#3 Post by TD-er » 14 Sep 2021, 10:54


Kokko74
New user
Posts: 2
Joined: 13 Sep 2021, 20:41

Re: DS18b20 Domoticz and MQTT

#4 Post by Kokko74 » 15 Sep 2021, 17:30

Thanks, I was old firmware. Unit working new one.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 21 guests