Both this and your earlier suggestion worked for me. I think media-source:// is probably more elegant as you don’t need the IP address.
edit: So, actually had to revert to the http:// path because i get an authentication error after about 30 minutes otherwise (when playing a 1 hour mp3). Happens repeatedly unless i use the unauthenticated www directory method.
Sorry for stupid question, but how to play audio file on machine where webui is open? I have created automation, but it does not play audio when I hit execute. I do not use google mini neither maxi, I just want file to be played by browser in an event.
I searched for this solution for about 3hrs before stumbling upon this. Not sure why it was so difficult to find this answer, maybe just my poor searching being new to HA.
Anyways, this is the only thing that worked for me. tried local IP, remote IP, creating www folder in config, etc etc etc.