Add Zwave node
#Requirements
- node-red-contrib-openzwave nodes
- openzwavev > 1.3 Since OZW 1.3 the
BeginControllerCommand command is deprecated. This flow uses the new API with the
addNode` command. Find a list of all management commands here )
#Configuration
Set your zwave controller node to each zwave nodes
Configure zwave message filter node if you only want to certain messages.
Set the log file location. Defaults to /var/tmp/zwave/zwave.log
The inject node is used to send the addNode command. This command uses 1 parameter. Set it to true of false if your device requires Security. Read the documentation linked above or consult your devices manual.
Add your device while the controller is waiting. Power cycling or pressing a button 3 times (e.g. Fibaro Wallplug).
Any zwave message is written to debug and a file. Clear the file between each use as it keeps appending new mesages.
[{"id":"cab36242.710898","type":"zwave-in","z":"66319146.7c706","name":"Listen","controller":"","x":497,"y":400,"wires":[["c7b8d6b8.bcb98"]]},{"id":"4842cdfa.bf8bcc","type":"zwave-out","z":"66319146.7c706","name":"","controller":"","x":738,"y":285,"wires":[["29bd088d.e60d8","dfb22a42.24bc08"]]},{"id":"9cb98c3c.082298","type":"inject","z":"66319146.7c706","name":"Add Node","topic":"addNode","payload":"{\"args\": [false]}","payloadType":"str","repeat":"","crontab":"","once":false,"x":512,"y":286,"wires":[["4842cdfa.bf8bcc"]]},{"id":"29bd088d.e60d8","type":"debug","z":"66319146.7c706","name":"zwave log","active":true,"console":"false","complete":"true","x":952,"y":401,"wires":[]},{"id":"c7b8d6b8.bcb98","type":"function","z":"66319146.7c706","name":"Process/Filter","func":"// Insert your own filtering here.\nreturn msg;","outputs":1,"noerr":0,"x":712,"y":399,"wires":[["29bd088d.e60d8","dfb22a42.24bc08"]]},{"id":"dfb22a42.24bc08","type":"file","z":"66319146.7c706","name":"","filename":"var/tmp/zwave/zwave.log","appendNewline":true,"createDir":true,"overwriteFile":"false","x":1003,"y":489,"wires":[]}]