Is there any way to read values in Report Command without using GUI?

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
dzdzdz
Posts: 5
Joined: 14 Jul 2020 10:22

Is there any way to read values in Report Command without using GUI?

Post by dzdzdz »

Hello,

I use a Smart Plug from DAWON DNS which has meter capabilities (W, kWh).
I need to control this using command line interface via HTTP API. I'll use cURL for this.
So what I want to do is,
1. send Meter Get command to obtain meter value.
2. receive Meter Report command (command sent from the smart plug)
3. obtain meter value (ex. 2.1kWh) from received Meter Report command

Now I know how to send Meter Get command using command line interface via HTTP API, but I have no idea how to obtain (read) meter values without using your web-based GUI.

Is there any way to read meter values without using GUI?

Thank you.
User avatar
PoltoS
Posts: 7565
Joined: 26 Jan 2011 19:36

Re: Is there any way to read values in Report Command without using GUI?

Post by PoltoS »

Both SmartHome and low level Z-Wave API can provide values. You should check the manual.

For low level it would be /JS/Run/zway.devices[X].Meter.data[N].val - see logs or CC data tree for more info
Post Reply