Hi everybody,
I’m new with HA and somehow struggling with the playback of a local mp3-file. I’m using the service media_player.play_media and the file is located on my HA-machine within the media-folder (subfolder audio):
service: media_player.play_media
data:
media_content_id: 'http:/192.168.178.121:8123/media/audio/Achtung-Im-Bad-oder-WC-Fenster.mp3'
media_content_type: music
target:
entity_id: media_player.wohnzimmer_sonos
Unfortunately I can’t get any playback. The logfile says:
ERROR (SyncWorker_0) [homeassistant.components.sonos.media_player] Error on play_media with UPnP Error 714 received: Illegal MIME-Type from 192.168.178.54
Also, I believe there’s an issue (bug) with accessing the default media folder via URL. I ended up creating a folder named sounds under root/config/www and reference it like this:
04 - Per l’esempio parlo di un file mp3 chiamato “Doorbell.mp3” però credo sia uguale anche per altre estensioni.
Usando l’estensione “Samba” posizionare i file nella cartella \HOMEASSISTANT\media\mpd\media\Doorbell.mp3
05 - Sull’interfaccia web di MDP andare su “settings/update DB/save” e vi verrà aggiornata la lista dei file disponibili.
06 - Per usare i file mp3 sulle automazioni io ho usato il seguente testo:
I have mine running in VMWare Fusion. I assume it’s just the same.
Use the add-on Samba Share to expose your Home Assistant files on your local network.
That’s the easiest way to get at the files. Visual Studio Code even allows you to drag and drop tiles to your directories.
Hi. I have installed Hassio on Raspi.
I want to do something simple. I want to send an mp3 audio file to Google mini when an event occurs. The audio file is stored under the media folder. Now if I launch the service from Develeper Tools the file is played, but it doesn’t work from the automation. From Google mini, only the Google assistant type sound is lacking. Anyone have an idea?