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

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

</div>

Hi @juntiedt,

The above is just the ValueID (and associated information about it).  
its not the command that is used to make changes on the UI.

` Multilevel Sensor` reports (in fact most updates) will be delivered to you via, `VALUE_UPDATED` events, whenever the device sends out an update.

just attach a debug node to the controller (or device node) to capture it.  
you can then react accordingly, when an update has been sent out from your device.

See here, for all the event types that one can expect.

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

---

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

</div>

And wouldn't you believe it, I have just received a temperature update.  
it will look similar to the below.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/7/3739f4b2344e388b665b2415a6cf2effbac66c80.png)

You can employ the `event-filter` to split the different types of value updates, out to different pins.  
Just activate a filter (it will expand), and in the UI double click a value title - this will allow you to add the entry to the filter.

each filter you add, it will become an output pin.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/f/cf7d03453cf63aa4355c9643ac9d7e44d1383b30.png)

---

<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 14:18 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/43 "2021-11-02T14:18:00Z")

</div>

Receiving temp reports works ok.

But my Thermostat can receive temprature from an external room sensor. This is interesting, if you have more than one Thermostat in a room.

The documentaion says the thermostat can receive Multi Level Sensor reports:

Report incomming:  
Sensortype: "Air Temperature"  
Scale: Celsius and Fahrenheit  
Position after decimal point: 0,1 and 2

just changing get to set seems not to work for me.

---

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

</div>

Right I get it! 😄

Ok, this will need the CCAPI (which is a lot more "raw")

According to this.  
[https://zwave-js.github.io/node-zwave-js/#/api/CCs/MultilevelSensor?id=sendreport](https://zwave-js.github.io/node-zwave-js/#/api/CCs/MultilevelSensor?id=sendreport)

We do this

```auto
const Message = {
    payload: {
        mode: "CCAPI",
        cc: 0x31,
        node: 2, /* receving thermo */
        method: "sendReport",
        params: [0x01,0x00,22] /* 0x01 -> Temperature type value, 0x00 -> Celsius, 22 -> Value */
    }
}
return Message

```

Your thermo may evan need to absorb the external reading via an association, but see if this works first.

---

<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 14:58 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/45 "2021-11-02T14:58:18Z")

</div>

it works!

It does not react immediately but this is normal. It checks Temp about every minute.

Now I have everything I need to optimize my heating system! 🙂

Many thank's  
Hannes

---

<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 15:01 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/46 "2021-11-02T15:01:32Z")

</div>

