Node-red-contrib-openzwave after update failed

Node-red is installed on an RaspberryPi 3+. All works fine, but after an update openzwave failed. So i tried
to unistall it but i doesen't work. I get the message "openzwave-server is in Use". The nodes are gone.
Must i reinstall node-red or what can I do?

Thanks for help.
Wolle

It sounds like there is a configuration node hanging around. I would stat NR in safe mode - from a terminal window use node-red ---safe and then you can use the sidebar Screen Shot 2020-01-27 at 5.56.14 AM
and select the 'unused' tab
Screen Shot 2020-01-27 at 5.56.31 AM
to see if any unused configuratin nodes exist. If so you can delete them and deploy to see if that fixes the issue.

1 Like

Thanks for your answer. I found an unknown node, delete it and deploy.
I have uninstalled openzwave and again installed and get these messages;
27 Jan 14:52:17 - [info] - node-red-contrib-openzwave:zwave-controller : TypeError: require(...).getMac is not a function (line:30)
27 Jan 14:52:17 - [info] - node-red-contrib-openzwave:zwave-in : TypeError: require(...).getMac is not a function (line:30)
27 Jan 14:52:17 - [info] - node-red-contrib-openzwave:zwave-out : TypeError: require(...).getMac is not a function (line:30)
27 Jan 14:56:26 - [info] [debug:d4e182c4.46ceb8]
48.3
7 Jan 15:02:40 - [info] Waiting for missing types to be registered:
27 Jan 15:02:40 - [info] - zwave-controller
27 Jan 15:02:40 - [info] - zwave-in
27 Jan 15:02:40 - [info] - zwave-out

When i add one of these nodes then deploy failed and the flows are stopped.
If the nodes were deleted I can depoy it without error.
So I think the node-red-contrib-openzwave did not work correct or it's my mistake.
Thank's for help.
Wolle

So let me see if I understand.

In your original post you said

So i tried to unistall it but i doesen't work. I get the message "openzwave-server is in Use".

Now you say you uninstalled it and installed it again. How were you successful at uninstalling it?.

Can you export your flow and attach it to a reply (please read this first)

Here is my exported flow.

