Random entity_id

Hi
I am trying to play a random mp3 file when using the doorbell.
However this part of the script does not work.

      - service: media_player.play_media
        data_template:
          entity_id:
            - media_player.kitchen
          media_content_type: 'music'
          media_content_id: >
           {{ [
           "http://192.168.1.13:8123/local/Westminster-chimes.mp3",
           "http://192.168.1.13:8123/local/doorbell-carillon-chime.mp3",
           "http://192.168.1.13:8123/local/Big-ben-doorbell-sound.mp3",
           ] |random }}

It returns this error
“Invalid data for call_service at pos 3: required key not provided @ data[‘media_content_type’]”

Can someone see what is wrong?

Can you change by type; music to audio/mp3 ? See what happens.

Found the reason :wink:
The last of the three network paths had an , which caused the error.