I have zigbee smoke detectors in the house. However I have a separate small building without zigbee coverage. This is my ‘man cave’ full of electronics and what have you. I want a notification if the smoke detector goes off. I have a raspberry running controlling the lights.
I bought a cheap USB soundcard and small microphone, into the raspberry they went.
Wrote a program that senses the frequency and volume. It also makes sure that it’s there for a duration as to not trigger on loud music etc. Sends over mqtt and triggers a mqtt smoke sensor in home assistant. I call it beep2mqtt. If it works it’s not stupid…