[{"id":"e3fbe676.81b8a","type":"tab","label":"Wolle's Zimmer","disabled":false,"info":""},{"id":"c0ac8631.d89488","type":"change","z":"e3fbe676.81b8a","name":"Temperature","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number(payload.currState)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":40,"wires":[["99e29603.e343c"]]},{"id":"ae54f0e8.17cfd8","type":"change","z":"e3fbe676.81b8a","name":"Leuchtdichte","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number(payload.currState)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":100,"wires":[["b11fa6c0.29dce"]]},{"id":"33e33d9a.9a09ea","type":"switch","z":"e3fbe676.81b8a","name":"","property":"payload.value.value_id","propertyType":"msg","rules":[{"t":"eq","v":"2-49-1-1","vt":"str"},{"t":"eq","v":"2-49-1-3","vt":"str"},{"t":"eq","v":"2-113-1-10","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":290,"y":80,"wires":[["c0ac8631.d89488"],["ae54f0e8.17cfd8"],["51768908.ee78a"]]},{"id":"51768908.ee78a","type":"change","z":"e3fbe676.81b8a","name":"Alarm","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number(payload.currState)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":160,"wires":[["ee336eb5.3e65b8"]]},{"id":"ee336eb5.3e65b8","type":"ui_gauge","z":"e3fbe676.81b8a","name":"","group":"84dca23b.c94928","order":1,"width":0,"height":0,"gtype":"gage","title":"Alarm","label":"units","format":"{{value}}","min":0,"max":"255","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":650,"y":160,"wires":[]},{"id":"b11fa6c0.29dce","type":"ui_gauge","z":"e3fbe676.81b8a","name":"","group":"61fcec3d.a56d34","order":1,"width":0,"height":0,"gtype":"gage","title":"Leuchtstärke","label":"Lux","format":"{{value}}","min":0,"max":"1500","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":670,"y":100,"wires":[]},{"id":"ec910595.85fe68","type":"ui_template","z":"e3fbe676.81b8a","group":"b57ab2f5.d78308","name":"Clock Toolbar","order":1,"width":0,"height":0,"format":"<script id=\"titleScript\" type=\"text/javascript\">\n    $('#clock').remove();\n    var toolbar = $('.md-toolbar-tools');\n    var div = $('<div/>');\n    var p = $('<p/ id=\"clock\">');\n    \n    $('#titleScript').parent().hide();\n    div.append(p);\n    div[0].style.margin = '5px 5px 5px auto';\n    toolbar.append(div);\n\n    function displayTitle(lh) {\n        p.text(lh); \n    }\n    \n    function upTime() {\n        var d = new Date();\n        p.text(d.toLocaleTimeString('de-AT'));\n    }\n\n    \n\n    // Watch the payload and update the title\n    (function(scope) {\n        scope.$watch('msg.payload', function(data) {\n            displayTitle(data);\n        });\n        setInterval(upTime,1000);\n    })(scope);\n</script>","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":940,"y":40,"wires":[[]]},{"id":"c0d1c372.2588a","type":"mqtt in","z":"e3fbe676.81b8a","name":"","topic":"camera/zerow","qos":"2","datatype":"auto","broker":"eb182e4e.504018","x":130,"y":280,"wires":[["30155774.66eb4"]]},{"id":"30155774.66eb4","type":"base64","z":"e3fbe676.81b8a","name":"","action":"","property":"payload","x":320,"y":280,"wires":[["ba1db2b2.948c4"]]},{"id":"ba1db2b2.948c4","type":"ui_template","z":"e3fbe676.81b8a","group":"78bdb581.8b5864","name":"","order":1,"width":5,"height":4,"format":"<img src=\"data:image/jpeg;base64,{{msg.payload}}\"\n  width='320'\n  height='240'\n  id='img'\n  alt='Getting Image'>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":480,"y":280,"wires":[[]]},{"id":"ccdc6ba2.0534","type":"mosca in","z":"e3fbe676.81b8a","mqtt_port":1883,"mqtt_ws_port":8080,"name":"","username":"","password":"","dburl":"","x":150,"y":340,"wires":[[]]},{"id":"b026c17b.c4359","type":"ui_switch","z":"e3fbe676.81b8a","name":"","label":"on/off","tooltip":"","group":"f3393ead.12475","order":1,"width":4,"height":1,"passthru":true,"decouple":"false","topic":" ","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":310,"y":400,"wires":[["2f59dea5.b99e22"]]},{"id":"2f59dea5.b99e22","type":"function","z":"e3fbe676.81b8a","name":" ","func":"if (msg.payload === true) {\n    msg.topic = {topic: 'switchOn', payload: {\"nodeid\":4, \"cmdclass\":37}}; \n    return msg.topic;\n} else {\n    msg.topic = {topic: 'switchOff', payload: {\"nodeid\":4, \"cmdclass\":37}};\n    return msg.topic;\n}","outputs":1,"noerr":0,"x":630,"y":400,"wires":[["2173f51f.83ef12"]]},{"id":"d44e88f8.0fce8","type":"alexa-home","z":"e3fbe676.81b8a","conf":"67d3f2c.ec17d0c","device":"52640","acknoledge":true,"name":"","topic":"Fernseher","x":130,"y":400,"wires":[["b026c17b.c4359"]]},{"id":"74206aaa.a4c954","type":"switch","z":"e3fbe676.81b8a","name":"","property":"payload.value.value_id","propertyType":"msg","rules":[{"t":"eq","v":"4-50-1-0","vt":"str"},{"t":"eq","v":"4-50-1-8","vt":"str"},{"t":"eq","v":"4-50-1-16","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":290,"y":500,"wires":[["1e4cde5c.795d2a"],["c8d01a2.4c75468"],["1be5a67d.41a48a"]]},{"id":"1e4cde5c.795d2a","type":"change","z":"e3fbe676.81b8a","name":"Energie","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.value.min","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Energie","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":440,"wires":[["c1f36ec1.890958"]]},{"id":"c8d01a2.4c75468","type":"change","z":"e3fbe676.81b8a","name":"Power","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.currState","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Power","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":500,"wires":[["c1f36ec1.890958"]]},{"id":"1be5a67d.41a48a","type":"change","z":"e3fbe676.81b8a","name":"Spannung","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.currState","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"Volt","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":560,"wires":[["c1f36ec1.890958"]]},{"id":"c1f36ec1.890958","type":"ui_chart","z":"e3fbe676.81b8a","name":"","group":"3a5939b2.02f9ee","order":1,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"auto","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":770,"y":500,"wires":[[]]},{"id":"4ac76b25.1c16ac","type":"debug","z":"e3fbe676.81b8a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":460,"y":220,"wires":[]},{"id":"fe15feb4.794eb","type":"alexa-home","z":"e3fbe676.81b8a","conf":"67d3f2c.ec17d0c","device":"","acknoledge":true,"name":"","topic":"Lampe","x":120,"y":640,"wires":[["9cf6d52e.c93018"]]},{"id":"9cf6d52e.c93018","type":"ui_switch","z":"e3fbe676.81b8a","name":"","label":"switch","tooltip":"","group":"2d450a21.0c188e","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":300,"y":640,"wires":[["4068b293.c4c024"]]},{"id":"4068b293.c4c024","type":"function","z":"e3fbe676.81b8a","name":" ","func":"if (msg.payload === true) {\n    msg.topic = {topic: 'switchOn', payload: {\"nodeid\":5, \"cmdclass\":37}}; \n    return msg.topic;\n} else {\n    msg.topic = {topic: 'switchOff', payload: {\"nodeid\":5, \"cmdclass\":37}};\n    return msg.topic;\n}","outputs":1,"noerr":0,"x":550,"y":640,"wires":[["12c13763.38fd79"]]},{"id":"9e51edc2.81afc","type":"comment","z":"e3fbe676.81b8a","name":"Fernseher","info":"","x":760,"y":360,"wires":[]},{"id":"135a2081.f28e97","type":"comment","z":"e3fbe676.81b8a","name":"Tischlampe","info":"","x":750,"y":600,"wires":[]},{"id":"99e29603.e343c","type":"ui_gauge","z":"e3fbe676.81b8a","name":"","group":"15287c1e.c2b33c","order":1,"width":0,"height":0,"gtype":"gage","title":"Temperatur","label":"C","format":"{{value}}","min":0,"max":"40","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":690,"y":40,"wires":[]},{"id":"486aefb7.ec04f","type":"zwave-in","z":"e3fbe676.81b8a","name":"ZWaveStick","controller":"fc4e2052.93a27","x":110,"y":80,"wires":[["33e33d9a.9a09ea","4ac76b25.1c16ac"]]},{"id":"bb3e6418.27f4c8","type":"zwave-in","z":"e3fbe676.81b8a","name":"ZWaveStick","controller":"f39d2590.962398","x":130,"y":500,"wires":[["74206aaa.a4c954"]]},{"id":"2173f51f.83ef12","type":"zwave-out","z":"e3fbe676.81b8a","name":"TV","controller":"fc4e2052.93a27","x":770,"y":400,"wires":[[]]},{"id":"12c13763.38fd79","type":"zwave-out","z":"e3fbe676.81b8a","name":"Lampe","controller":"fc4e2052.93a27","x":750,"y":640,"wires":[[]]},{"id":"84dca23b.c94928","type":"ui_group","z":"","name":"Alarm","tab":"a67299d7.c1fc1","order":3,"disp":true,"width":"6","collapse":false},{"id":"61fcec3d.a56d34","type":"ui_group","z":"","name":"Leuchtstärke","tab":"a67299d7.c1fc1","order":2,"disp":true,"width":"6","collapse":false},{"id":"b57ab2f5.d78308","type":"ui_group","z":"","name":"Date","tab":"a67299d7.c1fc1","order":5,"disp":true,"width":"6","collapse":false},{"id":"eb182e4e.504018","type":"mqtt-broker","z":"","name":"","broker":"localhost","port":"1883","tls":"61e5b33b.4d232c","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"78bdb581.8b5864","type":"ui_group","z":"","name":"Image","tab":"a67299d7.c1fc1","order":4,"disp":true,"width":"5","collapse":false},{"id":"f3393ead.12475","type":"ui_group","z":"","name":"TV","tab":"a67299d7.c1fc1","order":6,"disp":true,"width":"4","collapse":false},{"id":"67d3f2c.ec17d0c","type":"alexa-home-conf","z":"","username":"Wolle"},{"id":"3a5939b2.02f9ee","type":"ui_group","z":"","name":"Energie TV","tab":"a67299d7.c1fc1","order":7,"disp":true,"width":"6","collapse":false},{"id":"2d450a21.0c188e","type":"ui_group","z":"","name":"Tischlampe","tab":"a67299d7.c1fc1","order":8,"disp":true,"width":"4","collapse":false},{"id":"15287c1e.c2b33c","type":"ui_group","z":"","name":"Temperatur","tab":"a67299d7.c1fc1","order":1,"disp":true,"width":"6","collapse":false},{"id":"fc4e2052.93a27","type":"zwave-controller","z":"","port":"/dev/ttyACM0","driverattempts":"3","pollinterval":"10000","allowunreadyupdates":false,"networkkey":"","logging":true},{"id":"f39d2590.962398","type":"zwave-controller","z":"","port":"/dev/ttyACM0","driverattempts":"3","pollinterval":"10000","allowunreadyupdates":false,"networkkey":"","logging":true},{"id":"a67299d7.c1fc1","type":"ui_tab","z":"","name":"Mein Zimmer","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"61e5b33b.4d232c","type":"tls-config","z":"","name":"","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false}]

After deploy I get these messages.
Die Flows wurden aufgrund fehlender Nodetypen gestoppt.

zwave-controller
zwave-in
zwave-out

Hope this helps.

Wolle

Did you install the prerequisites?

This package has one sole dependency: node-openzwave-shared. This is a fork of node-openzwave that links to OpenZWave as a shared library , therefore you need to have the OpenZWave library installed in your system beforehand , using the operating system's package manager, or by compiling OpenZWave yourself.

So, first make sure you have the OpenZWave library installed on your system, as outlined in the 'preprequisites' section on openzwave-shared README,

Node openzwave -shared was installed. I found the solution in the forum. In 10-zwave.js I have line 30-34 by
var gm = require('getmac'); UUIDPREFIX = gm.default().replace(/:/gi, ''); replaced.
Everything works again.

Thanks!

Probably worth reporting as an issue to the node owner on github - as it does seem to be being patched recently.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.