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

When using multiple hubs/pandora accounts, some of them stops responding after a period of time #37

Open
5 tasks done
OlegVekhov opened this issue Nov 22, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@OlegVekhov
Copy link

OlegVekhov commented Nov 22, 2024

Следующие действия были мною выполнены перед созданием обращения

  • Успешный вход в мобильное приложение Pandora Connect / Pandora Online.
    Successful authentication with Pandora Connect / Pandora Online smartphone app.

  • Успешный вход на сайт https://pro.p-on.ru или https://p-on.ru.
    Successful authentication with web portal.

  • Отсутствуют явные упоминания о несовместимости устройства в README-файле.
    Any discrete mentions of incompatibility of device missing from README.

  • Смежные обращения по проблеме отсутствуют.
    There are no issues describing similar problem.

  • Лог-файлы интеграции загружены на Pastebin или скопированы в поле ниже.
    Integration log files uploaded to Pastebin or pasted into the field below.

Версия интеграции / Integration version

2024.8.2

Версия Home Assistant / Home Assistant version

2024.11.2

Способ установки интеграции / Integration install method

HACS (Home Assistant Community Store)

Модель устройства / Device model

DX-2GA, DX-4G, DX-4GVA

Описание проблемы / Problem description

After some time (as usual 8-24 hours) two of three added devices stops responding. No updates received from server pandora, no commands can be executed. The third device remains online and works. Devices are added separately, not combined in single Pandora account.

After trying to restart each of accounts from devices and services - two of them shows error - timeout, third account restarts normally

The only way to restore normal work is to completely restart Home Assistant
Снимок экрана 2024-11-22 в 12 49 50

Способ воспроизведения / Steps to reproduce

For me - just wait some time ))

Ожидаемый результат / Expected outcome

Integration works as expected

Журнал отладки и сообщения об ошибках / Traceback and logging information

home-assistant_pandora_cas_2024-11-22T09-44-30.733Z.log

Дополнительные сведения / Additional context

No response

@OlegVekhov OlegVekhov added the bug Something isn't working label Nov 22, 2024
@alryaz
Copy link
Owner

alryaz commented Feb 5, 2025

Проблема с парсингом событий исправлена в последнем обновлении.

По множеству хабов, буду глядеть.

@alryaz
Copy link
Owner

alryaz commented Feb 5, 2025

hosts = await self._resolve_host(host, port, traces=traces)

Согласно ошибке (и откуда она исходит), это проблема резолва хоста. Видимо, DNS где-то на Вашем конкретно инстансе лажает.

Выше по логу ломается также интеграция Яндекса. Вероятно, по той же причине.

@alryaz
Copy link
Owner

alryaz commented Feb 5, 2025

2024-11-22 11:34:16.323 WARNING (MainThread) [deebot_client.command] Could not execute command getBattery: Timeout reached
2024-11-22 11:34:31.323 ERROR (MainThread) [custom_components.pandora_cas] [5XABK0] Timeout fetching pandora_cas data
2024-11-22 11:35:03.325 ERROR (MainThread) [custom_components.pandora_cas] [PFHKXQ] Timeout fetching pandora_cas data
2024-11-22 11:35:42.324 ERROR (MainThread) [custom_components.pandora_cas] [5XABK0] Timeout fetching pandora_cas data
2024-11-22 11:36:11.323 ERROR (MainThread) [custom_components.yandex_station_intents.yandex_quasar] Ошибка подключения к УДЯ

Тут есть в этом проблема.

В компоненте присутствуют субрутины обнаружения поломки авторизации и др., поэтому при должной работе сети подключение к серверам Пандоры должно автоматически восстанавливаться (может быть не быстро, но должно).

  File "/config/custom_components/pandora_cas/entity.py", line 409, in <lambda>
    lambda x: int(x.data[ATTR_COMMAND_ID]) == command_id
                  ^^^^^^
AttributeError: 'dict' object has no attribute 'data'

Это баг, пришедший с обновлением HA. v2025.2.0 исправляет его.

@OlegVekhov
Copy link
Author

У себя объединил в пандоре все учетки в одну, багов больше не проявлялось.

@alryaz
Copy link
Owner

alryaz commented Feb 7, 2025

Тогда, пожалуйста, пришлите через группу поддержки в ТГ лог подлиннее (или в ЛС, там же).

По логам видно, что пропадает связь у большого количества компонентов. Атрибутировать это к большому количеству хабов не получается.

С момента изучения issue запустил тестовый инстанс с пятью хабами, работает третий день; поэтому пока что воспроизвести не удалось.

Edit: есть подозрение, что ломается центральная сессия aiohttp из-за большого количества повешенных на неё клиентов. Опять же, воспроизвести не удалось, поэтому надо глянуть лог.

alryaz added a commit that referenced this issue Feb 11, 2025
@alryaz
Copy link
Owner

alryaz commented Feb 11, 2025

@OlegVekhov попробуйте установить пререлиз v2025.2.2b0; там допущение "осознано", и, в теории, исправит проблему (если проблема, конечно же, именно в нескольких учётных записях)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants