MQTT Discovery based integration? #287
-
Can we use a MQTT broker in parallel with Node-Red? Similar to the Home Assistant integration that uses MQTT discovery rather than web-socket connection? I'd like to have the tight integration that node-red-contrib-zwave-js offers but I also want other software interact with the z-wave network and use non-zwave networks with Node-Red, such as with zigbee2mqtt. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @tomdavidson
This module itself, isn't equipped with MQTT features, it's not something that I plan on adding. But there is nothing stopping you using MQTT IN/OUT nodes to alter the state of Z-Wave Network running in Node RED, or for the Z-Wave Network, to forward events via MQTT Example You will need to maybe format the the payloads, before forwarding/processing |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick reply.
Using Node-Red as the MQTT proxy does seem simple (to one that only has 1/2 a clue such as I) but I am worried about "re-inventing" zwave-js-ui. The other option I was looking at is zwave-js-ui (and zigbee2mqqt) in parallel to Node-Red. Do you have any other insights contrasting the two paths that you can share? |
Beta Was this translation helpful? Give feedback.
-
No - I store all network data in
ZWave JS is implemented in various shapes.
All implementations provide the same functionality - just in different ways. My advice is - if you depend heavily on MQTT = Both offer UI's and all the same API - again just in different forms |
Beta Was this translation helpful? Give feedback.
No -
node-red-contrib-zwave-js
uses the same driver as all other Z-Wave JS implementations, meaning all network cache data is written to disc and restored when ever the runtime is started up again (nothing needs to get re-interviewed after a restart) - provided Node RED is using a writable file system. - and of course , device interviews are complete.I store all network data in
~/.node-red/zwave-js-cache
on a normal Node RED installzwave-js-ui
- is an MQTT implementation of the same driver.zwave-js-ui
is @robertsLando's baby - we are both …