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

Failed to retrieve lock status #243

Open
AirmakZ opened this issue Dec 21, 2024 · 4 comments
Open

Failed to retrieve lock status #243

AirmakZ opened this issue Dec 21, 2024 · 4 comments

Comments

@AirmakZ
Copy link

AirmakZ commented Dec 21, 2024

Describe the bug

The component looks working properly but showing in the log once per minute the following error and warnings:

2024-12-21 18:45:26.264 ERROR (MainThread) [custom_components.sector.client] Failed to retrieve lock status

2024-12-21 18:45:26.266 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T18:09:42', 'EventType': 'disarmed', 'LockName': ''}
2024-12-21 18:45:26.266 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T18:09:18', 'EventType': 'armed', 'LockName': ''}
2024-12-21 18:45:26.266 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T18:07:52', 'EventType': 'disarmed', 'LockName': ''}
2024-12-21 18:45:26.267 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T18:07:28', 'EventType': 'partialarmed', 'LockName': ''}
2024-12-21 18:45:26.267 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T18:01:26', 'EventType': 'disarmed', 'LockName': ''}
2024-12-21 18:45:26.267 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T18:00:16', 'EventType': 'armed', 'LockName': ''}
2024-12-21 18:45:26.267 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:58:06', 'EventType': 'disarmed', 'LockName': ''}
2024-12-21 18:45:26.267 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:57:10', 'EventType': 'armed', 'LockName': ''}
2024-12-21 18:45:26.267 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:49:38', 'EventType': 'disarmed', 'LockName': ''}
2024-12-21 18:45:26.268 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:49:27', 'EventType': 'partialarmed', 'LockName': ''}
2024-12-21 18:45:26.268 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:06:32', 'EventType': 'disarmed', 'LockName': ''}
2024-12-21 18:45:26.268 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': 'xxxxxxxxx'', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:06:19', 'EventType': 'partialarmed', 'LockName': ''}
2024-12-21 18:45:26.268 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': '', 'Channel': '', 'UserTranslationKey': '', 'Time': '2024-10-30T14:47:51', 'EventType': 'mains_restored', 'LockName': ''}
2024-12-21 18:45:26.268 WARNING (MainThread) [custom_components.sector.coordinator] Skipping invalid log entry: {'User': '', 'Channel': '', 'UserTranslationKey': '', 'Time': '2024-10-30T14:34:07', 'EventType': 'mains', 'LockName': ''}

Version

master at Dec 21th

Expected behavior

The component looks working properly

@garnser
Copy link
Collaborator

garnser commented Dec 22, 2024

Try branch 216, I’ll merge it into master the next few days

@AirmakZ
Copy link
Author

AirmakZ commented Dec 22, 2024

Hi @garnser,
I updated the component to branch 216 and still have same error and warnings once per minute

vent_logs = await self._process_event_logs(logs_data, devices)
2024-12-22 22:22:26.568 ERROR (MainThread) [custom_components.sector.client] Failed to retrieve lock status
2024-12-22 22:22:26.570 WARNING (MainThread) [custom_components.sector.coordinator] Skipping incomplete log entry: {'User': 'xxxxxx', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:01:26Z', 'EventType': 'disarmed', 'LockName': ''}
2024-12-22 22:22:26.570 WARNING (MainThread) [custom_components.sector.coordinator] Skipping incomplete log entry: {'User': 'xxxxxx', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:07:28Z', 'EventType': 'partialarmed', 'LockName': ''}
2024-12-22 22:22:26.571 WARNING (MainThread) [custom_components.sector.coordinator] Skipping incomplete log entry: {'User': 'xxxxxx', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:07:52Z', 'EventType': 'disarmed', 'LockName': ''}
2024-12-22 22:22:26.571 WARNING (MainThread) [custom_components.sector.coordinator] Skipping incomplete log entry: {'User': 'xxxxxx', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:09:18Z', 'EventType': 'armed', 'LockName': ''}
2024-12-22 22:22:26.571 WARNING (MainThread) [custom_components.sector.coordinator] Skipping incomplete log entry: {'User': 'xxxxxx', 'Channel': 'App', 'UserTranslationKey': '', 'Time': '2024-12-21T17:09:42Z', 'EventType': 'disarmed', 'LockName': ''}

@garnser
Copy link
Collaborator

garnser commented Dec 25, 2024

@AirmakZ I've changed the classification of the logs now so unless you're using DEBUG you shouldn't see these errors.
Given the log entry you're seeing we could pass this as an event, however I haven't implemented this quite yet. Hopefully I'll have some time after new years.

@AirmakZ
Copy link
Author

AirmakZ commented Dec 25, 2024

Thanks @garnser,
And congratulations to all the contributors of these project.
I'm using it from Spain and it works really nice!

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