Skip to content
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

SRS-XB402G Reconnecting Issues. #89

Open
ABrauser opened this issue Apr 12, 2021 · 4 comments
Open

SRS-XB402G Reconnecting Issues. #89

ABrauser opened this issue Apr 12, 2021 · 4 comments

Comments

@ABrauser
Copy link

Hello Guys,

i have bought a SRS-XB402G and have issues to control the device via Home Assistant. I dont know why but it keeps reconnecting the device for no reason. https://i.imgur.com/w4hgF7F.png i am a bit confused because i have also some Other Boxes from Sony like SRS-XB501G or SRS-ZR5 that works without any issues. I also found out the port are different to the other sony boxes i have https://i.imgur.com/XbIa9uW.png the only one that also usses the port :10000 is my old soundbar HT-CT790. Is this maybe related with the Reconnecting issues? Also i want to mentions i live in Europe and the SRS-XB402G is an Import from the USA. i dont think that should be an issue, because i was able to integrate this Google Assistant Speaker into my Google Home environment. The Soundbox can be controlled via Music Center (Android App) but in my Home Assistant configuration it still keeps Disconnecting and Reconnecting. Have someone a hint what i can check or change? Kind regards Brauser

@ABrauser
Copy link
Author

Hi, i made some more digging with "songpal discover" -> ERROR :songpal.discovery:Unable to finx X_ScalaerwebAPI_DeviceInfo https://i.imgur.com/gePq2df.png -> i followed the url https://i.imgur.com/8aSWJad.png but im not sure what i am seeing.

@ABrauser
Copy link
Author

Got some more informations i found out. https://i.imgur.com/8USQogz.png I receive errors when getting the status of the device via songpal --endpoint ~uri status. also i noticed it says "scheme='alexa') but it is the SRS-XB402G (G = google) and not SRS-XB402M (M = Alexa) also there are errors when calling up the "googlecast" settings for the speaker. Hope those informations are useful to find the issue.

@rytilahti
Copy link
Owner

Hi there,

could you please copy&paste the relevant log information here nstead of uploading something to external services which may remove that information at some point?

Anyway, some devices do not expose the API endpoint (#82 might be related) to download information about supported devices. If you are, as it seems to be, able to use some methods using this library, it may just be that the specific functionality is not supported by the device (potentially related to the mode the device is in, for example, listing contents does not work if you have no USB stick plugged in).

About the ScalarWebAPI_DeviceInfo, the discovery searches for that in the UPnP device description file to see if the device supports the API. Again, there may be devices that support the API even if they are not advertising for it, or the detection heuristic can also be incomplete.

@ABrauser
Copy link
Author

ABrauser commented Apr 14, 2021

Hi rytilahti,

ty for the reply, well it was just easier for me to create screenshots but you are right. Here are the errors what are appearing, it seems there is an issue with the connection:

2021-04-14 07:47:15 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Connection reestablished
2021-04-14 07:47:15 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Got disconnected, trying to reconnect
2021-04-14 07:47:25 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Connection reestablished
2021-04-14 07:47:25 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Got disconnected, trying to reconnect
2021-04-14 07:47:35 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Connection reestablished
2021-04-14 07:47:35 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Got disconnected, trying to reconnect
2021-04-14 07:47:46 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Connection reestablished
2021-04-14 07:47:46 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Got disconnected, trying to reconnect
2021-04-14 07:48:06 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Connection reestablished
2021-04-14 07:48:06 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Got disconnected, trying to reconnect
2021-04-14 07:48:16 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Connection reestablished
2021-04-14 07:48:16 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Got disconnected, trying to reconnect
2021-04-14 07:48:26 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Connection reestablished
2021-04-14 07:48:26 WARNING (MainThread) [homeassistant.components.songpal.media_player] [SRS-XB402G(http://192.168.0.47:10000/sony)] Got disconnected, trying to reconnect

I also can see for a short second that i can "Control" the device like the others, like turning it on / off or chance the volume, like the SRS-XB501G but because of the "reconnect" in the same second it just disappear. and it looks like it is not connected. So i think there is maybe a bug in the "Heartbeat for this device so the code always thinks it is not online, but it is, for my understanding.

btw, you can add the following devices to the list of supported Devices that i also own and work without any issues sofar: HT-CT790, SRS-ZR5, SRS-XB501G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants