Anyone experience with connecting a Growatt solar-inverter?

are you using a growatt inverter? what entities did you use to achieve this?

1 Like

Yeah this is with the growatt plugin, below is a grab of my configuration settings:

Thanks for your reply. The below is what I have in my settings but the values look different from the growatt app

Unfortunately I don’t have a “storage” type of system so can’t comment on specific values.
All of your configuration looks correct, however there may not be all of the values you require for your type of system that map onto the HomeAssistant entities.

The one I question is the value you’re using for “battery discharged”, that value looks as if it’s the total amount that your house has consumed, which is not the same as the amount your battery has discharged. (Home Assistant doesn’t use a value for what your house has consumed, it calculates it based on the other values).

Is there a value in the list of entities on your main HomeAssistant dashboard that shows the amount your battery has discharged?

Looking in the code there’s a value for eBatDisChargeToday which will appear on the dashboard/entity as “Storage production today”, however it doesn’t look like it has been mapped through to the energy dashboard (which I can easily fix).

Can you tell me if the value that your dashboard shows for that entity looks correct for the amount your battery has discharged?

ok so you are right. something is off. the values for battery discharged is not the same as on growatt server

image

how did you fix "storage production today” which is not mapped through to the energy dashboard?

Sorry for not replying at the weekend.
RE: “Fixing storage production today” - I’m one of the maintainers of the Growatt Integration for HASS, so I know all of it’s inner workings :slight_smile: I can take a look through and see what’s missing.

What I don’t fully understand is how the “Storage” type of Growatt systems work. In the picture you’ve posted of the Growatt Dashboard it says that you’ve generated 7.4KWH solar, but you’ve also “Charged” the same amount, does that mean all of what you’ve generated has gone straight into the batteries? Since you’ve imported 0kwh from the grid I don’t fully understand.
If you look at your numbers on the Growatt Dashboard:
7.4kwh Solar
0 kwh imported from grid
7.4kwh Charged i.e. All your solar has been diverted into the batteries
3.7kwh Discharged i.e. your load has consumed 3.7kwh from the batteries
6.0kwh load consumption

The 6.0kwh load consumption confuses me:

  • 3.7kwh of it has come from the batteries
  • Where has the other 2.4kwh come from??? You haven’t imported anything and 100% of your solar has gone to charging you batteries.

It’s all a bit confusing, if you’re able to clarify the stats on the growatt dashboard (ignore home assistant) I may be able to work out what stats need to be plumbed through.

Hi Muppet3000,

Thanks for looking into this!

Here is a screenshot of my dashboard as well as the associated Growatt graph - it should guide you on the breakdown of the charge and consumption values. I am a little lost on the charge vs load - you will see (in my case) I have ‘charged’ 4.1 from solar, however, 0.3 of this solar production has gone into my house.

It is difficult to take a snapshot of the HASS energy page as the energy data is only updated on the hour (why is that, by the way? - it would be great if that data was live).

I hope this helps.


I am still having problems to get a good chart of my energy consumption.
This is what I get:


This is the graph of Lifetime energy output, the one I use:

I also have another RPI running to get the readings for my Homeseer setup. When I send the readings to HA I get this:

And when I use that for input I get the right Energy chart.
Can you fix the input so it won’t get to zero?

Hi @Peterpc58 could you take a look through this bug/discussion here please: Energy dashboard showing total solar production as consumed solar · Issue #56500 · home-assistant/core · GitHub

I think what you’re reporting is the same issue can you confirm? The bug has been closed due to inactivity but I think I may get it reopened since quite a few people have reported this now.

Hi
I think this is the right place to ask my question.
i have the following problem. I run home assistant, and installed the growatt plugin a few days ago. since then I only get a few hours of data from the growatt server. the shinephone app on the phone will then no longer receive any data. if I turn off the growatt in HO, after a while info comes again. I also see during that period that the shinelanbox can no longer connect. If I connect it to another modem (different provider), it does go online. ip blocked?
I have a hunch myself what it is, but can’t find it. I think during the first installation I got a menu where I could enter how after how many minutes it should update. default I believe 5 minutes. I think I set it to 5 seconds. can it be that after requesting data from the server so many times, I will be blocked for a certain time?
can someone tell me how 1 can change it back in 5 minutes.
hope someone has an answer for me
Thank you in advance

Hi @erikdegrote that seems like a really fun situation.

I assume when you’re talking to about “how many minutes should update” you’re talking about the Growatt Plugin to HomeAssistant not your ShineLink box?

I don’t think the plugin has that parameter (I’ve never seen it) and even if it does the scan interval in home assistant is hard-coded to 1 minute (Here’s the line of code for it: core/sensor.py at f751d6e064d70a9ce233cadb1d38b2ce05af6be9 · home-assistant/core · GitHub).
So, I’d go so far as to say that it’s definitely not a problem with the homeassistant integration, but that seems to be a symptom.
Your shinelanbox looks like it might be the problem perhaps, I’ve had a problem before where my shinelanbox when it was connected to a specific switch in my house lost connection after about 30 minutes. So it could be something like that, I ended up connecting it via a different switch and it was all ok. Alternatively, is it possible that your home-assistant instance and your shinelanbox are competing for the same IP for some reason? (weirder things have happened).

I’m pretty confident that it isn’t the growatt integration for home-assistant though.

Yes, that is my problem.

I got the issue to


1 Like

Hello, anyone still having this problem?
Personally, everything is working as expected here - although winter solar gains could be better :slight_smile:

Are you able to graph the outputs of your panels like above?

I’m happy to share my settings if it’s helpful?

The issue only affects specific types of inverters, I’m looking to sit down and tackle this over the next couple of weeks during the holiday season. I may reach out to those of you that are affected to see if you’re willing to share your credentials with me so that I can test it.

Ah no probs. @muppet3000 - I’ve noticed you’ve got some interesting stuff in development for inverter controls, like controlling the battery discharge rate. Is there a plan to bring this to the HA? :slight_smile:

I still have this problem and willing to help.
This is from HA setup:


And this is from my own script:

Hello all,

I’ve just been flicking through some of the earlier posts and thought it might be worth sharing some more info on what I’ve learned. Any feedback on these values, would be appreciated.
Note: I have a growatt hybrid inverter with approx 10kWh of growatt batteries. I have a 20%-90% usage cycle.

With all of this, the CT clamp are not particularly accurate at low loads. It adds some error to the whole measurement process, but i accept errors within 10%. The growatt system has only a single CT on the meter feed, so it’s only capable of knowing what is imported/exported. I assume the rest is measured within the inverter.

I have a separate monitoring system using emonCMS with CT clamps on three feeds. I can use these to compare against the output of the growatt server. These CTs are:

  • Meter (for total grid in/out)
  • Consumer unit (for total house consumption)
  • Inverter output (for total provided by the growatt system)

An example from yesterday - notably when the wife was very busy with the tumble dryer, and when we’re mid-winter.

From the graph above:

  • System Production - 7kWh. This is how much the growatt system has provided to the house - Includes, solar gains and battery output.

    • Self-Consumption - 6.9kWh. This is how much of the growatt-provided energy went into the consumer unit / used by the house.
    • Exported To Grid - 0.1kWh. This is exactly what it says. You cant stop this with my system unless you have a specific isolator box designed to cut the grid connection. It’s why the system fails when AC goes out. EmonCMS confirms this is very low.
  • Load Consumption - 19.1kWh. This is the total amount of energy that the house used in the day. I can compare it to a separately monitored output via emonCMS that tells me 19.2kWh.

    • Self-Consumption is the same as in the System Production area.
    • Imported From Grid is interesting and (to me) misleading. My energy supplier tells me that I imported 17.9kWh confirmed by separate emonCMS monitoring value of 18.84kWh, so what is this value? My guess is that this is just a dumb calculation (19.1 minus 6.9kWh), in which case it doesn’t account for the energy that was used to charge the batteries. I dont think we can rely on this value when trying to do the energy monitoring.

My HA energy dashboard setup looks like the above. It uses my emonCMS feeds for the grid import / export over MQTT, then takes values from growatt server for Solar Production and Battery information. I have renamed the elements to make them easier to read, but the Solar Production value is from sensor.yoursystem_lifetime_solar_energy - note, this is the total of all arrays not the individual PV string (I have two of those).

Lastly, we can check my numbers. Need to remember that HA builds it’s own history over what the emonCMS history has, so there may be interpolation differences between readings. It also cant account for some of the distribution of energy within the growatt system. All worth remembering that this is indicative of trends rather than absolute values.

  • Grid - check
  • Solar - check (crying at winter solar output)
  • Battery - hmmm. I seem to have a magic battery.
  • Home - it’s in the right ballpark, but it a bit higher than I’d expect. In yesterday’s example it’s calculated from Grid + Battery, but I wonder if some extra work might be needed on self consumed solar within the energy area?

Blimey, that’s advanced.

I can not even get the basic energy part to work in home assistant.

I have a solar panel system with 7,2 KWh solar panels, a Growatt inverter and a 6.5 KWh Li-ion battery pack.

It seems that a lot of the “sensors” are missing from the drop down boxes in the “Energy” settings.

For example, it needs a sensor for how much energy was produced by the solar panels today, i think this sensor is : “OOCMA40002 Solar energy today” as the Kwh figure there, is the same as the one in my Growatt app, but if i want to add it, i can not, because, even though the sensor is visible in my lovelace panel with all sensors, i can not select it from the drop down box in HA.

The same if i want to add the battery, it asks for charge in and charge out of the battery, i think these are the sensors

OOCMA40002 Battery charged today
OOCMA40002 Battery discharged today

But again…These sensors are not selectable from the drop down box.

Anybody else experiencing problems with the HA just stops reading the Growatt data from the server? Reloading the integration seems to resolve the problem, but after a few minutes it stop reading the data again.