ThanksNot wired, but it can be programmed to behave that way. Victron has downloadable "assistants" that allow for all kinds of custom behavior. I have not yet had to use one, but I just went though it, and using some rules, I was able to generate criteria to "ignore" AC input when battery voltage is above a specified voltage for at least X time. It doesn't completely capture your criteria, but other criteria can be layered on top of that such as state of charge.
what i like to do is to use the battery power for my load and when battery goes low switch over to grid but not to charge the battery with grid but with solar .....but now im thinking there is a case when my battery goes down in the middle of the night so than i need the grid to charge the battery in case the battery powering the fridge or something importent to keep it running.... you think it is possible ?