Anyone experience with connecting a Growatt solar-inverter?

@trippfam07 @chester40391
I’ve just looked into the issue with the US Growatt server instances and it was missing a “/” in the URL at the end.
I’ve submitted the pull-request (here) to the codebase and if I’m incredibly lucky it may get merged today and make it into the 2021.09 release overnight.
Otherwise, if you pull whatever the next release after that is, it will be fixed.

@trippfam07 Special thanks for sharing your creds with me, I had it debugged in seconds and can confirm that it works as expected.

Hi @muppet3000
Thank you for your effort, we are very happy to hear that this add-on is still updated.
Do you think this will work also for other user who are using European server?

In my case I have only inverter informations, not battery data…

image

PS: I tried also to change server on HAssio without success.

Thank you

Hi @Danros3 we don’t currently have support for the “AC Couple” type that’s why you don’t see the additional information.
I’d need to have access to an AC Couple system in order to implement the logic (I have to log in and see what values are returned on the API and potentially change the upstream library before we get the HASS stuff working).
It’s nothing to do with what server you’re using.

I’m in the process of working out what is needed to be done to support the “Max/Mid” type, see here: Growatt server integration partially working · Issue #51660 · home-assistant/core · GitHub (take a look at my latest comment).
I could take a look at the AC Couple system at the same time, but I’d need you to send me your credentials - I appreciate that’s a leap of faith, but if you wanted to send me them in a DM, I’d be happy to take a look.

Thanks for helping us out with this issue. I will wait for the release and try it again.

Hi guys,
I updated today to 2021.9.1 and was able to add my growatt inverter to the new Energy Monitoring.
However, I had a few questions that I was hoping I could get to the bottom of please?

Firstly, when I go to “add solar production” I can only select “total lifetime energy output” rather than say the “total output power”. Is this the correct way of setting this up?

Secondly, I have the additional smart meter that links back into the growatt inverter to show house load consumption and grid import/export (See image below). Is there anyway to get this info into the growatt integration, and then into the Energy Monitoring?

Thanks again for all your work on the integration - hoping I can iron out my kinks and get this working.

Hi @onkytonk,
Responding to each of your questions in turn:

Firstly, when I go to “add solar production” I can only select “total lifetime energy output” rather than say the “total output power”. Is this the correct way of setting this up?

Yeah, it’s frustratingly confusing right? Took me a while to get my head around as we were implementing the functionality, although, you get used to it eventually.
The short response is: “yes, you’re doing it right”
The TLDR response is: Yes, you’re doing it right. It’s down to the way that the core developers of Home Assistant have implemented energy consumption tracking. What the HASS Core does is track these “total” readings and then each hour it calculates the difference between what that value was at the beginning of the hour to the end, giving you the amount generated/exported/consumed from grid etc. It’s a far simpler way of converting the current “power rate” into KWH. It makes sense, it’s just not what we’re used to, especially in Growatt Land where we’re used to seeing the instantaneous wattage values like you’ve shown in your screengrab.
You get used to it after a little while I promise!

Secondly, I have the additional smart meter that links back into the growatt inverter to show house load consumption and grid import/export (See image below). Is there anyway to get this info into the growatt integration, and then into the Energy Monitoring?

Well that’s cool, is that Growatt branded smart meter? It’s the first I’ve heard of something like this linking directly into Growatt. I have an AC Coupled Hybrid system, so it monitors the house consumption as part of that.
I’d be interested to hear a few more details. The shortest response I can give is:
If you’re able to see these values in the “Shine” mobile app, then we’ll be able to get them into Home Assistant. However, they’re only available in the energy dashboard if they give a running total (daily or all-time) in KWH in order for the energy functionality to work.
Given that this is the first I’ve heard of it, we definitely don’t have support for it at present, but we can definitely add it. I need to make a list, I think I’ll make a post below with the current running list of things that need functionality added.

Hopefully that answers your questions.

EDIT: @onkytonk I’ve just realised that I have a direct email from you discussing this exact thing. I’ve been a bit lax on responding to emails recently, that fills in some of the blanks for that smart meter you’ve mentioned. I’ll probably pick this up with you separately when I’ve got some time to dig a bit deeper!
Things here have been a bit manic for me recently so I’ve only been able to do the odd bit of Growatt Home Assistant work in the evenings. Should be getting back to “normal” soon though.

1 Like

Just creating a new entry here with a list of issues that I know need to be worked on/added so I can keep track of them (all of them have either been raised directly through this thread or mentioned in it):

If anyone has anymore that I’ve missed from this chain, let me know and I’ll update this post.

1 Like

