MQTT to write in Humidity device

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
Allras82
Posts: 20
Joined: Thursday 26 October 2017 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

MQTT to write in Humidity device

Post 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
User avatar
waltervl
Posts: 5852
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT to write in Humidity device

Post by waltervl »

Check this page, someone checked it all out: https://piandmore.wordpress.com/2019/02 ... -domoticz/
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
FireWizard
Posts: 1892
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: MQTT to write in Humidity device

Post by FireWizard »

Hi,

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

Regards
Allras82
Posts: 20
Joined: Thursday 26 October 2017 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MQTT to write in Humidity device

Post 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!
User avatar
FireWizard
Posts: 1892
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: MQTT to write in Humidity device

Post 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
Allras82
Posts: 20
Joined: Thursday 26 October 2017 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MQTT to write in Humidity device

Post by Allras82 »

Ahhh...

Thanks a lot. That was it😀
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest