[Support]: HASS integration and zone occupancy events #11046
Describe the problem you are havingI have an automation set up in Home Assistant to detect when people are detected in certain zones, and there's one camera and zone that seems to get a lot of hits, yet checking the recorded events shows that the person was never really in the zone, but perhaps just really close. I have read up on how the motion and object tracking works, and I'm wondering if it's by design, or if perhaps there's some advanced tweaks I can do to this particular camera (outside of shrinking the zone boundaries) to reduce the chances of this happening. In most cases, the people are walking dogs, and the dogs usually do enter the zone (which I don't care about). Would this possibly trigger Frigate to assume the person is in the zone too because Frigate detected motion in the zone (the dog), and detected a person in frame (but not in the zone)? If that's not the issue, would Frigate consider an object in a zone even if the bounding box is just 😗 kissing it on the edge? Is there a way to control how much of the object needs to be inside a zone before it's considered occupying it? Or, is it just the HASS integration and how it works? Should I switch to using MQTT events instead? Version0.13.2 Frigate config filerecord:
enabled: true
detect:
width: 1280
height: 720
stationary:
max_frames:
objects:
person: 600
car: 600
snapshots:
enabled: true
objects:
track:
- person
- car
- dog
- cat
filters:
person:
mask:
- 0,0,1280,0,1280,0,1280,256,1234,231,1168,201,1060,160,930,134,761,115,604,109,431,113,257,130,94,163,0,189Relevant log outputn/aFFprobe output from your cameran/aFrigate statsNo response Operating systemProxmox Install methodDocker Compose Coral versionCPU (no coral) Network connectionWired Camera make and modeln/a Any other information that may be helpfulMy automation is using the "occupied" trigger type which is simply "Zone person occupancy became occupied" and I can't tweak it outside of that. |
Replies: 2 comments 3 replies
|
That's just how the integration sensors report things. Most likely the object is not detected as a true positive so the event is never created. It doesn't matter how much of the object is in the zone, see the docs https://docs.frigate.video/configuration/zones |
Ah, OK - so it's a bit of how I assumed it was working... it detected something that entered the zone, and then noticed that "person" is among the objects detected, and then just simply mushed the two together. I'd have to rely on MQTT event data if I wanted to get more precise detection eh? |
That is one explanation. In general I always recommend just using the MQTT topic