jakowenko / double-take

Unified UI and API for processing and training images for facial recognition.
https://hub.docker.com/r/jakowenko/double-take
MIT License
1.25k stars 99 forks source link

[FEAT] Occupancy entity #262

Open luzik opened 2 years ago

luzik commented 2 years ago

In my humble opinion entity state should corresponding with actual state. If I look at home assistant entities (sun.sun, binary_sensor.door_state, energy, voltage, temperature, humidity) they always show actual state.

Frigate have moved their binary sensors to occupancy like binary_sensor.cameraname_person_occupancy and it is true, only if person is detected and this is awesome! (if person is moves out of camera state changes to false)

double-take is creating entity sensor.double_take_personname with value of last camera name recognize that person

My idea is to set entity sensor.double_take_personname to None/False few seconds after recognize (ideally - with recognized person tracking getting off camera view) or to create entity like binary_sensor.cameraname_personname_occupancy

Someguitarist commented 1 year ago

I realize this is old, but plus one to this. Luzik, what did you end up doing to fix?