Open Moonbase59 opened 4 years ago
Isn't this just yet another dupe of #350?...
No, seems this has to do with SSL handshaking if one of the server IPs in a DNS response is unreachable.
Noting that we possibly fight with more than one problem, I have in the meantime made the server IPv4 only so this problem can't occur for now (DNS only offering one IPv4 now) and we can fix the other issue first. I'll then come back and test this again.
Home Assistant is now dual-stack in version 0.114 - see Other Noteworthy Changes in https://www.home-assistant.io/blog/2020/08/12/release-114/
(I just happened to read this issue yesterday and soon after 0.114 was released)
This is a follow-up to https://github.com/ralph-irving/squeezelite/issues/94.
The situation: You have a dual-stack (IPv4/IPv6) environment, use a IPv6-aware DynDNS service like AVM’s MyFritz for use with a Fritz!Box, and wish to play pre-recorded or TTS-generated alert messages through LMS media players, which in turn are hosted on the Home Assistant web server, under
www/local
in your config folder (or under/api/tts_proxy/…
for TTS messages).Our findings:
-R hLE
on the SqueezeLite command line, or via LMS’custom-convert.conf
).The issue: LMS seems to have some issues here. See https://github.com/ralph-irving/squeezelite/issues/94#issuecomment-630134467 and https://github.com/ralph-irving/squeezelite/issues/94#issuecomment-630185189 for actual server logs.
Depending on the situation, it will either look like "playing" in the UI but no sound is heard, it might just show the URI, count up seconds and never start to play, or it’ll play correctly.
My proposal: Investigate this matter further, since parts of the code already seem to do things correctly. Also, if using a player that has "direct streaming" set and "CanHTTPS=1" (like SqueezeLite), it will usually work.
I’d suggest LMS behaving like others, i.e. trying all IP addresses presented in the DNS response in sequence, skipping to the next if an error occurs, and repeating until the list is exhausted, and only THEN show an error.
I reckon solving this shall make many Home Assistant + Logitech Media Server users very very happy—I’ve found so many postings on the internet regarding "Alerts/TTS doesn’t work with LMS" …