skrashevich/double-take

[FEAT] Occupancy entity

luzik opened this issue · 2 comments

luzik commented

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

Why are device_tracker objects not suitable for you?

luzik commented

This is exactly what I was looking for, did not notice such entity.