Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Critical events in log #79

Open
AnetworkIT opened this issue Sep 26, 2024 · 8 comments
Open

Critical events in log #79

AnetworkIT opened this issue Sep 26, 2024 · 8 comments

Comments

@AnetworkIT
Copy link

In the HA log, I’m getting 1000’s of “UniFi access Hub type UA-G2-Pro unknown” followed up by {event.data.device.update……….} the logs are marked as (Critical)

everything seems to be working just fine.

I’ve only noticed this on the latest version of the integration. 1.2.4

Core
2024.9.2
Supervisor
2024.09.1

Running UniFi access 2.3.20
G2 Pro - 1.6.28

This error originated from a custom integration.

Logger: custom_components.unifi_access.hub
Source: custom_components/unifi_access/hub.py:437
integration: Unifi Access
First occurred: 26 September 2024 at 22:58:33 (396 occurrences)
Last logged: 08:58:33

UniFi Access Hub type UA-G2-PRO unknown

@imhotep
Copy link
Owner

imhotep commented Oct 2, 2024

@AnetworkIT which hub do you have? There is no support for UA-G2-Pro. It may still work but if it's got quirks they're unknown/unhandled by the integration. Is everything working as expected other than the warning?

@AnetworkIT
Copy link
Author

Thanks @imhotep, just using the standard UA-HUB.

We don't use the doorbell features with HA, but everything else seems to work just fine.

@slyglif
Copy link
Contributor

slyglif commented Nov 2, 2024

I also see these events for the G2-Pro connected to the UGT. For the time being they probably just need to be suppressed.

@slyglif
Copy link
Contributor

slyglif commented Nov 5, 2024

Just to clarify, the UA-G2-Pro isn't a hub, it's the video doorbell / keypad, and is plugged into the hub. I suspect it shouldn't even be getting past the hub into the websocket updates, but it definitely is (even when nothing happens on the UA-G2-Pro itself). I wouldn't be shocked if the same thing happens with the other devices like the UA-G2.

@imhotep
Copy link
Owner

imhotep commented Nov 5, 2024

@slyglif I have UA-G2-Pro keypad and a UA-Pro hooked up to 2 different UAHs and none of them are appearing in the websocket messages. So perhaps a bug in the API? Are you seeing that yourself with your hub?
I am probably going to replace the UA-Pro with a UA-G2-Pro as the screen started deteriorating and is now unusable. Will see if it happens then.

@slyglif
Copy link
Contributor

slyglif commented Nov 5, 2024

I am seeing it. I just checked the last 2 messages, hoping that there would be something different in them to indicate something is changing, but they are identical (which seems odd, because even the "event_object_id" is identical). Maybe it's related to the firmware version on either the hub or the reader. My G2-Pro has firmware 1.6.28.

@maxw3l
Copy link

maxw3l commented Dec 6, 2024

@imhotep I'm having the same issue as described here.

On 2024.11 and 2024.12 HA releases.

Here is an example of the full log event, partially sanitised:

