HA 2024.1.0 and .1 installed on 6th Jan.
Protect is on an NVR, running Protect 2.10.11.
Cameras are running 4.68.21.
Cams are set-up to continuously record. The motion entities when triggered are no longer clearing reliably, and stay on on many occasions until subsequent motion is detected, at which point they clear and reactivate.
I’ve rebooted cameras and NVR, no change.
Reloading the integration correctly gets the camera’s ‘clear’ status.
It appears that the integration (for me at least) is not correctly picking up motion event clearings.
I’ve not logged a bug at this stage.
If I tweak motion settings in Protect, the entity resets into HA.
For example, I changed the sensitivity of a camera’s motion detection down to 40%, and the stuck-on entity in HA went back to clear.
Filtering the Unifi Protect entities through an auto-off template binary sensor works. E.g.:
- trigger:
- platform: state
entity_id: binary_sensor.front_g4p_motion
to: "on"
binary_sensor:
- name: "Front Camera Motion (filtered)"
unique_id: 2452716747975
device_class: motion
state: >
{%- if is_state('binary_sensor.front_g4p_motion', 'on') %}
on
{%- else -%}
off
{%- endif -%}
auto_off:
seconds: 30
In this screenshot the native sensors is the middle one, the bottom one is a template based on the native one person and vehicle smart motions combined and the top one is the filtered one:
I walked in front of the camera twice - once at 8.23 and once at 8.27.
This is happening to me as well but I’m on 2023.12
There’s a GitHub issue open
opened 11:46AM - 30 Nov 23 UTC
integration: unifiprotect
### The problem
I have noticed since updating to 2023.11.3 and Unifi-Protect … 2.9.42 that the binary sensors for object detection and person detection are turning on but now do not turn for approximately 8-10 minutes after the detection should stop. I'm not quite sure which component of the integration is causing this. I have checked the Unifi Protect app and it does not show ongoing detections but the sensor is still "on" in HA.
I have recently upgraded to 2023.11.3 and Unifi-Protect 2.9.42 before I experienced this issue.
I have G4 Pro cameras and a G4 Doorbell Pro PoE.
Curious if anyone else has experienced this issue since the recent updates? I checked the pyunifiprotect repo and I do not see any issues posted there either on this topic.
### What version of Home Assistant Core has the issue?
core-2023.11.3
### What was the last working version of Home Assistant Core?
core-2023.11.2
### What type of installation are you running?
Home Assistant Supervisor
### Integration causing the issue
Unifi Protect
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifiprotect/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
I updated to 2023.1.3 and it has fixed this for me, no more stuck detections
opened 11:46AM - 30 Nov 23 UTC
closed 05:02AM - 11 Jan 24 UTC
integration: unifiprotect
### The problem
I have noticed since updating to 2023.11.3 and Unifi-Protect … 2.9.42 that the binary sensors for object detection and person detection are turning on but now do not turn for approximately 8-10 minutes after the detection should stop. I'm not quite sure which component of the integration is causing this. I have checked the Unifi Protect app and it does not show ongoing detections but the sensor is still "on" in HA.
I have recently upgraded to 2023.11.3 and Unifi-Protect 2.9.42 before I experienced this issue.
I have G4 Pro cameras and a G4 Doorbell Pro PoE.
Curious if anyone else has experienced this issue since the recent updates? I checked the pyunifiprotect repo and I do not see any issues posted there either on this topic.
### What version of Home Assistant Core has the issue?
core-2023.11.3
### What was the last working version of Home Assistant Core?
core-2023.11.2
### What type of installation are you running?
Home Assistant Supervisor
### Integration causing the issue
Unifi Protect
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifiprotect/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_