Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Person Detection / People Detection sensors(i.e. AI Camera Person Detections) to trigger alarm? #1107

Open
2 tasks done
Hedda opened this issue Jan 25, 2025 · 6 comments
Open
2 tasks done

Comments

@Hedda
Copy link

Hedda commented Jan 25, 2025

Can you add sensors for Person Detection as a sensor that can trigger alarm?

I have UniFi Protect (Ubiquiti's Camera Security System) and their AI Security Cameras (as well as their "AI Port") enable "Recognitions" features that include with Person Detection events that are exposed as entities in its integration for Home Assistant.

https://help.ui.com/hc/en-us/articles/27722868256407-Using-Recognitions-in-UniFi-Protect

Person Detection recognition there basically act similar to a motion sensor but instead of "clear" the state is "On" when a person is detected and "Off" when a person is not detected.

https://help.ui.com/hc/en-us/articles/360058867233-UniFi-Protect-Advanced-Detections

The benefit of Person Detection for those systems is that it is less likley to give a false possitive compared to the motion sensor for the same Security Cameras (which will activate motion and trigger the alarm when a cat goes by).

Image

Checklist

  • I checked for similar existing requests (both open and closed) before posting.
  • My request is generic, other users may benefit from it too.

Proposal

Add "Person detected" sensors to Alarmo.

Additional info

If possible make "Person detected" sensors function just like how motion sensors functions in Alarmo.

@nielsfaber
Copy link
Owner

Assuming the entity you are referring to is a binary_sensor, it can already be configured as a sensor in alarmo.
Any binary_sensor is supported in alarmo.
Note that by default not all entities are showing up, you can click the “X items are hidden” banner to un-filter these.

@Deluxe1235
Copy link

I am using exactly that approach to detect people on my property.
As Niels is pointing, maybe it is just hidden in Alarmo.

Be aware, that those sensors like to have a fals positiv for a short moment, that was the biggest issue i had.
So adding a delay of 0.5 seconds helped me to overcome that problem:
template:

  • binary_sensor:
    • name: "Kamera 1 Person Delay"
      delay_on:
      seconds: 0.5
      state: >
      {{ states('binary_sensor.kamera_1_person') }}

Maybe a shorter delay would also work but for me it fells ok.

@Hedda
Copy link
Author

Hedda commented Jan 31, 2025

Be aware, that those sensors like to have a fals positiv for a short moment, that was the biggest issue i had. So adding a delay of 0.5 seconds helped me to overcome that problem: template

Would be nice if could set a delay in the UI directly under advanced settings for such devices.

Copy link

github-actions bot commented Apr 2, 2025

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days

@github-actions github-actions bot added the Stale label Apr 2, 2025
@Hedda
Copy link
Author

Hedda commented Apr 2, 2025

Workaround works but would be nice if person detection sensors always showed up by default in Alarmo.

@nielsfaber
Copy link
Owner

The feature request is still unclear to me.
See my previous comment.
What is meant exactly by person detection? How is this exposed to HA by your camera integration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants