My guess is it would just back feed the panel through the same 50A breaker it's fed through. It would need sensors on the mains to understand overall load on the panel and could be set to sell back power, 0 out load of the house from the grid, or only charge... All based on schedules that you set via the app