# Node Red openzwave problems

**URL:** <https://discourse.nodered.org/t/node-red-openzwave-problems/19716>\
**Category:** General\
**Created:** [29 December 2019 20:35 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716 "2019-12-29T20:35:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maximus1](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Maximus1](https://discourse.nodered.org/u/Maximus1)\
**Post date:** [29 December 2019 20:35 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/1 "2019-12-29T20:35:14Z")

</div>

hi there.  
my Pi3 has raspian running and i work on Node red V 0.20.8  
this machine is running since months and now i bought a Z-Wave Stick (Everspring Z-Wave+ USB-Controller).  
I tried to install "node-red-contrib-openzwave-am" and its depencies. when "node-red-contrib-openzwave-am" is installed Node Red crashes and can´t start because of openzwave.

somewhere on the net somebody said delete everything with "openzwave" and reinstall everything.  
i did what he/she told in the thread but openzwave-shared can´t be installed.

errormessage tells me sonething is missing (maybe something i deleted)

```auto
/usr/bin/ld: -lopenzwave kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make: *** [openzwave_shared.target.mk:165: Release/obj.target/openzwave_shared.node] Fehler 1
make: Verzeichnis „/home/pi/.node-red/node_modules/openzwave-shared/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.58-v7+
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/openzwave-shared
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! openzwave-shared@1.5.10 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openzwave-shared@1.5.10 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-12-29T20_29_38_818Z-debug.log

```

now i have:  
Node Red V 0.20.8  
openzwave (1.5+ds-6). (/usr/lib/arm-linux-gnueabihf/libopenzwave.so.1.5)

i don´t have:  
openzwave-shared  
node-red-contrib-openzwave-am

please can someone help me?

---

<div class="post-metadata">

**Author:** ![ncherry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ncherry/32/27_2.png) [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Post date:** [31 December 2019 16:02 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/2 "2019-12-31T16:02:32Z")

</div>

I haven't installed openzwave so I don't know

```auto
/ usr / bin / ld: -lopenzwave kann nicht gefunden werden (could not be found)

```

That's saying the openzwave library file is missing which seems to agree with your statement:

> i don´t have:  
> **openzwave-shared**  
> node-red-contrib-openzwave-am

I think it would be best if you installed openzwave ( node-openzwave-shared and it's dependencies) and made sure it worked then installed the node-red nodes.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [31 December 2019 17:36 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/3 "2019-12-31T17:36:33Z")

</div>

I installed `node-red-contrib-openzwave-am` via manage palette, restarted node-red and it was working.

@Maximus1 - try upgrading node, as you are running 10.15

---

<div class="post-metadata">

**Author:** ![Maximus1](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Maximus1](https://discourse.nodered.org/u/Maximus1)\
**Post date:** [4 January 2020 13:58 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/4 "2020-01-04T13:58:01Z")

</div>

Now i got everything installed and get informations from nodes. While fetching data the pi 3+ gets laggy.  
How do i store the data and how do i set temperatures on the thermostats?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [4 January 2020 14:25 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/5 "2020-01-04T14:25:13Z")

</div>

In this topic I have given an example

> [@Node-red-contrib-openzwave-am](https://discourse.nodered.org/t/node-red-contrib-openzwave-am/19820):
>
> I am running node-red-contrib-openzwave-am and it works ok. Now I want to set parameters of z-wave components by using the full OpenZWave API. If I call requestAllConfigParams nothing happens. However getNodeStatistics works because the response comes from the controller I suppose. Setting parameters with setConfigParam seems not to work. Has anybody setting parameters runing? Any help very much appreciated.

---

<div class="post-metadata">

**Author:** ![Maximus1](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Maximus1](https://discourse.nodered.org/u/Maximus1)\
**Post date:** [5 January 2020 14:12 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/6 "2020-01-05T14:12:02Z")

</div>

Dont i need to include the nodes?  
How do i do this?

---

<div class="post-metadata">

**Author:** ![Maximus1](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Maximus1](https://discourse.nodered.org/u/Maximus1)\
**Post date:** [6 January 2020 19:56 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/7 "2020-01-06T19:56:52Z")

</div>

i got it to work with [this Flow](https://flows.nodered.org/flow/41ae75dbfbe6465d5cf40248e2500e0a) but it is not womans compatible. so i need something better looking.

i tried your example but i think i did not understand the whole thing. when i try to send a command to a node nothing happes or i get json errors in the debug panel.

```auto
[{"id":"eb9e5ec9.20542","type":"zwave-out","z":"42de9a37.0c6184","name":"write","controller":"e3505a4b.c72c38","x":750,"y":200,"wires":[["11a8b04a.9eaa1"]]},{"id":"95879a83.da4d08","type":"inject","z":"42de9a37.0c6184","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":340,"y":200,"wires":[["931783da.89d9f"]]},{"id":"931783da.89d9f","type":"template","z":"42de9a37.0c6184","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"plain","template":"nodeid: 3,cmdclass: 67,cmdidx: 1,value:\"24\"","output":"str","x":540,"y":200,"wires":[["eb9e5ec9.20542"]]},{"id":"11a8b04a.9eaa1","type":"debug","z":"42de9a37.0c6184","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":910,"y":200,"wires":[]},{"id":"e3505a4b.c72c38","type":"zwave-controller","z":"","port":"/dev/serial/by-id/usb-0658_0200-if00","driverattempts":"3","pollinterval":"10000","allowunreadyupdates":false,"networkkey":"","logging":"full"}]

```

can you tell me where my mistake is?  
here is my ozw config for node 3

```auto
<CommandClass id="67" name="COMMAND_CLASS_THERMOSTAT_SETPOINT">
				<Compatibility>
					<Base>0</Base>
					<OverridePrecision>2</OverridePrecision>
				</Compatibility>
				<State>
					<CCVersion>2</CCVersion>
					<InNif>true</InNif>
					<StaticRequests>0</StaticRequests>
				</State>
				<Instance index="1" />
				<Value type="decimal" genre="user" instance="1" index="1" label="Heating 1" units="C" read_only="false" write_only="false" verify_changes="false" poll_intensity="0" min="0" max="0" value="20.50">
					<Help>Set the Thermostat Setpoint Heating 1</Help>
				</Value>
			</CommandClass>

```

my payload from node red.

```auto
{"nodeid":3,"cmdclass":67,"cmdidx":1,"instance":1,"oldState":"20.00","currState":"20.00","label":"Heating 1","units":"C","value":{"value_id":"3-67-1-1","node_id":3,"class_id":67,"type":"decimal","genre":"user","instance":1,"index":1,"label":"Heating 1","units":"C","help":"Set the Thermostat Setpoint Heating 1","read_only":false,"write_only":false,"min":0,"max":0,"is_polled":false,"value":"20.00"},"uuid":"b827ebea682a-0xfc01a48e-3"}

```

---

<div class="post-metadata">

**Author:** ![Maximus1](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Maximus1](https://discourse.nodered.org/u/Maximus1)\
**Post date:** [8 January 2020 21:28 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/8 "2020-01-08T21:28:34Z")

</div>

after some headache i finaly got everything to work.

here is the core of my flow. there are some links to other tabs with controls. ignore or delete them if you use my flow.

[Pastebin link](https://pastebin.com/4THfRAvJ)

---

<div class="post-metadata">

**Author:** ![u20p17](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/u20p17/32/41780_2.png) [@u20p17](https://discourse.nodered.org/u/u20p17)\
**Post date:** [15 May 2021 07:13 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/9 "2021-05-15T07:13:22Z")

</div>

@Maximus1 : Thank you for sharung your flow! I took the one you published [My Z-Wave heating solution](https://discourse.nodered.org/t/my-z-wave-heating-solution/28322) . I use an aeotec z-stick gen5 stick with an raspbi 4 and node red. How can I find out the right ids for my Devolo / Danfoss thermostats and do I have to add/pair them somewhere?

And have you already implemented something from you to do list from the other thread which you might share with me too?

Thanks!

BR

---

<div class="post-metadata">

**Author:** ![Maximus1](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Maximus1](https://discourse.nodered.org/u/Maximus1)\
**Post date:** [21 May 2021 21:11 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/10 "2021-05-21T21:11:12Z")

</div>

Hi, after long time with several errors i decided to kick that shit in a trashcan.  
When it works, it works flawless but beware of that day something brake.  
until there is no real support für devolo heaters and/or home control i can not recomend integration into node red.  
There are so many points you can/will fail, but if you realy want send me your E-Mail and i send you a Programm to pair your heaters with your stick, or add your stick to the home control network.

To be clear. On the hardware side everything will work flawless until you need new batteies.  
New batteries = huge problems with pairing and openzwave/node red/flows.

My best tip to you: use alexa with your home control, add the stick as a repeater and hope it will work for a long time.  
My second best tip: put that devolo shit into a trashcan and NEVER try to integrate openzwave in your node red.

---

<div class="post-metadata">

**Author:** ![u20p17](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/u20p17/32/41780_2.png) [@u20p17](https://discourse.nodered.org/u/u20p17)\
**Post date:** [22 May 2021 19:36 UTC](https://discourse.nodered.org/t/node-red-openzwave-problems/19716/11 "2021-05-22T19:36:36Z")

</div>

Thanks for your answer! I now used home assistant for the communication with my zwave thermostats and just want to do the ‚managment‘ of them in node red (boost-function, timeplan, open window recognisation…)… for this I am using z-wave.js in home assistant… maybe i could use some parts of your old flow for the management stuff? Would be nice if you could share it with me 🙂

Up to now the communication to the thermostats seems to work quite reliable - maybe this changes after some time - lets see 😉
