Play audio (mp3) on mumble when an event happens

Hi,

I have a mumble server running to use for various things including an intercom round the house. I wanted to play a sound (mp3) when events happen, that way I get an audible alert from my phone when e.g. someone triggers the PIR by the front door.

Create an automation to put a message on an MQTT queue and then leave this script running to listen for the message and call the mp3 file with that payload name to play it on the mumble client.

The script is a quick hack, it could probably be tidier, improved etc. If anyone has a better way (maybe turn it into an add-on so its all in HA?) then I’d love to know.

What’s a Mumble, and how does it work for an intercom?

I am certain that this can be done in an automation, but I use Node-Red to manage my MQTT

Come on Steve