Hybrid Solar System operates in both conditions(presence/absence of main grid). Hybrid inverter has ability to decide when to connect/disconnect from the grid and when to charge/discharge the batteries.