@neil @Edent you definitely can have this! But there needs to be a transfer switch which isolates the house from the grid when the grid power is out. And that switch has to talk to the battery and be appropriately certified by the grid operator.

Tesla provides a product called the "Backup Gateway" which does this for their batteries, but many other manufacturers don't.

@neil @Edent the battery also has to be capable of re-synchronising with the grid once the power is back, which is slightly non-trivial, or else you will end up with a small drop-out (...or a large explosion) when the grid power returns.