I found a great plugin for lms called lmsannounce. It give you an api to do announcements to your squeezebox-player.
Your announcement can be a playlist, a file (mp3, flac ect.) or a TTS. The cool thing is it saves whatever your playing en resumes after the announcement is done!
I’ve used it to extend my doorbell which triggers a shell command doorbell.
doorbell: 'curl -k "http://192.168.1.1:9000/plugins/LMSannounce/js.html?cmd=announcePlaylist&playlist=Doorbell&playerid=b1%3a21%3aeb%3acf%3a33%3a47"'
Works great for me!
june 17th 2022:
I now use this intergration by floris-b wich is even better!