Thank you so much for the explanation, it makes sense the way you’ve explained it!

In regards to the smart meter, the brand is Eastron (model SDM230), which growatt now advertise on their website and it directly integrates into the inverter. They have both direct wiring and CT models in both single and 3 phase. Smart Meter - Accessories - Growatt

It provides the missing information the inverter doesn’t provide, such as house load consumption, and therefore also grid import/export. This all shows up in both the Shine App and via the web server. It would be superb to have this pulled into HA! Let me know if I can assist in anyway.

The caveat is that when the inverter auto shuts down, it no longer tracks the smart meter.
However, the SDM230 supports modbus (which is how it communicates with the inverter), so I may end up also directly integrating it with HA via the Modbus Integration.

lol - No stress about the email.
I sent it when I was trying to find someone who created/worked on the integration, and then later found this thread. Absolutely understand, and really, no urgency at all. Appreciate the work you’ve done already. Again, let me know if I can assist in anyway (that I’m capable of).

Joe.

Thanks @muppet3000 for the great work.

I must admit, I’m not 100% sure I’ve selected the right sensors to track in the energy dashboard. Would appreciate if anyone can chime in on whether I’ve configured the following correctly:

Solar:

  • Total lifetime energy output

Battery:

  • Lifetime battery discharged
  • Lifetime battery charged

Grid:

  • Import from grid today load + charging
  • Lifetime export to grid

In particular, I’m not sure about using “Import from grid today load + charging” as the sensor to track grid consumption as Its not a lifetime reading.

Thanks.

I might take a look at the code,

I have a similar problem (I have two systems but both go through the growatt smart switch, 1 is a growatt inverter and 1 is seperate, but the total export and load usage is recorded (it’s weird seeing the export exceed the total solar generated {as only identifies the solar generated from the growatt inverter} for the day!!).

The switch has a lot more info in shine that we’ll have to get into homeassistant.

Cool, I’ll take a look at that on the website. Ultimately, if it’s available through the shine app then we can write the functionality for it.

It’s on the list so I’ll get around to it eventually!

This is spot-on for the configuration. Exactly the same setup as myself (I’m guessing you have a battery (‘hybrid’) setup like myself).
You’re correct that the “Import from grid today” isn’t a “lifetime” value, but the important thing is that it’s an increasing value that gets reset. As long as home assistant can track the increase between two given time points i.e. each hour, it’s valid.
Essentially, if it’s available for you to choose, then we’ve ensured it’s a valid value to be used on that page.

That sounds really interesting @Trentan I’d love to see some screengrabs at some point.
As for adding the functionality/looking at the code, myself and Indy would happily welcome PRs and new functionality to the Growatt Library we support: https://github.com/indykoning/PyPi_GrowattServer
That’s where all the magic happens and where the functionality should get implemented.
The home-assistant work is relatively light-touch in comparison, all we do is make the relevant calls to the library for all the information and then format it.
If you’re thinking about adding new functionality, that’s where it should be done, that way anyone that uses the library can benefit from it, not just HASS users :slight_smile:

Sorry for crossposting.

I’ve been using the Growatt integration a while now, and it has been working great.
However, since yesterday evening something has changed and today no data has been received.
It’s all there on the dashboard hosted by Growatt, so the inverter and datalogging is working as before, it’s just that HA no longer gets any data.
I removed and re-added the integration to make sure I am using the most recent one.

Error while setting up growatt_server platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)

Etc.
Anyone else have this issue?

Here’s the issue we’re using to track this: https://github.com/home-assistant/core/issues/56044

It’s actually a problem with Growatt itself, we don’t know why but a load of the API calls have stopped working in the library that we use (and I co-maintain) the ticket for that library is here: https://github.com/indykoning/PyPi_GrowattServer/issues/16

I’m going to try and take another look at it tonight once I’ve finished work, but we’re beholden to the Growatt server, looks like they may have deployed an update and it’s broken the way we interface with it.

2 Likes

Same problem here, happy to see it is not only on my instance as I was about to remove the integration and re-add it again like Marcel suggested too. Hope you find what they changed. It is obvious we are very heavily depending on (and spoilt with) your great work!

same problem… :frowning:

Yup, same here, rooting for you :slight_smile:

This is an update on the home-assistant ticket here: https://github.com/home-assistant/core/issues/56044
Which lists how you can patch your instance (will really only work nicely if you’re using the OS installation rather than the docker one).
I’m just waiting on the merges into the upstream library and I’ll be able to do the PR for HomeAssistant as well.

1 Like

Hey friends, do we know if the fix made it into the 2021.9.6 update?