ESPHome Smoke/CO Listener

Hello!

I was looking at the Ecolink Z-Wave Smoke/CO Audio Sensor, and I realized–why couldn’t ESPHome do this?

It seems that all UL-listed U.S. smoke and CO sensors emit the same beeping patterns for smoke and CO (I think one is a long beep and one is short beeps). Since we have wake word detection now, I wonder how difficult it would be to implement this bit.

How does wake word detection currently work? Does it 1) continuously stream to Home Assistant, 2) run a pattern/model on the ESP, or 3) some combination? I imagine the smoke/CO listening could be done on-device with some sort of model or an FFT if there is compute power for that.

looking for the same, there is a thread for decibel meter that might work.