OK I'm pleased that your mentioned the issue of too many writes to the EEPROM as I was planning to use this approach! I will try this anyway for a short time, just to see if it works.
I now have access to the inverter RS485 modbus using
this project, I flashed a D1-Mini with the sketch, plugged it into the inverter's USB port and can read/write the registers successfully via MQTT, it works perfectly.
I will build a modbus interface for the export controller inputs and dump the registers, they may be very simple. Or did you do this already?
I have one other question. In the screenshot above it looks like you could enable register 122 option 3
"Enable CT clamp export limit" and directly attached a CT clamp to pins 5 and 6 to get realtime export control. But I'm not sure what the Growatt CT clamp specs are?
CT clamps can output voltage or ampage of different ranges. I wonder If we can directly control the input voltage to these pins and gain control over the export control by emulating the CT clamp.
View attachment 109025