This is one of those moments (and days) where SolarAssistant and HomeAssistant works magic.
I have MQTT bridge connections between my SolarAssistant and HomeAssistant, and this allows the inverter settings to be changed (via SolarAssistant) from HomeAssistant.
View attachment 1467909
Then, I have some automations on my HomeAssistant side, that uses the "minutes until loadshedding" (90 minutes) as a trigger. I use
https://github.com/wernerhp/ha.integration.load_shedding/ and eskomsepush free API to retrieve the "minutes until loadshedding" for my area in HomeAssistant.
I then have some conditions on the trigger, that checks the battery levels, and if the batteries are quite low (such as today with poor Solar generation), then I turn the Sunsynk into what I call "vampire" mode.
Using MQTT from HA to SA, the automation changes the work mode settings of the Sunsynk to "Charge below 90%" for all the hours of the day.
This basically forces the Sunsynk to vampire from Eskom, until a few minutes before loadshedding, when I revert the work mode settings back to my regular configuration for Solar during the day, and battery at night.
This removes all the fretting about pending load shedding, during a poor solar generation day.