Why does your mains powered smoke alarm keep beeping?

Beeping indicates that power has been restored after a power outage and/or there is an error with your unit