Yep, I've automated my Sunsynk to adjust the settings before loadshedding via SolarAssistant and MQTT. I think it was earlier in this thread. I called it "vampire mode" -- suck as much energy to get the batteries charged as possible, if it was a bad solar day.
SolarAssistant and HomeAsssitant makes this relatively simple, with automations. And yes, you can also set the maximum charge current based on prevailing conditions.
Basically, you read bridge data from SolarAssistant into HomeAssistant via MQTT., and you can then send settings from HomeAssistant to SolarAsistant via MQTT, which then adjusts your work mode setttings, and others.