Closed guido331 closed 3 years ago
Can you share log output from the unifi-cam-proxy when the smart detections stop working?
I went a slightly different direction with this - I installed Docker and Frigate on a separate workstation so that I could use my new USB Corals. Frigate is detecting events nicely but they don't seem to be getting passed to unifi-cam-proxy from MQTT as far as I can tell. (I'm using Mosquitto MQTT as a hass.io addon) When I ran Frigate locally on my hass.io instance, unifi-cam-proxy would show detection start and detection end events. Now those events don't show up at all in the logs. This is what I see in the logs now:
2021-06-11 13:00:37 security.myinternaldomain.com FrigateCam[117671] DEBUG Sending: {'from': 'ubnt_avclient', 'functionName': 'NetworkStatus', 'inResponseTo': 278541, 'messageId': 3224, 'payload': {'connectionState': 2, 'connectionStateDescription': 'CONNECTED', 'defaultInterface': 'eth0', 'dhcpLeasetime': 86400, 'dnsServer': '192.168.1.18 192.168.1.19', 'gateway': '192.168.1.1', 'ipAddress': '192.168.1.16', 'linkDuplex': 1, 'linkSpeedMbps': 100, 'mode': 'dhcp', 'networkMask': '255.255.255.0'}, 'responseExpected': False, 'to': 'UniFiVideo'} 2021-06-11 13:00:47 security.myinternaldomain.com FrigateCam[117671] INFO Processing [GetSystemStats] message 2021-06-11 13:00:47 security.myinternaldomain.com FrigateCam[117671] DEBUG Message contents: {'from': 'UniFiVideo', 'to': 'ubnt_avclient', 'responseExpected': True, 'functionName': 'GetSystemStats', 'messageId': 278548, 'inResponseTo': 0, 'payload': {}} 2021-06-11 13:00:47 security.myinternaldomain.com FrigateCam[117671] INFO Processing [NetworkStatus] message 2021-06-11 13:00:47 security.myinternaldomain.com FrigateCam[117671] DEBUG Message contents: {'from': 'UniFiVideo', 'to': 'ubnt_avclient', 'responseExpected': True, 'functionName': 'NetworkStatus', 'messageId': 278555, 'inResponseTo': 0, 'payload': {}} 2021-06-11 13:00:47 security.myinternaldomain.com FrigateCam[117671] DEBUG Sending: {'from': 'ubnt_avclient', 'functionName': 'NetworkStatus', 'inResponseTo': 278555, 'messageId': 3225, 'payload': {'connectionState': 2, 'connectionStateDescription': 'CONNECTED', 'defaultInterface': 'eth0', 'dhcpLeasetime': 86400, 'dnsServer': '192.168.1.18 192.168.1.19', 'gateway': '192.168.1.1', 'ipAddress': '192.168.1.16', 'linkDuplex': 1, 'linkSpeedMbps': 100, 'mode': 'dhcp', 'networkMask': '255.255.255.0'}, 'responseExpected': False, 'to': 'UniFiVideo'} 2021-06-11 13:00:57 security.myinternaldomain.com FrigateCam[117671] INFO Processing [GetSystemStats] message 2021-06-11 13:00:57 security.myinternaldomain.com FrigateCam[117671] DEBUG Message contents: {'from': 'UniFiVideo', 'to': 'ubnt_avclient', 'responseExpected': True, 'functionName': 'GetSystemStats', 'messageId': 278562, 'inResponseTo': 0, 'payload': {}} 2021-06-11 13:00:57 security.myinternaldomain.com FrigateCam[117671] INFO Processing [NetworkStatus] message 2021-06-11 13:00:57 security.myinternaldomain.com FrigateCam[117671] DEBUG Message contents: {'from': 'UniFiVideo', 'to': 'ubnt_avclient', 'responseExpected': True, 'functionName': 'NetworkStatus', 'messageId': 278569, 'inResponseTo': 0, 'payload': {}} 2021-06-11 13:00:57 security.myinternaldomain.com FrigateCam[117671] DEBUG Sending: {'from': 'ubnt_avclient', 'functionName': 'NetworkStatus', 'inResponseTo': 278569, 'messageId': 3226, 'payload': {'connectionState': 2, 'connectionStateDescription': 'CONNECTED', 'defaultInterface': 'eth0', 'dhcpLeasetime': 86400, 'dnsServer': '192.168.1.18 192.168.1.19', 'gateway': '192.168.1.1', 'ipAddress': '192.168.1.16', 'linkDuplex': 1, 'linkSpeedMbps': 100, 'mode': 'dhcp', 'networkMask': '255.255.255.0'}, 'responseExpected': False, 'to': 'UniFiVideo'}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have Frigate installed through HomeAssistant and person/object detection works perfectly there. UniFi sees the smart detections and they show up with the neat little yellow bounding boxes too. For some reason the smart detections in UniFi Protect periodically stop working and the only fix seems to be to restart the unifi-cam-proxy stream. Smart detections will start working again for a little while and then randomly stop again. I have two FOSCAM cameras configured with RTSP streams as follows:
Frigate continues seeing the person/object detections even after they stop showing up in UniFi. The video continues recording in UniFi Protect and I can still view live. JUST the smart detections stop working.
Any thoughts?