For the best outcome, we recommend and only allow that qualified electricians to install hard-wired smoke alarms.