-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sony Songpal becomes unavailable/available every minute #151
Comments
I think here's the relevant piece of information:
@allistermaguire any ideas? :-) |
@rytilahti Not a lot to go on in the logs, but I will have a look. |
Thanks 👍 My understanding is that something just breaks the websocket connection. A more complete log is in the linked issue, but I couldn't tell anything that clearly pinpoints what exactly. Maybe be one of the notification subscription, as those are the last lines pre-exception, but it feels odd? |
Thanks. Yeah, it is odd, that is my thought as well, there is very little between |
That is just about exporting those classes through the main package, so it shouldn't be an issue. My guess would have been some general network issues, but when downgrading fixes it.. 🤷 @clowncracker is it really working consistently on the earlier version, or did you just get lucky / could it be caused by weak wifi signal or something similar? |
@rytilahti I don't believe the issue is wifi related. It's been three days since I've downgraded to 0.16.0 and the issue hasn't showed up in my logs once. On 0.16.1 it was happening every minute. |
I agree, but from the logs, I can see that the conditional logic in #145 isn't entered. @clowncracker what device do you have? To help to diagnose, can you please run the following commands on your Home Assistant machine?
|
zsh: command not found: songpal Does the songpal command not work when changing songpal to a custom component? The device is a HT-A7000. |
Hey @clowncracker, it should, as a dependency it will download and install. I have looked at home-assistant/core#111121 to see what you did, and that looks fine. You do have a mismatch of versions; I think you have 2024.2.2 installed, and running songpal from 2024.3.0. But the difference is very small, so should be good. How do you run Home Assistant? is it installed in a python virtual environment? If the later, you will need to run those commands within the virtual environment. |
@allistermaguire I opened the ticket awhile ago, I have 2024.3.1 installed at this point. I'm running HA in a VM, I opened the terminal window and got the response I mentioned previously. |
Thanks @clowncracker, is it Home Assistant Operating System as the VM, or did you install Linux and then HA on top? I run HA in docker, so I am trying to understand your setup better so I can provide more assistance. |
I'm running it on an Unraid server as a VM. I cannot use the command through the Advanced SSH & Web Terminal addon or through just opening the terminal through the VM. |
Thanks @clowncracker. I don't know much about HA OS, but I have done some reading. As you say that will not work as you are not within the docker container. You will need to disabled protective mode, you can see instructions here https://github.com/hassio-addons/addon-ssh/blob/main/ssh/rootfs/usr/local/bin/docker And then it is possible to connect to the container by running the following:
Once connected, |
Hey @clowncracker, have you been able to get the above to work? need some additional data to help diagnose your issue. |
home-assistant/core#114525 bumps the version, so this should work in the upcoming homeassistant 2024.4 again. @clowncracker please reopen this issue, if it isn't working for you. @allistermaguire thanks for the quick fix! 💯 |
@rytilahti not sure if I should open a new ticket, but this has started happening again. It gets disconnected in random intervals and it reconnects again after 11 seconds every time. |
Hi @clowncracker, I am not 99% sure that the fix included wasn't going to fix the disconnecting issue you were experiencing. You can tell if the fix applies to you as there will be INFO messages logged like the one below. Obviously, the %s will have been replaced with the API method and version. Let me know if you have any of these logged.
What happens if you restart the VM running HA? not just HA. Does it work for a few days, maybe longer before your disconnection issue reappears? |
@allistermaguire there doesn't seem to be any difference between restarting HA or restarting the VM. It isn't happening every minute like last time, it's happening sporadically throughout the day, so it's nearly impossible to get a debug log. What's weird is that it always reconnects exactly 11 seconds later every time. Which makes me think the issue is either with HA or with Songpal itself. I turned on debug logging and I'll post an update once it happens again, so it might be a few hours before I have anything useful to bring. For what it's worth here are the HA logs (I restarted the VM last night, which is why the error only showed up once so far):
|
Here is the debug log. I'd like to note that now Home Assistant has issues starting Songpal when booting HA, but I'm guessing that is a unrelated issue. I didn't bother to bring that up, but you can see that in the logs. I was going to put in a ticket in HA Core for that because I think that's a startup problem. I left it in the logs in case you are curious:
|
I'm wondering if this could be related to home-assistant/core#119626 and home-assistant/core#106589 - i.e., the same sound mode call triggering a different bug on different devices? Anyway, I think it'd be better to create a new separate issue to track this, as it feels like it's a separate issue. |
I've created a new ticket here: #156 |
Opening a ticket here per: home-assistant/core#111121.
It looks like the cause of the issue is #145.
The text was updated successfully, but these errors were encountered: