Unifi Protect on 2024.1.1 not clearing motion entities

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

I updated to 2023.1.3 and it has fixed this for me, no more stuck detections