MQTT not working with zwave devices

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
naps1saps
Posts: 9
Joined: Monday 16 July 2018 3:44
Target OS: Windows
Domoticz version:
Contact:

MQTT not working with zwave devices

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

Re: MQTT not working with zwave devices

Post by FireWizard »

Hi, @naps1saps

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

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

Regards
naps1saps
Posts: 9
Joined: Monday 16 July 2018 3:44
Target OS: Windows
Domoticz version:
Contact:

Re: MQTT not working with zwave devices

Post 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)
User avatar
jvdz
Posts: 2329
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: MQTT not working with zwave devices

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
naps1saps
Posts: 9
Joined: Monday 16 July 2018 3:44
Target OS: Windows
Domoticz version:
Contact:

Re: MQTT not working with zwave devices

Post by naps1saps »

Wish I would have found that last week when I was searching. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest