Is there a way to light Respeaker 2-Mics LEDs when rhasspy awakes?

I’m using a ReSpeaker 2-Mics Pi HAT as a microphone and was wondering if there is any way to light the LEDs when Rhasspy awakes and to turn them off when it goes to sleep?

1 Like

Yes

Need rhasspy 2.5 :upside_down_face:

Yes, all via node red. Install mic_hat first.
Use a websocket with: “ws://xxx.xxx.xxx:12101/api/events/log”. That is the event log for Rhasspy. Then use a switch function for wakeup and for when it stops listeneing.
I use a MQTT trigger for SSH commands to the host system (raspbian).
To start the led ring, send the SSH command to the raspberry: cd 4mics_hat && python3 pixels.py
And to stop it, send the SSH command: ps aux | grep -i pixels.py | awk {‘print $2’} | xargs kill -SIGINT

1 Like

when will it be release 2.5?