In California, new home-battery-to-grid installations can be set to allow charging a battery from the grid, or discharging it to the grid, but not both.
If your battery can discharge to the grid, it must be charged only with solar power.
To get a rebate for its installation, the system must be...