Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no data in dashboard. 3 phase inverter #8

Open
LeeFarm11 opened this issue Nov 16, 2024 · 15 comments
Open

no data in dashboard. 3 phase inverter #8

LeeFarm11 opened this issue Nov 16, 2024 · 15 comments

Comments

@LeeFarm11
Copy link

Hi. I have never had any data in the GivTCP web dashboard. I have run the 6345/runAll and file is attached.

I am now running the latest GivTCP Dev3.0.44

Environment details
Inverter - GIV-3HY-11. 3 phase
Batteries - 19.94kWh
Standard HAOS in VMWare

Results are the same at :8099/dashboard/ and at :3000

image

6345.json

@DanielGallo
Copy link
Owner

Thanks for the sample JSON file. I'll take a look soon.

@DanielGallo
Copy link
Owner

DanielGallo commented Dec 28, 2024

@LeeFarm11 Hi! I've finally had a chance to take a closer look at this.

Out of interest, have you updated GivTCP again recently, or is 3.0.44 still the latest version available to you? The reason I ask is because your JSON file contains some odd-looking values, so I'm wondering if they are fixed by a newer version of GivTCP.

For example, these are the "Load Power" values (in Watts):

"Load_Phase1_Power": 30.5,
"Load_Phase2_Power": 6530.2,
"Load_Phase3_Power": 6545.4,
"Load_Power": 618.0,

I would expect the total of the Phase 1, 2, and 3 values (13,106 Watts) to match the total "Load_Power", but they don't. So I'm not sure whether to use "Load_Power" in my dashboard, or total up the power of the 3 phases and ignore "Load_Power".

There are also other inconsistencies, e.g. Grid_Apparent_Power shows as 1009 (Watts), but this doesn't tie-up with the total load power, or the load powers of the individual phases above (when taking into account the other sources of power such as Battery_Discharge_Power, PV_Power, etc).

There are also no "Flow" values present in the JSON file, so I can't easily map where power is flowing from and to (e.g. solar to battery, battery to house, battery to grid, etc). E.g. the following values are not present in your JSON file (these are present when using GivTCP with single-phase inverters, such as single-phase AIO, AC, and Hybrid inverters):

  "Power": {
    "Flows": {
      "Battery_to_Grid": 0,
      "Battery_to_House": 0,
      "Grid_to_Battery": 0,
      "Grid_to_House": 1631,
      "Solar_to_Battery": 0,
      "Solar_to_Grid": 0,
      "Solar_to_House": 0
    }
  }

I'm not sure whether this omission of the "Flows" data is a bug/error on the GivTCP side, or if it was purposefully omitted due to it being a 3-phase inverter.

I'm happy to make the web dashboard compatible with 3-phase inverters, but I'm struggling to understand which "load" values to use from GivTCP and how to calculate the power flows between the different sources (battery, solar, grid), as this data isn't being rendered by GivTCP.

@LeeFarm11
Copy link
Author

Hi @DanielGallo I think we are then both a little in the dark.

I haven't had much chance recently to look at much, but most of what you posted is factual information and errors relating either to the Inverter or GivTCP. I wonder if @britkat1980 is able to respond to some of your observations?

Thanks.

@DanielGallo
Copy link
Owner

Thanks @LeeFarm11. Yes, happy to hear if @britkat1980 has any thoughts on the above.

@trevordowling
Copy link

Hi, I've got the same issue, also a three phase system.

Stepping through the debug on the browser, it falls over when trying to obtain the variable

power.power.grid_power

in static getPropertyValueFromMapping(obj, mapping) in HELPERS.JS

The Obj array is populated with other values that have been pulled from the inverter.

Maybe this will help - I'm no JS expert, so I could be completely wrong, but the Obj returned is NULL, on which the code dies

@DanielGallo
Copy link
Owner

DanielGallo commented Jan 14, 2025

@trevordowling Yes, at the moment my app isn't able to work with 3-phase inverters as there's a bunch of data not being rendered through GivTCP if it's a 3-phase inverter (such as the power flows). I also noticed some inconsistencies in a few of the values (such as the various Load_Phase1_Power, Load_Phase2_Power values, etc) shared in the sample data by @LeeFarm11 above.

@trevordowling - if you're able to share a few sample JSON responses from GivTCP, preferably when you have a reasonably steady stream of power from a particular source (e.g. one sample captured during a steady amount of solar, another captured during a steady stream of grid import, and another captured during a steady battery charge/discharge), and also capture screenshots from the GivEnergy app at the same time (to illustrate how the similar values are displayed there), I'm happy to take another look and see if there's a way to parse the data and correctly summarise it in my app.

@trevordowling
Copy link

Hi @DanielGallo - I'll do my best to pull this out for you. Will look at is this week. Big thanks for your help on these items too...

Trevor

@DanielGallo
Copy link
Owner

Thanks Trevor!

@trevordowling
Copy link

Hi Daniel,

As I'm new to this (I do have a rusty software background) I just thought I'd check that this was what you were looking for (see attached)

MQTT log and matching GivEnergy data.

If it is then I can generate more files, however I did look at the dump from all of the MQTT activity and there are a lot of errors (mostly the same) that maybe are worth addressing first. It looks like there are requests for data types that are not within the MQTT entitiy.

Note: values may not align as time between reading was a few minutes (I'll get them much closer in time if this is useful)
TD2335G007 Data Download 2025-01-15.csv
home-assistant_mqtt_2025-01-15T19-51-45.509Z.log
mqtt-01JHAPZWM4CVGAF0JZ13ET1KH0-GivTCP Meter Details-4afa5b907d64f895efcad7d8ff143a8a.json

@DanielGallo
Copy link
Owner

Hi Trevor,

I actually just need the JSON data rendered by GivTCP via the runAll endpoint, for example if GivTCP is running at 10.0.0.200, it is most likely rendering its data via http://10.0.0.200:6345/runAll.

You can also open up my web dashboard in the browser, bring up the browser console and type in App.downloadInverterData(), hit Enter, and the browser should offer to save the file. Although the web dashboard isn't able to show the data, it would still have been fetched and held in-memory.

So I just need a series of the above JSON files (captured at different times, based on different loads from various sources), plus screenshots from the GivEnergy app captured around the same time (just so I can see what the general numbers look like there).

Hope that helps.

Thanks!

@trevordowling
Copy link

trevordowling commented Jan 15, 2025 via email

@trevordowling
Copy link

Hi Daniel, first day with some sun, so I've captured some information for your review, hopefully this is useful.

I've included the console output, as this has errors included while running the App.downloadInverterData()

Excel File is a data dump from GivEnergy Cloud

TD2335G007 Data Download 2025-01-24 v3.xlsx
House Background + workshop load + solar charging + grid to battery charging v2.json
House Background + workshop load + solar charging + grid to battery charging.json
House Background + workshop load + solar charging.json
House Background + oven + solar charging.json
House Background plus solar charging.json

Thanks

Trevor

@DanielGallo
Copy link
Owner

Thanks Trevor, I'll take a look later. Did you also happen to capture some screenshots from the GivEnergy app showing the power flows between the different sources?

@trevordowling
Copy link

I just grabbed the data - but happy to also grab some screen shots, but the HOME app on my phone does not work (GivEnergy team aware of issues with their app and Three Phase inverters.

It does work if I use the AWAY connection, but then the data will be delayed, so not sure how easy it would be to link screen shot with data.

That said - more than happy to try and see if of use

T

@trevordowling
Copy link

Here are two grabs one has forced charging from the grid applied

Image
inverter_0_sample (8).json
Image
inverter_0_sample (6).json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants