Yes, adding target_power will add a slider to the device in the app and flow cards are also created automatically. The only thing to do is add code to write to the holding register and give the user a setting to configure the maximum the inverter is capable of, everything else is handled by Homey as it’s a builtin capability.
yeah, I think you need to set active power (need to check what it is ) instead where you limit the power output on the inverter.
adjust by looking at your P1 meter.
but indeed exportlimit etc is for modbus with 485,232 and CT . you need to add this device.
by the way the test version already has it solaredge.modbus/drivers/growatt/device.ts at main · biemond/solaredge.modbus · GitHub
It’s activePRate (at least on the TLS)
yeah just saw it , you did it already. can backport it to the other
@DaneedeKruyff how do you use this ? I guess you have meters installed , not more handy to set Export limit instead to zero , let the inverter adjust it all the time and at least do your houseload. or when prices are negative you like to import as much you can,
No, I haven’t yet been able to set it up with a meter, so that’s why I use target_power. That operates without a meter and will keep the setting you configure.
When I enabled the export limit setting my inverters became unresponsive as they wouldn’t operate properly without a meter. I hade to manually reconfigure them on the devices themselves. That’s why I added an item in the device’s settings you have to confirm before you can use the export limit settings.
Perhaps newer firmwares will ignore the export limit settings when no meter is found, but I wouldn’t take the risk.
I just looked at it, on it’s own it does nothing, but can be used to make it abstract for a user.
When target_power_mode is set to Device you’d have the app set the exportlimit capabilities, thus the Growatt will handle it itself, and when set to Homey you’d have the app set the target_power capability, thus Homey being in control.
But seeing @Menno_De_Braak wants his EMS app to be in control, it would not make sense to use the export limit capabilities.
thanks that explains . but that is what @Menno_De_Braak also need to do , or install some meters.
for me it is a bit hard. got 1 phase inverters max 4k to the grid or house but 5k charging does not count for this , 7kw watt peak on the total of the panels. so I guess I need to do some adjustable steps up and down until I see the right result on the P1 meter. and start with 25 , 50 or 75%
but for plain inverters it is easier indeed.
Hi Danee and Edwin,
That makes total sense — I clearly misunderstood the purpose of those registers. Good to know exportlimitpowerrate requires a physical meter.
If you’re already working on adding target_power / activePRate to the regular Growatt driver (MIN/MIC), I’d be happy to test it. I have two Growatt MIC 2500s connected via Modbus TCP and a P1 meter in Homey — exactly the setup where closed-loop curtailment via target_power would be useful.
Just let me know when there’s a test version available and I’ll give it a try!
Hi @Menno_De_Braak,
I’m not working on adding target_power to the Growatt device, I’ve added it to the Growatt TLS device. I can look into it, I know what to change/add, but not when I have the time for it. Also, I would have to rely on you (and others) for testing as I don’t have a non TLS Growatt inverter.
Hi Danee, thanks for the update! I’m happy to test — I have two Growatt MIC 2500s connected via Modbus TCP.
If it helps, I could also write the PR myself and have you review it. Based on what I’ve seen in the code, it seems like it would mainly be:
- Adding
activePRate: [3, 1, 'UINT16', ...]toholdingRegistersBaseingrowatt.ts - Adding the
target_powercapability to the regular Growatt driver
I’ll first do a quick manual Modbus write to holding register 3 on my MIC to confirm it’s the same register as TLS. If that works, I’ll put together a PR for you to review. Would that work for you?
Yeah, so from the top if my head it’s basically that. For the TLS I had a migration path due to the fact I added a capability earlier before Athom defined their energy related capabilities, but for the regular Growatt that’s not the case.
I can have a look at a PR, but Edwin will have to accept it.
Maybe you can ask someone else with a regular Growatt to test it too, I know @Phil_Bro has regular Growatt(s)
Any progress here? Sorry for being impatient, I really want to connect it to my Ultimate EMS app and test it.
No, not from my side, you proposed to write the Pull Request yourself and let me have a look at it, so I did not look at it and was waiting for you message to have a look at your PR ![]()
Hi Edmin, thanks for your very nice app!
It used to work for me for several days, but since some weeks it doesn’t work anymore for me. It won’t wake up anymore. It looks like this: “0W (3 days ago)”, the sun is shining atm.
A restart of the app doesn’t work either!
I can only bring it to work only if I uninstall the device and reinstall it again.
I alredy sent you my report here: fdc33970-d50c-4c85-ba8f-481c283f2b6f
Would you have a look into my problem, please?!
Thanks in advance!
Markus
Seems to be a firmware problem, see Modbus TCP connection stops on Solaredge SE3000H-RW000BNN4 · Issue #249 · biemond/solaredge.modbus · GitHub
Will report if a firmware downgrade helps in my case…
(German) answer from SolarEdge:
Sehr geehrte Kundin, sehr geehrter Kunde,
vielen Dank für die Übermittlung der Wechselrichter-Daten.
Wir haben das Problem mit der Modbus-TCP-Verbindung identifiziert und behoben.
Auf Ihrem Wechselrichter war die CPU-Firmware-Version 4.24.22 installiert; diese verursachte Probleme bei der Modbus-TCP-Kommunikation, nachdem der Wechselrichter aus dem Nacht-Standby erwacht war. Um dies zu beheben, haben wir die Firmware des Wechselrichters aus der Ferne auf die neuere CPU-Version aktualisiert.
Das Update wurde erfolgreich durchgeführt.
Bitte beobachten Sie das System in den kommenden Tagen am Morgen und überprüfen Sie, ob sich Ihr Homey Pro automatisch wieder über Modbus TCP verbindet, sobald der Wechselrichter nach Sonnenaufgang die Stromerzeugung aufnimmt.
Bleibt die Verbindung ohne Neustart stabil, gilt das Problem als gelöst.
Sollte das Problem trotz des Firmware-Updates weiterhin bestehen, geben Sie uns bitte Bescheid, damit wir der Sache weiter nachgehen können.
Mit freundlichen Grüßen
Works at the moment, will report tomorrow, if it wakes up correctly after sunrise…
EDIT: It works as expected now!
Hi @Edwin_Biemond,
This app works great for me, and it’s already able to control register 3036 (GridFirstDischargePowerRate) on my Growatt MIN3600TL-XH (growattwithbatt_tl). I use it to prevent the battery from being drained quickly by my EV charger.
The only thing I’m missing right now is the ability to see the current percentage back in Homey, and use that value in flows — for example, to check that my writes to this register actually succeeded.
Since it’s a read/write register, would it be possible to also add a readout for it for this inverter type?
Thanks for the great app!




