I have been using the announce feature of the media_player successfully for a long time with my Squeezebox Radio players via the Lyrion server. This uses the Squeezebox / LMS integration, that has the announce feature documented on the integration documentation page.
Recently, this stopped working: when I play an announcement, I see a “403” error message displayed on my Squeezebox Radio. This seems to suggest that the media to play is not accessible. However, when testing in the browser, the media does play, even if I use an Incognito window where I’m not logged in to Home Assistant. I’m not aware of any changes in my network setup.
Do other people have a similar experience? Does someone know how to resolve? Any hints would be highly appreciated!
Additional info: while investigating further, I was able to reproduce the issue with the SqueezePlay app on my MacBook. Using a web browser on that very same MacBook, I am able to play the media URL directly in the browser.
More additional info. I found this in the server logs of my Lyrion Media Server (LMS):
[26-01-20 12:32:48.6342] Slim::Utils::Scanner::Remote::__ANON__ (228) Error: Can't connect to remote server to retrieve playlist for, http://192.168.78.37:8123/media/local/rotary-phone-ring-medium-103869.mp3?authSig=*****: 403 Forbidden.
So the problem is between the LMS and Home Assistant. It used to work before, so I need to figure out what changed. Any suggestions are more than welcome!
Wow, that was it. Somehow, the LMS server got banned. I’ve removed the IP from the IP ban file, restarted HA, and now it works again. Thanks a lot for suggesting, @PeteRage !