I second the early warning system, but if you can go old school that is what I would do get a dog.

The dog will give you more than enough time to put on your glasses and grab a gun.