I'm not an expert here, but I don't think you're supposed to backfeed electricity into your panel while you're connected to the grid. Doing something like this (historically at-home solar) you'd need a way to disconnect from the grid physically, at least if you wanted to reuse your home wiring.
Now, you could use the battery as a pass through power source, but then you'd have to change all the wiring in your home.