bestlibre / hassio-addons

173 stars 109 forks source link

Automation to trigger a single MP3 File instead of an entire playlist... #28

Closed arretx closed 6 years ago

arretx commented 7 years ago

Is it possible through automations in HA to just tell MPD to play a single file located in the /share/mopidy/media folder or do we have to create a playlist for each independent single sound we want to play?

I attempted the following in the service panel of HA:

{ "entity_id" : "media_player.mpd", "media_content_id" : "https://mydomain.duckdns.org/local/sounds/chime_1.mp3", "media_content_type" : "music" }

But, it doesn't work. (I do have the chime_1.mp3 file in the www/sounds/ folder under config.)

arretx commented 7 years ago

I figured it out.

{ "entity_id" : "media_player.mpd", "media_content_id" : "https://mydomain.duckdns.org:8123/local/sounds/chime_1.mp3", "media_content_type" : "music" }

I was missing the port number in the URL.