vormsty
(Vormsty)
May 25, 2020, 1:29am
1
Hello,
I have some difficulties to set the correct path for local path.
I run HA with docker.
NGING is used as proxy for https.
for playing media:
- service: media_player.play_media
data:
entity_id: media_player.xbr_49x800e
media_content_id: https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3
media_content_type: 'music'
is working !
In the folder config I created a folder mp3
But If I replace the media content by:
media_content_id: http://192.168.1.106/local/mp3/doorbell.mp3
it doensn’t work.
I have no base_url defined because the local trafic is on http.
How can I debug this situation ?
Many thanks for your help !
Regards!
This is what I have working in my setup"
action:
- data:
media_content_id: http://serverip:8123/local/audio/1-second-of-silence.mp3
media_content_type: audio/mp4
entity_id: media_player.ccannouncements
service: media_player.play_media
I have the line for entity_id:
‘outside’ the data
section.
BTW:
Obviously, my mp3-file I in a subfolder called ‘audio’ instead of your ‘mp3’ one.
I read in another thread that audio/mp4 is more reliable than audio/mp3 - so that’s why I’m using it.
Did you follow these steps for hosting files?
You need to make a folder called www
in your config.
vormsty
(Vormsty)
May 25, 2020, 2:09pm
4
Ouahhhh many thanks for your help !
I never see I must to create the www folder !
Now it’s working perfectly ¨
Playing mp3 is much faster than tts !
Best regards !!!