Heckie75 / voltcraft-sem-6000

Full-featured shell script in order to control wall mount smart energy meter Voltcraft SEM-6000
MIT License
94 stars 22 forks source link

Total energy consumption is 0 #6

Closed ghost closed 4 years ago

ghost commented 4 years ago

The app reads out the real total consumption, this script doesnt

Heckie75 commented 4 years ago

This issue is a duplicate of #2

I guess that this script is correct and the app is wrong. The app calculates the total consumption by adding up all records per month instead of using the value coming from device's API. It is correct that I haven't seen something else than zero returned by the API yet. Maybe this is a firmware bug and that is the reason why the app displays a value based on recorded data.

However, I have just pushed a new version to github. After you have requested specific data by calling "--data xxx" and then print the status, you get a line called total last xxx

Example: ~/voltcraft-sem-6000$ sem-6000 K --data day --status --print Status: Power: off Voltage: 237 VAC Ampere: 0.0 A Watts: 0.0 W Frequency: 50 Hz Power factor: 1 Total consumption: 0.0 kWh Total last 24h: 3 Wh

It works also with JSON output.