Growatt mode switching via Home Assistant

Hi all, I have my Growatt SPF5000ES inverters hooked into Home Assistant using the Growatt integration and all is working well. What I would like to achieve is the following:
Based on certain sensor values, switch the mode on my inverter from SUB to UTIL and vice versa.
I know one can change the mode via the Growatt server settings by inputting growatt(date) as the passcode but is this even possible via API or webhook and thus from Home Assistant?

If anyone has any information on how I could achieve this from Hassio, please do let me know, thanks.

Hi Stefan,

I want to do the similar setup on SPF 5000 TL. Where I want to charge from Util at certain time of day where our power is very cheap. I can see there are few python libraries that should be able to do it, however I am not a developer. I will talk with some friends of mine and see if anyone can write the code for me. Unless there is someone on this forum that is willing to help. I “sniffed” the api call for switching from “util” to “batt”, the data has this “type” : storage_spf500_ac_output_source and the the param is 0 for battery and 2 for utility, all the param options are easily seen via developer tools in firefox or chrome , so we just need someone keen to developer to code this :wink: . Thanks

I eventually settled for that runs on a raspberryPi 4. It has 2x usb B cables going from Pi to each inverter and then a USB rs485 that runs from Pi to master LBSA LIFEPO4 battery with a Cat6 cable joining the Master and Slave batteries via parallel ports. I then use MQTT to send events to and from Hassio.

Hope this helps.

This would work

Cheers for the ping. Just note that this is tested for SPH / hybrid inverters. Might need some additional help to add bits for other types. :slight_smile:

Hi Stefan,
If you can find the time, would you post what you are sending via MQTT to switch load/battery/grid modes on your Growatt? I have been trying to figure this out, but don’t seem to be getting anywhere.
Many thanks

Greetings Everybody!

Firstly, let me say “hi”, I’m Chris aka ‘muppet3000’ who maintains the Growatt Integration for Home Assistant.

Secondly, sorry for the massive cross-post on all the forum topics with ‘Growatt’ in the title, it was just easier to copy/paste this everywhere.

Thirdly, I didn’t realise how many forum posts there were for Growatt and the Integration!!! I must admit I find the forums very difficult to follow and navigate so I don’t spend much time here.

I mainly wanted to post to draw everyone’s attention to the following info:
1 - I’ve started maintaining the Integration primarily as a ‘custom integration’ which you can find here
2 - There’s a handy Info page for the custom integration here
3 - I will periodically roll up changes from the custom integration into the Core one in Home Assistant but this will not be very regularly
4 - There’s a prioritised list of bugs/feature requests that I’m working on here
5 - There’s a more thorough reasoning for my decision to move this into a custom integration here
6 - One thing that’s missing from the Feature Requests etc. is the addition to configure systems - I’m working on it, but it’s a background task until I have added support for all the different types of systems - Add ideas here if you have thoughts on what you’d like to be able to do.
7 - If you want to log issues or feature requests please do it here - Only there and in the Home Assistant Core repo will I actually see them, like I said I don’t actively monitor the forums, so the official repos are the best places!
8 - Please don’t assume that I’ve read this thread in a huge amount of detail, if feature requests etc. that have been requested in this thread are still relevant, please log them over on the new git repo here and I’ll get them prioritised - PLEASE read through the issues already logged first to check you’re not duplicating requests.

I hope all that makes sense, I’ve marked this thread as ‘watching’ so I’ll get notifications if people respond etc. but getting hold of me via the git repo issues section is the best way.


Hello, does anyone know if it is possible to control the ac charging amps of the sfp5000es with HA for charging a battery with the spf5000es?

I am planning on buying this inverter with a lifepo4 battery to have it charge from ac power from my solaredge system and power nearby loads. A bit like a solar generator but without panels. I know I know, it’s not that efficient DC to AC to DC to AC but I do not want the NCA battery from solaredge.

If I can automate the charging amps, I can optimize solar charging like I have already done with the Tesla integration and have an extra inverter (after unhooking the optimizers from the de panels) should the solaredge go belly up.