I'm a firm believer in perimeter alarms. I also prefer to have active and passive alarm systems. Having a perimeter alarm increases precious reaction time. Examples of passive systems would include trip wires or movement detection alarms. Examples of an active alarm would be a dog or geese. A determined foe could be capable of bypassing either type of alarm, but the average meth head burglar isn't thinking about alarms.
Anyways, a little forewarning can give a group the time to minimally prepare for an intrusion. It's better to be forearmed than caught snoozing.
A true home invasion needs to be met with immediate overwhelming force. If you're sitting on your couch, watching TV, and your door is kicked in by hooligans, you can be sure that the intruders aren't selling Girl Scout cookies. Think about it, the intruders are forcibly entering a home knowing that it is occupied. In the ensuing confusion you must respond. Microseconds count! Part of that response is having a firearm on your person. If you don't carry ALL the time, then you're letting your guard down. The availability of a firearm is paramount, whether on your person or located close by.
If the bang occurs during the middle of the night, my defensive weaponry would either be a bullpup shotgun, bullpup rifle, or a PDW, depending upon the perceived threat level. The PDW might make the most sense, since a suppressor could be attached without losing maneuverability. Firing an unsuppressed firearm indoors without hearing protection can be overwhelming, and the aftereffects will definitely effect your ability to perceive threats using sound. So, I keep a pair of electronic muffs with whatever firearm that will be used for responding to possible threats. It also makes sense to have either night vision or thermal vision available. Think out of the box for other force multipliers, which can help you to prevail. But as mentioned in the Home Invasion article cited above, it's imperative to identify your target, and to also think about where your shots are going after they have left your firearm.
Comms are another important element to responding to a home invasion or burglary. If your location is within range of a cell tower, then a working cell phone should be kept close. In some African countries, people keep a working radio close to their beds, so that they can call neighbors for assistance. Discuss with your family how you may respond to different threats, discuss individual roles, and set up a rally point.
Home invasions could be one of the worst possible scenarios that we may encounter. A little planning could help your family survive the event.