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
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
Not sure what data you already have but node-red-contrib-watt2kwh gets kwh from watts
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.
To add to Marcus's response, the command would be the following payload
{
"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.
Feed the payload into a device node., it should return
{"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.