Smoke detectors that only beep at night are acting up for a specific reason: Here's what can save your sanity and sleep.