I’m new to the world of roon and have just purchased a couple of Raspberry Pis to use as endpoints. I’ve got them up and running on raspberry pi os using roon bridge and they work nicely. My only problem is that my amp does not have a power switch. Previously I used an apple airport express and I was able to automatically turn my amp on and off with the music by using a Meross smart plug and Homebridge.
I’m also running shairport-sync on the raspberry pi’s for use with Airplay 2 which works quite well. I’m able to run a script with shairport-sync every time the music is played that sends a curl command to turn the amp on and off.
Is there any simple way of doing this with roon?
After a lot of digging the only method I can seem to find is to run roon-extension-mqtt, a mqtt broker and node-red. This method seems like overkill and quite resource intensive for something that should be quite simple. I’m using alsa for audio and I can’t seem to find any way to monitor alsa for audio output (I know this is doable with pulseaudio).
Any input on how to run a simple script when a certain endpoint/bridge is started and another one when it is stopped would be GREATLY appreciated.