Make a dumb smoke alarm connect to Home Assistant with ESP8266

A while ago, I converted my cheap dumb smoke alarms into “smart” smoke alarms. I connected an ESP8266, voltage regulator, etc. The directions can be found HERE.

There is a smoke alarm in each bedroom and a hallway. The smoke alarms will tell Home Assistant which one is trigger by different code in each.