Google Cast working but I have to host mp3 file on a website

So I finaly got my doorbell almist working. It uses a Zigbee button and a Google Nest Mini. The yaml I am using to play the sound is:

  - service: media_player.play_media
    target:
      entity_id: media_player.hall_speaker
    data:
      media_content_id: http://domain.com/wp-content/uploads/2024/01/4_loude_doorbells.mp3
      media_content_type: audio/mp3

This works but I could rather play the file from my Pi. I have the files in /media but when I try to play them Lovlace control the play button in the player breafly flashes on but I get no sound. I can use the Radio Browser to play stuff and this works.

Any idea how I can get this working?

Did you read through the documentation how to play local media?

If yes, post the yaml.

1 Like

Thsnks, google did not lead me there.