There are some possibilities to switch something at a certain SOC level
You can use the generator start/stop feature first
Other very easy way is node red . You can switch a shelly direct or send a message via mqqt or modbus to other devices in your network.

Also have a view at the ESS handbook