Page 1 of 1

MQTT to write in Humidity device

Posted: Friday 03 December 2021 7:54
by Allras82
Hi all

Im having problem in getting a value som node-red into a domoticz humidity dummy device.
I can make it work with all other types of device types, but not the humidity.

Any one that have some experience here.
Is there any specific restrictions for the Humidity device.

Right now i'm using a procenter device, but i dont like the icon for that purpose.

Im at latest stabile at a RPI3
Node-red at the same machine trough MQTT

br
AR

Re: MQTT to write in Humidity device

Posted: Friday 03 December 2021 9:17
by waltervl
Check this page, someone checked it all out: https://piandmore.wordpress.com/2019/02 ... -domoticz/

Re: MQTT to write in Humidity device

Posted: Friday 03 December 2021 9:18
by FireWizard
Hi,

Can you publish the MQTT command you try to send to the virtual humidity sensor in Domoticz?

Regards

Re: MQTT to write in Humidity device

Posted: Tuesday 07 December 2021 19:52
by Allras82
Hi,

Im sending this:
{"command":"udevice","idx":30057,"svalue":0,"nvalue":40}
to topic domoticz/in

and domoticz log: 2021-12-07 19:52:50.495 Error: MQTT: MQTT: Invalid data received!

Re: MQTT to write in Humidity device

Posted: Tuesday 07 December 2021 22:04
by FireWizard
Hi, @Allras82,

For all commands the svalue should be a string, while the nvalue should be a number.
Change "svalue":0 into "svalue":"0".

Regards

Re: MQTT to write in Humidity device

Posted: Tuesday 07 December 2021 22:11
by Allras82
Ahhh...

Thanks a lot. That was it😀