I was thinking something like the transfer switch used with generators. Maybe a relay held closed by the grid power so that if the power is off, it isolates the house system.