# \[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:** 2

<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:46 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/21 "2021-10-27T14:46:37Z")

</div>

unfortunately no success ☹

---

<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:48 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/22 "2021-10-27T14:48:20Z")

</div>

did you use the command or via the UI?  
The command I pasted up top - is detached from the UI, so the UI wont realise there is a change.

Any config changes I will use the UI, as that includes a poll after it has been set.

---

<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:55 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/23 "2021-10-27T14:55:27Z")

</div>

this parameter should switch from Fahrenheit to Celsius.  
It still shows Fahrenheit.

---

<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:56 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/24 "2021-10-27T14:56:22Z")

</div>

ok,

Are you doing this in the UI or a command?  
also are you waking up the device after?

---

<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:57 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/25 "2021-10-27T14:57:33Z")

</div>

if the device sends data eg. temp it should be awake?

---

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

</div>

You would think right?

but actually no,

a wake up interval is different to a device reporting values.

a wake up interval is to receive new config values (and to report batter levels)  
usually there is a method (as per device manual) to wake up the device - usually like a press on a button of some sort

from the manual on your device.

> To wakeup the device please perform the following action: There are two tamper keys in the device, one is in the back side, another is in the front side.Both of themcan add,remove, reset or association from Z-Wave network.Press any key once, the device will awake 10 seconds.

Commands are queued, until the device sends a wake interval - as that is when the device is asking for any config changes

---

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

</div>

Super, it works.  
Thaks a lot

---

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

</div>

You are very welcome.

Also Note:  
Our device configs have the ability to split bit mask type params into their seperate values,  
just that this device config isn't set up to do so (yet)

we have a few devices that use bit masks - just that some need to be updated.

---

<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: [1 November 2021 09:36 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/29 "2021-11-01T09:36:25Z")

</div>

Hi Marcus,

I just want to tell you that I like your zwave-js very much! Great job and great improvment over openzwave!  
I have now integrated 14 devices (switches, door window sensor, thermostats, sirene, Key Fobb, 3in1 sensor) without any problems.

Thank's for shareing!  
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: [1 November 2021 12:58 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/30 "2021-11-01T12:58:38Z")

</div>

Great to know @juntiedt.  
I have something in the works for this node (and maybe 1 or 2 minor fixes of course).

Keep an eye out! 😄

---

<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: [1 November 2021 16:32 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/31 "2021-11-01T16:32:24Z")

</div>

I played with the system and started refresh property list for one thermostat.  
it now shows fechting properties ..... for all devices  
and nothing happens.  
How long will it take?  
I don't get temp and other updates anymore

ZWaveError: Failed to initialize the driver: Error: Failed to lock DB file "/home/pi/.node-red/zwave-js-cache/f65e5828.values.jsonl"!  
at JsonlDB.open (/home/pi/.node-red/node\_modules/@alcalzone/jsonl-db/src/lib/db.ts:229:10)  
at Driver.initValueDBs (/home/pi/.node-red/node\_modules/zwave-js/src/lib/driver/Driver.ts:909:3)  
at Driver.initializeControllerAndNodes (/home/pi/.node-red/node\_modules/zwave-js/src/lib/driver/Driver.ts:948:4)  
at Immediate. (/home/pi/.node-red/node\_modules/zwave-js/src/lib/driver/Driver.ts:817:5) (ZW0100)

"Error: Node 12 does not exist."  
"Error: Node 13 does not exist."  
"Error: Node 14 does not exist."  
all thermostats are gone

---

<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: [1 November 2021 16:55 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/32 "2021-11-01T16:55:35Z")

</div>

sorry for my last post!  
stopping Node-red and starting again fixed the problem.

---

<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: [1 November 2021 17:21 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/33 "2021-11-01T17:21:00Z")

</div>

Another question:  
I cannot set the setpoint of my thermostat. With the UI it works but not though a command  
I have included the command of openzwave:

return {topic:"setValue", payload: {"nodeid":11,"cmdclass":67,"type":"decimal","genre":"user","instance":1,"cmdidx":1,"label":"Heat","units":"C","value":"22.0"}};

looks like valueAPI

---

<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: [1 November 2021 20:31 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/34 "2021-11-01T20:31:12Z")

</div>

Hi @juntiedt

This is not a payload that I know of - this looks like openzwave format.

`{"nodeid":11,"cmdclass":67,"type":"decimal","genre":"user","instance":1,"cmdidx":1,"label":"Heat","units":"C","value":"22.0"}};`

In this module:

Change the set point in the UI (but open up `UI Monitor,` before you do, to see the command.)  
This will allow you to see (and use) the command later - changing the value as necessary 👍  
This will show you the ValueID version.

And the CCAPI Version.

```auto
let Message = {
    payload: {
        mode: "CCAPI",
        node: <Node ID>,
        cc: 0x43,
        endpoint: 2, /* if needed */
        method: "set",
        params: ["Heating",TargetValue, 0x00] /* 0x00->C, 0x01->F */
    }
}
return Message

```

`Heating` refers to set point type.

"Heating"  
"Cooling"  
"Furnace"  
"Dry Air"  
"Moist Air"  
"Auto Changeover"  
"Energy Save Heating"  
"Energy Save Cooling"  
"Away Heating"  
"Away Cooling"  
"Full Power"

Edit:  
Just noticed that you are including an OZW command, not actually using that command 😆

---

<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: [1 November 2021 20:35 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/35 "2021-11-01T20:35:58Z")

</div>

`zwave-js` uses lock files to protect the value database, and the lock was not released gracefully.

Could have been cutting the power to the system without terminating node-red for instance.  
the fact you seen this, means the lock file had done its job at stoping the database being corrupted.

---

<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: [1 November 2021 21:42 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/36 "2021-11-01T21:42:21Z")

</div>

I used the value API. It works.  
I did not try the Ozwave command. This was just to give you an idea of my problem.

Thank's again

---

<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: [1 November 2021 21:57 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/37 "2021-11-01T21:57:50Z")

</div>

No worries,

I noticed after, you referenced it. 👍

---

<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: [2 November 2021 10:31 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/38 "2021-11-02T10:31:45Z")

</div>

one last question to the Value API.  
What has to go into the options?  
Should this be the meta data that you get when you click in the UI?

---

<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: [2 November 2021 11:04 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/39 "2021-11-02T11:04:24Z")

</div>

Hi @juntiedt,

The ValueAPI works with a `ValueID`  
However, despite its name, it's not an ID per se.

It's an object that instructs the ValueAPI to what CC, Endpoint and property a value belongs to

Full Example.

```auto
/* To get a ValueID: Double click the title of the value in the UI */
const MyValueID = {
    .....
}

/* Options is optional and only applies to setValue */
const Options = {
    transitionDuration:"1m10s", // Multilevel Switch
    volume: 30 // Sound Switch
}

const MyTargetValue = 50

const Message = {
    payload: {
        mode: "ValueAPI",
        node: 2,
        method: "setValue",
        params: [MyValueID, MyTargetValue, Options]
    }
}
return Message

```

Here is the Wiki for ValueAPI (and the other APIs)

> **[Value API · zwave-js/node-red-contrib-zwave-js Wiki](https://github.com/zwave-js/node-red-contrib-zwave-js/wiki/Value-API)**
>
> An extremely powerful, easy to use, and feature rich Z-Wave node for Node Red, based on Z-Wave JS. - Value API · zwave-js/node-red-contrib-zwave-js Wiki

---

<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: [2 November 2021 13:21 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/40 "2021-11-02T13:21:21Z")

</div>

Hi Marcus,  
how can I make a Multi Level Sensor Report incomming?  
This is the case when theThermostat should use an external temp sensor.

This is the one that goes out:

{  
valueId: {  
commandClassName: "Multilevel Sensor",  
commandClass: 49,  
endpoint: 0,  
property: "Air temperature",  
propertyName: "Air temperature"  
},  
meta: {  
type: "number",  
readable: true,  
writeable: false,  
unit: "°C",  
label: "Air temperature",  
ccSpecific: {  
sensorType: 1,  
scale: 0  
}  
},  
propertyid: "0-49-Air temperature-",  
endpoint: 0,  
valueData: {  
value: 18.84,  
unit: "°C"  
}  
}

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

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