# \[ANNOUNCE\] node-red-contrib-zwave-js 6.2.0

**URL:** <https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123>\
**Category:** Share Your Nodes\
**Created:** [12 October 2021 09:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123 "2021-10-12T09:27:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [12 October 2021 09:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/1 "2021-10-12T09:27:58Z")

</div>

[node-red-contrib-zwave-js](https://flows.nodered.org/node/node-red-contrib-zwave-js) 6.2.0 released.

**New Features**

- Added a new **cmd-factory** node, that allows to construct commands with little to no knowledge in the required format
- Added power source icon and battery level in the UI node list
- Added **powerSource** property to the **NODE\_LIST** response.
- Device-Nodes now have the ability to receive isolated responses to **getValue**

**Changes**

- Bump serialport package.
- Bump zwave-js
- The node status on the UI, has been updated to make use of icons, as opposed to text
- A Complete overhaul on Help/guide material for each node
- **Data Mode** has been renamed to **Network Mode** on the device node

**Internal Changes**

- Improvements to driver event sanitization routines
- Security enhancements to the HTTP API
- Moved all HTTP API endpoints to the ui/server.js module
- The **serialport** package is no longer forcibly compiled, and is left for serialport to decide  
if compilation is necessary.

**Fixes**

- Fixed a potential issuse, if the node-red admin ui path is set to a custom value.

Enjoy!

---

<div class="post-metadata">

**Author:** ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Post date:** [17 October 2021 13:23 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/2 "2021-10-17T13:23:07Z")

</div>

Hi Marcus,

does your node-red-contrib-zwave-js 6.2.0 run with Aoetec Z-Pi 7 or only with Aoetec usb stick 7?

Hannes

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [17 October 2021 13:51 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/3 "2021-10-17T13:51:14Z")

</div>

Hi @juntiedt ,

It will run on any zwave module that is compliant with the Z-wave serial API.

i.e : It should do 😉

---

<div class="post-metadata">

**Author:** ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Post date:** [17 October 2021 14:41 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/4 "2021-10-17T14:41:41Z")

</div>

perfect!  
thanks

---

<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:** [17 October 2021 14:48 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/5 "2021-10-17T14:48:37Z")

</div>

When i set temperature offset to -6, it updates to -5, is this correct ? _edit_ just checked, it subtracts +1

![Screenshot 2021-10-17 at 16.46.06](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c0fd86375e2759e3325095312f03cc25152da86.jpeg)

Also the battery indicator does not update when one replaces batteries, when interviewing node, it says 100% but icon in controller is not updated

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [17 October 2021 14:55 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/6 "2021-10-17T14:55:50Z")

</div>

Hi @bakman2,

The Battery in the UI is refreshed when opening up NR - it's not listening for events in real time,  
I assumed NR isn't going to be kept open for long periods - I could look to make this listen for 'active' battery updates if necessary.

as for -5 assuming its configuration value - the device might be rounding?  
does the manual lend a clue to anything?

---

<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:** [17 October 2021 15:10 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/7 "2021-10-17T15:10:30Z")

</div>

> as for -5 assuming its configuration value - the device might be rounding?

i dont think so, when i set -7, it sets -6.  
when i set -10, it sets -9 etc

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [17 October 2021 15:15 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/8 "2021-10-17T15:15:55Z")

</div>

Ok,

Do you mind doing this:  
and let me know what value you get back?

```auto
let Message = {
    payload: {
        mode: "CCAPI",
        node: ##,
        cc: "Configuration",
        method: "get",
        params: [8] 
    }
}
return Message

```

---

<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:** [17 October 2021 15:28 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/9 "2021-10-17T15:28:59Z")

</div>

I don't know what is happening exactly.

Example; offset was set to -20, I set it to -12, this is the output:

 ![Screenshot 2021-10-17 at 17.26.51](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/5/25930e67e11f36e0584f1082a50156f3d19ad87c.jpeg)

So the prevValue is not correct as it should be -20.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [17 October 2021 15:46 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/10 "2021-10-17T15:46:44Z")

</div>

Thanks

Last test if you don't mind ?  
(note: you could do this with CMD-Factory - I just prefer doing it manually)

```auto
let Message = {
    payload: {
        mode: "CCAPI",
        node: ##,
        cc: "Configuration",
        method: "set",
        forceUpdate: {
             property: 8
        },
        params: [8,<desired value>,1] 
    }
}
return Message

```

---

<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:** [17 October 2021 16:21 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/11 "2021-10-17T16:21:04Z")

</div>

Then it also missed 1

 ![Screenshot 2021-10-17 at 18.21.47](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/f/ffe4d85283ceec94913d332e4919ae04ff390d18.jpeg)

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [17 October 2021 16:38 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/12 "2021-10-17T16:38:25Z")

</div>

Ok thanks.

The Configuration CC is trivial, no reason it should be subtracting 1.  
Out of curiosity I set one of my configs using minus figures - and all reacted accordingly.

Config for Lux level off-set in my case.

Some of our device configurations need certain compatibility flags applied, and this may be one of them.

When you have time, can you enable logging (`Debug` Level) - within the controller node.  
(Leave Pin2 Logging as is - Disabled).

After Logging is switched on, go ahead and make your change in the UI, then turn logging back of (it fills up quick)

The log file will be found at `~/.node-red/zwave-js.log`

Please submit this on the `node-red-contrib-zwave-js` repo - feel free to use a discussion, if you prefer.

Thanks.

Edit: for info this is our config file for it. (I think)  
[https://devices.zwave-js.io/?jumpTo=0x0148:0x0003:0x0001:0.0](https://devices.zwave-js.io/?jumpTo=0x0148:0x0003:0x0001:0.0)

Its this file/device config entry that may need some tweaks

---

<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:** [17 October 2021 20:13 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/13 "2021-10-17T20:13:38Z")

</div>

Its very strange, -20 gets set correctly. -12 does not.

I hope [opened a discussion](https://github.com/zwave-js/node-red-contrib-zwave-js/discussions/140).

---

<div class="post-metadata">

**Author:** ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Post date:** [27 October 2021 11:06 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/14 "2021-10-27T11:06:44Z")

</div>

Hi Marcus,

I have changed from open z-wave to z-wave-js. I like it, but now I am having a problem with the setting of a configuration operation mode on a "devolo 3 in 1 sensor". (battery driven)  
The gui of your software shows the value of the parameter but I cannot change it. Using your code recommendation from above does also not work.

I actually have to set node 10, parameter 5 , bit 3 to 1 --- [5,8,1]

I would very much appreciate your help.

Hannes

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [27 October 2021 13:52 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/15 "2021-10-27T13:52:03Z")

</div>

Hi @juntiedt ,

What device do you have?  
On the UI, select your node and click 'View in DB Browser' at the bottom - please paste the link it opens.

this will allow me to understand the parameter 5

The reason you might be having difficulty, is that Parameter 5 is a bitwise config, so the value you use in the command needs to include all bits i.e it needs to represent an integer, that is the result of say 00000100.

Also if its battery driven, the device needs to be woken up to receive the updated value.  
the value will get queued until the device wakes up \<- the value you set in the UI might actually commit, when the device wakes up.

---

<div class="post-metadata">

**Author:** ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Post date:** [27 October 2021 14:11 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/16 "2021-10-27T14:11:45Z")

</div>

[https://devices.zwave-js.io/?jumpTo=0x0175:0x0002:0x000d:0.0](https://devices.zwave-js.io/?jumpTo=0x0175:0x0002:0x000d:0.0)

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [27 October 2021 14:12 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/17 "2021-10-27T14:12:12Z")

</div>

Thanks what is the current value for param 5?

---

<div class="post-metadata">

**Author:** ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Post date:** [27 October 2021 14:12 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/18 "2021-10-27T14:12:53Z")

</div>

param 5 currently 4

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [27 October 2021 14:13 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/19 "2021-10-27T14:13:19Z")

</div>

Thanks give me 1 min

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [27 October 2021 14:17 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/20 "2021-10-27T14:17:07Z")

</div>

ok try `12`

`4` Represents 00000100  
`12` Represents 00001100

Be sure that the device wakes up to receive the value (either on an interval, or forcefully wake it up)

You can set the wake interval using the Wake Up CC - this should appear in the UI,  
but the device needs to be awake to receive it 😆

[Next page](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123.md?page=2)
