Tesla just brought this functionality to new Model 3 and Model Y cars as of Oct 1. It requires at least one Powerwall 3 to enable bidirectional V2H - what they call Powershare. But those cars can now power the home and charge from solar while the grid is offline.