Closed teambach closed 4 months ago
Hey there @angellusmortis, @bdraco, mind taking a look at this issue as it has been labeled with an integration (unifiprotect
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
unifiprotect documentation unifiprotect source (message by IssueLinks)
Not a bug. Events without state (duration) cannot be displayed in HA as a binary sensor.
So what does that mean? I'm new to this
The problem
I'm having a issue with the Sensor.license_plate_detected not updating in HA, After looking in the log files the Plate number is received but is not updated in the entity history, in which I cant run any automation.
Here is my Sensor.license_plate_detected history, two plate are detected and logged but two are not:
sensor.front_gate_outside_license_plate_detected none 2024-05-15T16:00:19.561Z sensor.front_gate_outside_license_plate_detected 40632P3 2024-05-15T16:01:51.770Z sensor.front_gate_outside_license_plate_detected none 2024-05-15T16:02:17.395Z sensor.front_gate_outside_license_plate_detected 57449G3 2024-05-15T17:46:11.754Z sensor.front_gate_outside_license_plate_detected none 2024-05-15T17:46:19.561Z
And here is my log file information:
Plate: 40632P3 2024-05-15 09:01:51.770 DEBUG (MainThread) [pyunifiprotect.utils] event WS msg: {'model': <ModelType.EVENT: 'event'>, 'id': '6644dc6f02e1b503e424a9b0', 'type': <EventType.SMART_DETECT: 'smartDetectZone'>, 'start': datetime.datetime(2024, 5, 15, 16, 1, 51, 381000, tzinfo=datetime.timezone.utc), 'end': None, 'score': 94, 'heatmap_id': None, 'camera_id': '6614ab7002a22b03e4000420', 'smart_detect_types': [<SmartDetectObjectType.LICENSE_PLATE: 'licensePlate'>, <SmartDetectObjectType.VEHICLE: 'vehicle'>], 'smart_detect_event_ids': [], 'thumbnail_id': None, 'user_id': None, 'timestamp': None, 'metadata': {'client_platform': None, 'reason': None, 'app_update': None, 'light_id': None, 'light_name': None, 'type': None, 'sensor_id': None, 'sensor_name': None, 'sensor_type': None, 'doorlock_id': None, 'doorlock_name': None, 'from_value': None, 'to_value': None, 'mount_type': None, 'status': None, 'alarm_type': None, 'device_id': None, 'mac': None, 'license_plate': {'name': '40632P3', 'confidence_level': 97}, 'detected_thumbnails': None}, 'deleted_at': None, 'deletion_type': None, 'category': None, 'sub_category': None}
Plate: 57449G3 2024-05-15 10:46:11.753 DEBUG (MainThread) [pyunifiprotect.utils] event WS msg: {'model': <ModelType.EVENT: 'event'>, 'id': '6644f4e302e6b503e424cd97', 'type': <EventType.SMART_DETECT: 'smartDetectZone'>, 'start': datetime.datetime(2024, 5, 15, 17, 46, 11, 409000, tzinfo=datetime.timezone.utc), 'end': None, 'score': 92, 'heatmap_id': None, 'camera_id': '6614ab7002a22b03e4000420', 'smart_detect_types': [<SmartDetectObjectType.LICENSE_PLATE: 'licensePlate'>, <SmartDetectObjectType.VEHICLE: 'vehicle'>], 'smart_detect_event_ids': [], 'thumbnail_id': None, 'user_id': None, 'timestamp': None, 'metadata': {'client_platform': None, 'reason': None, 'app_update': None, 'light_id': None, 'light_name': None, 'type': None, 'sensor_id': None, 'sensor_name': None, 'sensor_type': None, 'doorlock_id': None, 'doorlock_name': None, 'from_value': None, 'to_value': None, 'mount_type': None, 'status': None, 'alarm_type': None, 'device_id': None, 'mac': None, 'license_plate': {'name': '57449G3', 'confidence_level': 96}, 'detected_thumbnails': None}, 'deleted_at': None, 'deletion_type': None, 'category': None, 'sub_category': None}
Plate: 83657F1 2024-05-15 09:46:10.820 DEBUG (MainThread) [pyunifiprotect.utils] event WS msg: {'model': <ModelType.EVENT: 'event'>, 'id': '6644e6cb021eb503e424ba67', 'type': <EventType.SMART_DETECT: 'smartDetectZone'>, 'start': datetime.datetime(2024, 5, 15, 16, 46, 3, 241000, tzinfo=datetime.timezone.utc), 'end': datetime.datetime(2024, 5, 15, 16, 46, 10, 404000, tzinfo=datetime.timezone.utc), 'score': 94, 'heatmap_id': None, 'camera_id': '6614ab7002a22b03e4000420', 'smart_detect_types': [<SmartDetectObjectType.VEHICLE: 'vehicle'>, <SmartDetectObjectType.LICENSE_PLATE: 'licensePlate'>], 'smart_detect_event_ids': [], 'thumbnail_id': None, 'user_id': None, 'timestamp': None, 'metadata': {'client_platform': None, 'reason': None, 'app_update': None, 'light_id': None, 'light_name': None, 'type': None, 'sensor_id': None, 'sensor_name': None, 'sensor_type': None, 'doorlock_id': None, 'doorlock_name': None, 'from_value': None, 'to_value': None, 'mount_type': None, 'status': None, 'alarm_type': None, 'device_id': None, 'mac': None, 'license_plate': {'name': '83657F1', 'confidence_level': 97}, 'detected_thumbnails': None}, 'deleted_at': None, 'deletion_type': None, 'category': None, 'sub_category': None}
Plate: 8C56286 2024-05-15 10:49:01.137 DEBUG (MainThread) [pyunifiprotect.utils] event WS msg: {'model': <ModelType.EVENT: 'event'>, 'id': '6644f55e0383b503e424cee3', 'type': <EventType.SMART_DETECT: 'smartDetectZone'>, 'start': datetime.datetime(2024, 5, 15, 17, 48, 14, 559000, tzinfo=datetime.timezone.utc), 'end': datetime.datetime(2024, 5, 15, 17, 49, 0, 660000, tzinfo=datetime.timezone.utc), 'score': 91, 'heatmap_id': None, 'camera_id': '6614ab7002a22b03e4000420', 'smart_detect_types': [<SmartDetectObjectType.VEHICLE: 'vehicle'>, <SmartDetectObjectType.LICENSE_PLATE: 'licensePlate'>], 'smart_detect_event_ids': [], 'thumbnail_id': None, 'user_id': None, 'timestamp': None, 'metadata': {'client_platform': None, 'reason': None, 'app_update': None, 'light_id': None, 'light_name': None, 'type': None, 'sensor_id': None, 'sensor_name': None, 'sensor_type': None, 'doorlock_id': None, 'doorlock_name': None, 'from_value': None, 'to_value': None, 'mount_type': None, 'status': None, 'alarm_type': None, 'device_id': None, 'mac': None, 'license_plate': {'name': '8C56286', 'confidence_level': 95}, 'detected_thumbnails': None}, 'deleted_at': None, 'deletion_type': None, 'category': None, 'sub_category': None}
What do I need to do to get this fixed?
Files for reference: home-assistant_unifiprotect_2024-05-15T17-55-48.187Z.log history.txt
What version of Home Assistant Core has the issue?
core-2024.5.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
unifiprotect
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifiprotect
Diagnostics information
home-assistant_unifiprotect_2024-05-15T17-55-48.187Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response