I have solar panels, but if the mains electricity goes off, then they don’t run. I understand why that is - so that electricians working in the area know that when the grid is down, there aren’t any other power sources, so they can work safely.
Of course this doesn’t really fit a prepping model, so is there any safe & legal way to circumvent this - effectively shifting the house off-grid in the event of a power cut?