Hi. I'm completely new to solar but am getting a system for my house with solar panels, an inverter and battery and, of course, will still have a mains supply from the grid. I aim to provide my electricity needs as much as possible from the solar and from the battery (charged from the solar or from the mains grid at times of low nightlife rate). One simple question : what is it that determines that the house draws its electricity from the solar or battery rather that the mains supply? I have seen no mention of a big switch being installed at the supply to the house that selects "Mains supply" or "Solar or battery", controlled by a user app, say. Could you please explain how the switching control and selection happens between the mains and the alternatives (and, come to that, also the selection of solar or battery within the alternative sources). Thanks.