Let Sonos be a siren

Hello.
I am working on a burglar alarm in HASS and I like my Sonos system to work as a siren.
I got a mp3 file with the sirene noise, so I wonder if I could locate the file on my Raspberry Pi (hosting HASS) and let Sonos play the link from there?
Is this possible?

Which folder should I be located in? (Addons, backup, config, share)
And what would the weblink for the file be?

Best regards,
Mathias

You can use something like this:

   action:
     - service: media_player.play_media
       data:
         entity_id: media_player.mysonos
         media_content_type: MUSIC
         media_content_id: "http://automator.fritz.box:8123/local/noise.mp3"

You have to put your .mp3 into www/ in your home assistant home directory where you keep all your config files.

Thank you for your help :slight_smile:

Hi, can you share your siren file?

Please note that you will need to put a UPS for your internet router and your sonos, to make it work, in case smart thieves disconnect electricity

Is this solution still valid or is there a better way to have a sonos speaker be an alarm siren.