{'event': 'access.data.device.update', 'receiver_id': '', 'event_object_id': 'X', 'save_to_history': False, 'data': {'unique_id': 'X', 'name': 'UA G2 Pro 0813', 'alias': 'G2 Garage', 'device_type': 'UA-G2-PRO', 'connected_uah_id': 'X', 'location_id': 'X', 'firmware': 'v1.7.14', 'version': None, 'ip': '192.168.0.233', 'mac': 'X', 'hw_type': 'GA', 'start_time': 1732253802, 'last_seen': 1733440886, 'security_check': True, 'source': None, 'bom_rev': '', 'guid': X', 'need_advisory': False, 'is_adopted': True, 'is_managed': True, 'is_connected': True, 'is_online': True, 'adopting': False, 'location': {'unique_id': 'X', 'name': 'Garage Slider', 'up_id': 'X', 'timezone': '', 'location_type': 'door', 'extra_type': '', 'full_name': 'Dream Machine SE - 1F - Garage Slider', 'level': 0, 'work_time': '[]', 'work_time_id': '', 'extras': {'door_cover': '', 'door_thumbnail': '/preview/reader_d8b3709a0813_80eae445-a546-427c-9ca5-15d83f94ae3e_1733440886.jpg', 'door_thumbnail_last_update': 1733440886}}, 'door': {'unique_id': '80eae445-a546-427c-9ca5-15d83f94ae3e', 'name': 'Garage Slider', 'up_id': 'ad9f1784-51cb-4110-a50a-c2ef1ef164fe', 'timezone': '', 'location_type': 'door', 'extra_type': '', 'full_name': 'Dream Machine SE - 1F - Garage Slider', 'level': 0, 'work_time': '[]', 'work_time_id': '', 'extras': {'door_cover': '', 'door_thumbnail': '/preview/reader_d8b3709a0813_80eae445-a546-427c-9ca5-15d83f94ae3e_1733440886.jpg', 'door_thumbnail_last_update': 1733440886}}, 'floor': {'unique_id': 'ad9f1784-51cb-4110-a50a-c2ef1ef164fe', 'name': '1F', 'up_id': 'b1593cde-726a-4022-8b7d-fa56304a7d0e', 'timezone': '', 'location_type': 'floor', 'extra_type': '', 'full_name': 'Dream Machine SE - 1F', 'level': 1, 'work_time': '[]', 'work_time_id': '', 'extras': {}}, 'configs': [{'device_id': 'X', 'key': 'alias', 'value': 'G2 Garage', 'tag': 'device_extra'}, {'device_id': 'X', 'key': 'ibeacon_uuid', 'value': 'X', 'tag': 'device_setting'}, {'device_id': 'X', 'key': 'ibeacon_minor', 'value': '2', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'mobile_unlock_ver2', 'value': 'yes', 'tag': 'device_setting'}, {'device_id': 'X', 'key': 'cert_fingerprint', 'value': 'X', 'tag': 'credential'}, {'device_id': 'X', 'key': 'greeting_text', 'value': 'welcome', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'pin_code_shuffle', 'value': 'no', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'nacl_public_key', 'value': 'QFfvZ8eeA2sKZm/EnlW7zLaBmOdje4ZgY0vjpcWTBA8=', 'tag': 'credential'}, {'device_id': 'd8b3709a0813', 'key': 'volume', 'value': '36', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'tof_distance', 'value': '2000', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'mobile_unlock_ver2', 'value': 'yes', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'door_bell_trigger_interface', 'value': 'swipe', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'brightness', 'value': '36', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'capture_record_extra_before', 'value': '5', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'preview', 'value': '/preview/1733440886_3d5af172-5bf2-41d0-abf0-9d51dff6b0ed.jpg', 'tag': 'device_extra'}, {'device_id': 'd8b3709a0813', 'key': 'face', 'value': 'yes', 'tag': 'open_door_mode'}, {'device_id': 'd8b3709a0813', 'key': 'ibeacon_major', 'value': '0', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'pin_code_disable', 'value': 'no', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'greeting_broadcast_name', 'value': 'first_name_only', 'tag': 'device_setting'}, {'device_id': 'd8b3709a0813', 'key': 'nfc', 'value': 'no', 'tag': 'open_door_mode'}, {'device_id': 'd8b3709a0813', 'key': 'door_entry_method', 'value': 'in', 'tag': 'door_entry_method'}, {'device_id': 'd8b3709a0813', 'key': 'ssh_user', 'value': 'ui', 'tag': 'credential'}, {'device_id': 'd8b3709a0813', 'key': 'ssh_password', 'value': 'yxcoKpFoULjenPBbQPAy', 'tag': 'credential'}, {'device_id': 'd8b3709a0813', 'key': 'pin_code', 'value': 'yes', 'tag': 'open_door_mode'}, {'device_id': 'd8b3709a0813', 'key': 'bt_tap', 'value': 'yes', 'tag': 'open_door_mode'}, {'device_id': 'd8b3709a0813', 'key': 'bt_button', 'value': 'yes', 'tag': 'open_door_mode'}, {'device_id': 'd8b3709a0813', 'key': 'bt', 'value': 'yes', 'tag': 'open_door_mode'}, {'device_id': 'd8b3709a0813', 'key': 'capture_record_extra_before', 'value': '5', 'tag': 'device_setting'}], 'update': None, 'update_manual': {'device_version_upgrade_status': {'completed': False, 'is_waiting': False, 'is_preparing': False, 'is_upgrading': False, 'upgrade_seconds': 0, 'timed_out': False, 'failed': False, 'failure_reason': '', 'is_downloading': False}, 'from_version': '', 'last_upgrade_start_time': None, 'last_upgrade_success': None, 'last_upgrade_failure_reason': '', 'last_download_start_time': None, 'last_download_success': None, 'last_download_failure_reason': '', 'downloaded': False}, 'capabilities': ['pin_code', 'pin_code_length', 'change_setting', 'remote_view', 'remote_call', 'ssh_change', 'support_register_card', 'is_reader', 'identity_is_reader', 'identity_remote_view', 'support_ui_account', 'support_webrtc', 'identity_support_webrtc', 'support_uid_webrtc', 'support_upgrade_by_url', 'support_record_extra', 'doorbell_timeout', 'doorbell_bind', 'post_capture', 'hold_to_call', 'support_face', 'identity_face_unlock', 'mobile_unlock_ver2', 'adopt_under_console', 'support_ems', 'identity_support_ems', 'anti_spoofing_level', 'show_face_method', 'support_twilio_sip'], 'resource_name': 'Dream Machine SE - 1F - Door8 - in - UA-G2-PRO-0813', 'display_model': 'UA G2 Pro', 'revision': '1733401550354676185', 'revision_update_time': 1733401556, 'version_update_time': -62135596800, 'firmware_update_time': -62135596800, 'adopt_time': 1732017314, 'extensions': [{'unique_id': 'd5fc301e-b301-4276-9c0b-d2d5ea1efe67', 'device_id': 'd8b3709a0813', 'extension_name': 'intercom_pair', 'target_type': 'admin', 'target_config': [{'config_tag': '', 'config_key': '', 'config_value': '29618975-99be-4502-a29c-c7bfb3e00baa'}]}, {'unique_id': '3d88a55b-2655-455c-9a20-7525213d6455', 'device_id': 'd8b3709a0813', 'extension_name': 'intercom_pair', 'source_id': '9c05d6d34bf2', 'target_type': 'viewer_device'}, {'unique_id': '69b34418-d388-4787-8b13-b61f38067b43', 'device_id': 'd8b3709a0813', 'extension_name': 'intercom_pair', 'source_id': '9c05d6b4b283', 'target_type': 'viewer_device'}, {'unique_id': '1611c937-b49a-4c6e-a60f-2658a0d3f492', 'device_id': 'd8b3709a0813', 'extension_name': 'intercom_pair', 'source_id': '9c05d6c23e10', 'target_type': 'viewer_device'}, {'unique_id': '734d8cb6-69a3-4370-8ff1-716f53305efe', 'device_id': 'd8b3709a0813', 'extension_name': 'intercom_pair', 'source_id': '9c05d6b4b2ae', 'target_type': 'viewer_device'}], 'model': 'UA G2 Pro', 'images': {'xs': 'https://static.ui.com/fingerprint/ui/icons/31162628-113a-428b-8786-dfeb82d46c8c_25x25.png', 's': 'https://static.ui.com/fingerprint/ui/icons/31162628-113a-428b-8786-dfeb82d46c8c_32x32.png', 'm': 'https://static.ui.com/fingerprint/ui/icons/31162628-113a-428b-8786-dfeb82d46c8c_51x51.png', 'l': 'https://static.ui.com/fingerprint/ui/icons/31162628-113a-428b-8786-dfeb82d46c8c_64x64.png', 'xl': 'https://static.ui.com/fingerprint/ui/icons/31162628-113a-428b-8786-dfeb82d46c8c_101x101.png', 'xxl': 'https://static.ui.com/fingerprint/ui/icons/31162628-113a-428b-8786-dfeb82d46c8c_128x128.png', 'base': 'icons/31162628-113a-428b-8786-dfeb82d46c8c_257x257.png', 'animation': ['icons/g2-pro-white-close.png', 'icons/g2-pro-white-open.png']}}}

@omahena
Copy link

omahena commented Jan 9, 2025

@imhotep Thank you for all your work. For me the integration is working, but I had to add the integration files manually to the HACS folders - the custom HACS repository somehow didn't get picked up.

I have these "CRITICAL" events in the log as well. Very much like maxw3l.

Are these Unifi Access events? I think these JSON chunks are logged in sequence as I was testing my UA Pro and UA Reader Lite connected to my UA Hub.

Did perhaps the JSON format change and they get logged to attract attention?

Speaking of attention... Unifi JSON events are huge and seem to contain a lot of stuff. More like memory dumps rather than events. Maybe it's just me. On the plus side you always get the full state in each JSON message.

Sorry to hear about your UA-Pro screen deterioraition. Looking at the device it feels like it shouldn't be used outside. I wonder how long mine will last.

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

No branches or pull requests

5 participants