Playback Media on Network, cant use "service: media_player.play_media", but works on gui?

I want to playback sound from the newly integrated network storage.
Setup of storage is fine and I am able to play the file via the media browser graphical user interface.

But I cannot play using the service,eg:

service: media_player.play_media
target:
entity_id: media_player.lsx_wohnzimmer
data:
media_content_type: “music”
media_content_id: “media-source://media_source/local/test.mp3”

I did read the docs at Media Source - Home Assistant
but to no benefit. Maybe i just cant get the path to the media file right, which is embarassing/annoying. I did try with /local or /media or /nameofmymedianetworkshare.

I do not get an error in the logs either. And the player entity switches to play for an instant and goes back to idle immediately.

Any help is much appreciated.

Please could you paste your yaml as preformatted text (</> in the toolbar). It’s hard to see what’s going on otherwise.

Sure. I do most things in node red (normally automations and service calls too), thus config is nearly vanilla:


# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

# zigbee ota updates folder and auto
zha:
  zigpy_config:
    ota:
      ikea_provider: true
      ledvance_provider: true
      otau_directory: /config/zigpy_ota

Or did you refer to a specific config file?