home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.83k stars 30.91k forks source link

Failed communicating with LMS : Logitech media server - Squeezebox #26838

Closed ramibouaoun closed 3 years ago

ramibouaoun commented 5 years ago

home assistant 0.99.2

configuration.yaml media_player:

LMS is working while using : http://LMS_server_ip:9000

logs: Failed communicating with LMS: <class 'concurrent.futures._base.TimeoutError'>

Spirituss commented 5 years ago

I have the same issue (see https://github.com/home-assistant/home-assistant/issues/26429). With 0.99.2 all squeezebox players became never working. None of my squeezebox players are enable in HA. Please, correct the component. It seems that the component makes only one try to connect LMS just after HA start. It would be great to either make standard platform's tag scan_interval working as interval between LMS connection retry or add fully automated LMS rescan with reasonable periods.

DeviousPenguin commented 5 years ago

It seems that the component makes only one try to connect LMS just after HA start. It would be great to either make standard platform's tag scan_interval working as interval between LMS connection retry or add fully automated LMS rescan with reasonable periods.

It's been like this for well over a year, there was a fix but it was for a very old version. I did try adding the fix to the latest squeezebox component but it just broke, however I'm inexperienced with Python.

Spirituss commented 5 years ago

I tried to use scan_interval. Since there is only one error message in log caused just after HA start, I assume that there is no repeated tries of connection.

ramibouaoun commented 5 years ago

it is now working with the new HA 0.99.3

ramibouaoun commented 5 years ago

it stopped working after system reboot

VinhLg commented 4 years ago

Hi, I have the same problem : <Failed communicating with LMS: <class 'aiohttp.client_exceptions.ClientConnectorError'> I have tried to open the 9000 (for mysqueezebox.com ?) 9002 port (http), 9090 (telnet), Password and username put in the yaml file… but it doesn't work :(

Does anyone have a idea of the problem ?

DeviousPenguin commented 4 years ago

it is now working with the new HA 0.99.3

Thanks, I've just tried it out and I'm getting less errors in the log.

However the HA Squeezebox component is still broken for me, I have to restart HA everytime a new media player is powered on otherwise it does not appear in HA.

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Spirituss commented 4 years ago

I still receive thousands of messages like ERROR (MainThread) [homeassistant.components.squeezebox.media_player] Failed communicating with LMS: <class 'aiohttp.client_exceptions.ServerDisconnectedError'> in log file. I use Home Assistant 1.106.5. Nevertheless, the media players in HA work correctly.

DeviousPenguin commented 4 years ago

I use Home Assistant 1.106.5. Nevertheless, the media players in HA work correctly.

At least they work for you, despite the errors.

For me I can power on a squeezebox device and it does not even appear in HAC!

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Spirituss commented 4 years ago

The messages still exist in HA 0.111.1, nothing have been changed yet.

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Spirituss commented 4 years ago

The issue is still actual. On HA 0.114.3 I still have the next errors in log:

ERROR (MainThread) [pysqueezebox.server] Failed communicating with LMS: <class 'asyncio.exceptions.TimeoutError'>
...
ERROR (MainThread) [pysqueezebox.server] Failed communicating with LMS: <class 'aiohttp.client_exceptions.ClientOSError'>
...
ERROR (MainThread) [pysqueezebox.server] Failed communicating with LMS: <class 'aiohttp.client_exceptions.ClientConnectorError'>
...
sam2b commented 3 years ago

This is the case with me as well. I would love to have the Logitech Media Player (with attached soft squeeze software player) to be used as an audio player, particularly for mp3 sound effect served from my local network. TTS would be a plus. :)

My configuration.yaml

  - platform: squeezebox
    host: 192.168.1.107
    port: 9000
    username: !secret squeeze_username
    password: !secret squeeze_password

Supervisor version 2020.12.7 Home Assistant OS 5.9 Raspberry Pi 3

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Spirituss commented 3 years ago

Still regularly receive tons of these messages in HA log. Waiting for the fix.

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Spirituss commented 3 years ago

Still is the issue

tayanov commented 3 years ago

+1

sam2b commented 3 years ago

+1 The problem still exists.

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

RichVarney commented 1 year ago

+1 the issue still exists. I get 1 error message for each squeezebox, every 10 seconds. So for my three players I get over 1,000 error messages per hour.

I get the error messages when my LMS server is turned off. So this isn't an error that it cannot connect, should just be a warning or info message.

Is there any way to reduce the number of error messages? Or to turn off the integration under certain conditions?