![ZWave thermo](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/7/b75975bbb2d0dc73e8db334de64a4f15370285ed.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: [2 November 2021 15:03 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/47 "2021-11-02T15:03:53Z")

</div>

Very slick indeed! 👍

If your 'external temp' can send out its update using an `association`,  
you don't have to construct the message your self.

in other words, device **A** sends directly to device **B**.

you will need to understand the association groups for the external temp (and what they send out) before you know if it will work.

The UI for Associations is in the device options in the UI (bottom section).  
But then, if you also want to process the value for the dash - no harm in constructing the message your self.

Anyway 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: [2 November 2021 15:12 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/48 "2021-11-02T15:12:01Z")

</div>

association won't work for me as I have floor heating and some radiators. I am measuring my room temperature with enocean sensors and node-red manages the different valves of the floor heating.  
Therefore setpoint and temp has to come via node-red.

---

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

</div>

Got it (I think) - The external is not z-wave.

---

<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: [3 November 2021 17:15 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/50 "2021-11-03T17:15:30Z")

</div>

Hi Marcus, I have a problem with this binary switch;

[https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/2057/Home\_Control\_Schalt\_Messsteckdose\_2.0\_2016\_11\_02\_eng.pdf](https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/2057/Home_Control_Schalt_Messsteckdose_2.0_2016_11_02_eng.pdf)

when I switch it on or off, which works ok, it should send a status report (on and off) but it does not come.  
If I switch it with the ui I get the response but not when I use comand factory.  
What is the problem?

---

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

</div>

Hi @juntiedt

Are you using CCAPI?  
if so, set this for your `Force Update` value (or at least make it the result of the JSONata query)

`{"property": "currentValue"}`

See here for the explanation.  
[https://github.com/zwave-js/node-red-contrib-zwave-js/wiki/CC-API#forcing-updates](https://github.com/zwave-js/node-red-contrib-zwave-js/wiki/CC-API#forcing-updates)

The ValueAPI will fetch the value after (this is why you get the response), where as the CCAPI does not, so we force it to do so.

This is not always needed - its dependant on the characteristics of the device

---

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

</div>

Assuming you're sending the command it produces to the controller?

if not - then this maybe my fault for not making it clear in the Wiki - its a relatively new tool to the collection 🙈

---

<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: [4 November 2021 09:26 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/53 "2021-11-04T09:26:59Z")

</div>

thanks for having so much patience with me.  
I was not precise enough.  
switching works and all meter stuff as well.  
It is just the auto on/off report. This has something to do with association and I have never used association. Actually the device sends the on/off status to the node id of group 1; It is explained in the document under point 2 and 2-1. Link 3 posts above.  
how can I subscribe to this group?

[https://devices.zwave-js.io/?jumpTo=0x0175:0x0001:0x0012:0.0](https://devices.zwave-js.io/?jumpTo=0x0175:0x0001:0x0012: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: [4 November 2021 09:28 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/54 "2021-11-04T09:28:27Z")

</div>

Just looking at the doc now....

---

<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: [4 November 2021 09:33 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/55 "2021-11-04T09:33:44Z")

</div>

Ok,

If you open up the association UI for this node.  
Select Endpoint 0 (Im guessing this only has 1)

and you should see some groups?  
Could you detail the associations for each group?

---

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

</div>

![association](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/4/8493c102f9b7efc6b326b3582f501c7c7c7f34c2.jpeg)

only group is 1 - lifeline

my switch is node 9

---

<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: [4 November 2021 09:58 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/57 "2021-11-04T09:58:56Z")

</div>

Ok Group 1 is Lifeline (the controller (1) will always be attached to Lifeline)

According to the manual, the device should be reporting back when ever a Binary Switch command change was sent.

Do you mind creating a log for me?

1. Turn Logging on to **Debug** (keep **Pin2** Logging disabled)
2. Do a **CCAPI** Binary Switch Change from NR

We need to see if the device really is sending a report back - the log will tell us.

The log does not contain any sensitive info, but feel free to move over to a PM discussion, if you prefer.

please keep the log intact.

Log file will be (example) `/home/pi/.node-red/zwave-js.log`

I have an idea, what this is, we just need a flag on the devices config file - but the log will confirm my suspicion

---

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

</div>

which logging? zwave-js (where) or node-red

when I use UI "set target value" (true or false) I get a proper switch report. What are you doing 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: [4 November 2021 10:26 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-zwave-js-6-2-0/52123/59 "2021-11-04T10:26:51Z")

</div>

On the Controller Node config, there is an option for logging.

The UI uses the ValueAPI - which has a different approach, when it comes to confirming back to the user that the change was completed (it actually asks for the value after = your feed back)

The CCAPI does not "confirm" the change - it would happen on the device of course, but we don't ask for it.

Now, the manual states, when ever there is a change, the device should report it.  
we need to check if that is happening OR if the ValueAPI on the UI is Optimistically confirming it.

The log will capture if the device is reporting back the update, if it is - my focus will be on making a small change on the device config file,

be sure to use the CCAPI Binary Change when logging is on.

---

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

</div>

now it works 👍 🙂  
I have put force update for targetvalue in binary switch CCAPI and the on/off report shows up.  
But if you switch on, not only the on/off report shows up, but also the meter report and the alarm report.  
Due to this fact, you have to wait with switching off untill all reports (Switch\_Binary\_Report, Meter\_Report, Alarm\_Report) are send otherwise you get a retry error.  
In normal use this should be ok.

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

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