MP3 on HASS/Synology configuration

Good morning everyone,

I tried for many hours now to setup a dog bark mp3 sound at sensor movement. I know that there are a few topics about this but it doesn’t work for my configuration.

I tried the follwing service

Thanks for helping me,

André

You can’t pass /local for media content, there is a bug report on at the moment for this issue.

At this time you need to to pass the full url:

https://YOUR-URL.duckdns.org/dog.mp3 

Hopefully this will be fixed at some point.

Hope this helps.

Yes you are right it works,

Thnx

1 Like

Hey there,

Now I have a new challenge, I got it finnaly work however now I am not able to reach Tunein on the synology app anymore. This is the working code on my Home assistant /Synology configuration.

- action:
  - alias: media_player.woonkamer
    data:
      entity_id: media_player.woonkamer
      volume_player: 0.75
    service: media_player.volume_set
  - alias: media_player.woonkamer
    data:
      entity_id: media_player.woonkamer
      media_content_id: http://internalIP:8123/local/dog.mp3
      media_content_type: MUSIC
    service: media_player.play_media
  alias: Dog Bark
  id: '1498996958911'
  trigger:
  - entity_id: sensor.aeotec_zw100_multisensor_6_burglar
    from: '0'
    platform: state
    to: '8

Anyone an idea?

Thnx,

André

^ There is no call to Tunein in that automation?

I know, but somehow it looks that something hangs in the Sonos, I will reboot it as soon as I am @ home

Sorry, misunderstood what you meant. I don’t know why it would cause any issues ‘locking’ your media player, but if it does you could always add a delay of the length of dog.mp3 and then call media_player.stop?

Okay, thanks for the suggestion. I am on a businesstrip right now, so when I come home I will experiment with it and let you know.

Thnx

1 Like