# Help getting kwh with node-red

**URL:** <https://discourse.nodered.org/t/help-getting-kwh-with-node-red/100752>\
**Category:** General\
**Tags:** zwavejs\
**Created:** [11 April 2026 22:16 UTC](https://discourse.nodered.org/t/help-getting-kwh-with-node-red/100752 "2026-04-11T22:16:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fogmajor](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Post date:** [11 April 2026 22:16 UTC](https://discourse.nodered.org/t/help-getting-kwh-with-node-red/100752/1 "2026-04-11T22:16:05Z")

</div>

Hi  
I have a shelly wave uk plug that i can control using the zwavejs-device and it works fine.  
I am struggling to find a way off getting the kwh usage.  
Any help will be greatly appreciated.

Thank you in advance

Andrew

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [11 April 2026 23:35 UTC](https://discourse.nodered.org/t/help-getting-kwh-with-node-red/100752/2 "2026-04-11T23:35:59Z")

</div>

Not sure what data you already have but` node-red-contrib-watt2kwh` gets kwh from watts

---

<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 April 2026 06:59 UTC](https://discourse.nodered.org/t/help-getting-kwh-with-node-red/100752/3 "2026-04-12T06:59:46Z")

</div>

Does the device support the Meter Command Class **(0x32)**?

Click the device in the node list, to list all its CC’s  
That will be the starting point.

If it does, click one of its properties for that CC - and you will get an example payload to pull the value.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 April 2026 10:53 UTC](https://discourse.nodered.org/t/help-getting-kwh-with-node-red/100752/4 "2026-04-12T10:53:22Z")

</div>

To add to Marcus's response, the command would be the following `payload`

```auto
{
      "cmd": {
         "api": "VALUE",
         "method": "getValue"
      },
      "cmdProperties": {
         "nodeId": <the node id>,
         "valueId": {
            "commandClass": 50,
            "endpoint": <the end point>,
            "property": "value",
            "propertyKey": 65537
         }
      }
}

```

Here where it is availiable in the sidebar and tray.

 ![chrome_screenshot_12 Apr 2026 11_43_08 BST](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/1133880d94f34658504ff9bf62a47f959ecc4cd6.png)

Feed the payload into a device node., it should return

```auto
{"event":"API_RESPONSE","requestedAPI":"VALUE","requestedMethod":"getValue","eventSubject":"GET_VALUE_RESPONSE","timestamp":1775991041467,"eventBody":1.1,"nodeId":2}

```

where eventBody, should contain the meter value.

[edit]  
You should also receive this info when the device is truned on or off, as well as every 30s, configure in configuration section. You should be able to split this info out of the incoming messages with the splitter node.

 ![chrome_screenshot_12 Apr 2026 12_03_15 BST](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c6a1140145f7f73ceb2cb3014fc8b675279579a.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 July 2026 10:53 UTC](https://discourse.nodered.org/t/help-getting-kwh-with-node-red/100752/5 "2026-07-11T10:53:49Z")

</div>

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