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?
MQTT not working with zwave devices
Moderator: leecollings
- 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
Hi, @naps1saps
See: viewtopic.php?f=6&t=31711&hilit=mqtt&start=20
Your setting in "Prevent Loop" should be "False".
Regards
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
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.
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)
- 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
Have you tried it as described in the WiKi?: https://www.domoticz.com/wiki/MQTT#Send ... ch_Command
Jos
Code: Select all
{"command": "switchlight", "idx": 92, "switchcmd": "On" }
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Re: MQTT not working with zwave devices
Wish I would have found that last week when I was searching. Thanks.
Who is online
Users browsing this forum: No registered users and 1 guest