Page 1 of 1

MQTT not working with zwave devices

Posted: Saturday 17 October 2020 10:59
by naps1saps
I got my system configured with an MQTT broker and installed Node-Red to interface with Google Home. It's all working with Domoticz.
I created a node in Node-Red to turn on a zwave switch via MQTT and Domoticz shows the switch turning on and off in the interface but the zwave commands are not sent to the device to actually turn it on/off.

Is this a bug? How do I get this to work?

Re: MQTT not working with zwave devices

Posted: Saturday 17 October 2020 12:26
by FireWizard
Hi, @naps1saps

See: viewtopic.php?f=6&t=31711&hilit=mqtt&start=20

Your setting in "Prevent Loop" should be "False".

Regards

Re: MQTT not working with zwave devices

Posted: Saturday 17 October 2020 21:00
by naps1saps
Yeah I saw that and tried it already and I get the same result that the interface turns on/off but no zwave command is sent. I still have it set to false.

LOG: you can see no zwave command is sent after the MQTT is received. I manually flipped the switch afterwards to show what happens in the log.

Code: Select all

2020-10-17 11:55:32.450 MQTT: Topic: domoticz/in, Message: {"idx":92,"nvalue":1}
2020-10-17 11:55:47.945 OpenZWave: Domoticz has send a Switch command! NodeID: 3 (0x03)
2020-10-17 11:55:47.972 (ZWave) Light/Switch (Kitchen Light)
2020-10-17 11:55:47.944 Status: User: Admin initiated a switch command (92/Kitchen Light/Off)
2020-10-17 11:55:48.981 OpenZWave: Domoticz has send a Switch command! NodeID: 3 (0x03)
2020-10-17 11:55:48.980 Status: User: Admin initiated a switch command (92/Kitchen Light/On)
2020-10-17 11:55:49.000 (ZWave) Light/Switch (Kitchen Light)

Re: MQTT not working with zwave devices

Posted: Wednesday 21 October 2020 11:34
by jvdz
Have you tried it as described in the WiKi?: https://www.domoticz.com/wiki/MQTT#Send ... ch_Command

Code: Select all

{"command": "switchlight", "idx": 92, "switchcmd": "On" }
Jos

Re: MQTT not working with zwave devices

Posted: Wednesday 21 October 2020 17:39
by naps1saps
Wish I would have found that last week when I was searching. Thanks.