I'll have to look into that.One way would be to use solar Assistant to change the TOU mode based on battery state of charge.
What inverters out there would let you do that with inverter native settings?
My sunny islands can automatically start charging the battery from grid if soc falls to a programmable level. And you can also set the soc where they stop charging