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

Данные обновляются непоследовательно #23

Open
5 tasks done
alryaz opened this issue Jul 18, 2023 · 2 comments
Open
5 tasks done
Assignees
Labels
bug Something isn't working

Comments

@alryaz
Copy link
Owner

alryaz commented Jul 18, 2023

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

  • Успешный вход в мобильное приложение 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

v2023.7.12

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

v2023.7.2

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

HACS (Home Assistant Community Store)

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

VX-4G GPS

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

АлармТрейд присылает обновления данных вразнобой по WS.
Временные метки последующих сообщений ранее чем предыдущие.

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

  1. Запустить интеграцию
  2. Подождать некоторое время (1-5 мин) (можно выполнить действие)
  3. Посмотреть в лог

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

Данные обновляются, всё происходит последовательно.

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

Предыдущее обновление:

2023-07-18 13:33:51.501 DEBUG (MainThread) [custom_components.pandora_cas.api] [1d4a88] Received WS message: {'type': 'state', 'data': {'dev_id': DEV_ID, 'online': 1689687231, 'online_utc': 1689676431, 'state_utc': 1689676431}}

Последующее обновление:

2023-07-18 13:33:52.299 DEBUG (MainThread) [custom_components.pandora_cas.api] [1d4a88] Received WS message: {'type': 'state', 'data': {'bit_state_1': 134414977, 'dev_id': DEV_ID, 'ex_status': 0, 'online': 1689687232, 'online_utc': 1689676432, 'relay': 0, 'state': 1689687226, 'state_utc': 1689676426}}
2023-07-18 13:33:52.299 DEBUG (MainThread) [custom_components.pandora_cas.api] [1d4a88] Updating state for DEV_ID
2023-07-18 13:33:52.299 WARNING (MainThread) [custom_components.pandora_cas.api] [1d4a88] State update for device DEV_ID is older than existing data (based on 'state_timestamp_utc'), this state update will be ignored completely!
2023-07-18 13:33:52.303 DEBUG (MainThread) [custom_components.pandora_cas.api] [1d4a88] Timestamp online_timestamp for DEV_ID: 1689687231 < 1689687232
2023-07-18 13:33:52.304 DEBUG (MainThread) [custom_components.pandora_cas.api] [1d4a88] Timestamp state_timestamp for DEV_ID: 1689687231 > 1689687226
2023-07-18 13:33:52.304 DEBUG (MainThread) [custom_components.pandora_cas.api] [1d4a88] Timestamp online_timestamp_utc for DEV_ID: 1689676431 < 1689676432
2023-07-18 13:33:52.304 DEBUG (MainThread) [custom_components.pandora_cas.api] [1d4a88] Timestamp state_timestamp_utc for DEV_ID: 1689676431 > 1689676426

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

No response

@alryaz alryaz added the bug Something isn't working label Jul 18, 2023
@alryaz alryaz self-assigned this Jul 18, 2023
@krisproger
Copy link

похожая ошибка на текущей версии плагина и HA выглядит так:


Logger: custom_components.pandora_cas.api
Source: custom_components/pandora_cas/api.py:1358
Integration: Pandora Car Alarm System (documentation, issues)
First occurred: 21 ноября 2023 г. в 20:33:45 (223 occurrences)
Last logged: 06:51:07

[4232a5] State update for device 1077237295 is older than existing data (based on 'state_timestamp_utc'), this state update will be ignored completely!
[4232a5] State update for device 1077241032 is older than existing data (based on 'state_timestamp_utc'), this state update will be ignored completely!
[4232a5] State update for device 1078613886 is older than existing data (based on 'state_timestamp_utc'), this state update will be ignored completely!
[4232a5] State update for device 1078613886 is older than existing data (based on 'state_timestamp'), this state update will be ignored completely!```

@alryaz
Copy link
Owner Author

alryaz commented Nov 23, 2023

Из другого тикета:

Описано в #23.
Работа над этим ведётся.
Данный safeguard внедрён для противодействия образованию "лестниц" на карте.

В субботу будет опубликована версия, в которой данный момент решён + ещё немного изменений.

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