Hardware wise, there are relays to control the output from the invertor, but no relays for inputs. So you can't just cut-off the battery.
Firmware wise, because the solar is not stable as the batteries, the battery will be chosen as the first choice all the time. Another thing is it is difficult...