Node-Red clap node to toggle lights

Hi all,

I got Home Assistant running in docker on a Raspberry Pi 4 with rasbian lite.

i've been looking into Node-Red since yesterday, to combine it with Home Assistant. I got everything working and basic light switching works fine with a button in the dasboard for example. Now I want to change that button to a hand clap. So I got myself a usb mic, but I can't get it to work.

I got the required SOX module, I did test the mic setup with " lsusb" , "arecord -l" and " arecord -D plughw:1,0 test.wav", even turned the volume to 100% with Alsamixer.

With the clap node active in node-red, it won't record, because the device is in use (which makes sense) so it must do something. But when I clap my hands several times, nothing happens.

Does anyone have experience with this specific node or other sound recording nodes?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.