When you say you want to turn the inverter off after it stops charging, are you just looking to stop the ~70w/hr base draw of the inverter? If that's the case, here are a few things I learned as I built my RV system around a 300EHV-48 last year:
1) "Power Save" mode on the inverter turns off the AC and takes the parasitic load down to basically nothing.
2) If you're using the MPPT inputs and not AC coupled microinverters for your panels, which I assume you're using DC strings with this inverter, you don't even need the AC inverter on to charge the batteries from solar. So rather than turning off the inverter when the solar charging stops, think of it more like turning the inverter off anytime you don't need AC.
3) I run SolarAssistant with mine and I put in a request with the developer, and they pushed out and update already that exposes the inverter's power save mode on/off toggle in solar assistant.
4) I ended up finding that just leaving Power Save mode on actually worked pretty well, with some caveats. The microwave in my rv would pull enough power to turn on the inverter, i assume charge up its internal power supply caps, then the load would drop and then the inverter would shut off..microwave would shut off and repeat the cycle, so the microwave would beep every few seconds. We just turned the breaker off for the microwave when not in use. When we want to use the microwave, turn on some constant AC load - I usually use my laptop power supply - that'll pull the inverter out of power save mode, then flip on the breaker to use the microwave.
So, you might just turn on power save mode and find some method to break the connection from the inverter's output to your distribution panel or whatever you have downstream of it. Could be a breaker, could be something you can control via wifi (as long as the control system gets DC power directly from battery).