jkeljo / hacs-greeneye-monitor

HACS version of the Home Assistant Core greeneye_monitor component. For beta-testing and faster deployment of changes.
MIT License
5 stars 2 forks source link

Energy Monitor on 240V loads with single CT only half of what is expected #28

Open sarahmva opened 1 year ago

sarahmva commented 1 year ago

Home Assistant version: 2023.7.3

HACS version: 1.32.1

hacs-greeneye-monitor version: 2023.5.30

Configuration

image

Add your logs here.

Describe the bug

I have one channel monitoring a symetric 240V load (Car Charger). GEM Is configured accordingly:

image

The Car Charger is pulling 20 Amps, about 4,700 Watts.

After 1:15 minutes, the energy measured is half of what I expected:

image

I compared with the app for the charger which says 5.6 kwh.

Not sure if this is a GEM issue or a issue of the monitor component.

home-assistant_greeneye_monitor_2023-08-03T04-10-53.129Z.log

jkeljo commented 1 year ago

So it looks like the instantaneous power is showing up correctly, but the aggregate energy is half what you expect? That's surprising, because the way this stuff works is the GEM sends the energy total in every packet and the integration computes power from the difference in energy between consecutive packets.

I played around with turning on 240V mode on one of my GEM channels, and verified that the power number showing up in HA doubled.

How did you create those "Monthly" and "Last Session" entities? That's not something this integration does on its own.

For completeness, what are your GEM firmware versions?

sarahmva commented 1 year ago

Thanks for checking. COM firmware ver: 5.39 ENG firmware ver: 1.49

I did some more testing yesterday and restarted everything (HA, GEM). Once I had done this, it seemed to be more accurate. I wonder if the issue was that I had not restarted things after making the changes in GEM.

I will have to monitor again next time I charge the car. I also need to replace the CT, it seems to pick up some phantom power.

Regarding the Monthly and Last Session: Those are Utility Monitor Helpers. I reset the "Last Session" anytime power consumption on that channel goes above 100W.

I primarily use the instantaneous power to control charge current so I can keep the overall house consumption under control.

image

jkeljo commented 1 year ago

The latest version of this integration (2023.9.03) supports downloading diagnostic information and debug logs, which I hope will help me diagnose this issue more quickly. To use it, do the following:

  1. In Home Assistant, go to Settings -> Devices & Services -> GreenEye Monitor (GEM).
  2. Under "Hubs", find "GreenEye Monitor (GEM)", click the three dots, then click "Download diagnostics"
  3. Drag-and-drop the downloaded file into a comment on this issue. It will upload the file and insert a link.
  4. After downloading diagnostics, click "Enable debug logging"
  5. In the three dots menu, click "Reload"
  6. Return to your overview dashboard and wait until data starts to come in from all of your GEMs
  7. Return to the settings screen and click "Disable Debug Logging". It will download a log file.
  8. Drag-and-drop the downloaded log file into a comment on this issue. It will upload the file and insert a link.

Thanks!