rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
383 stars 74 forks source link

Add `ObjectRemovalDetection` and `ObjectPlacementDetection` #212

Closed mdegat01 closed 2 years ago

mdegat01 commented 2 years ago

I have an IPC-T5442T-ZE running on firmware V2.840.15OG008.0.R (Build Date: 2022-02-18). I wanted to use the "Smart Object Detection" feature via this integration to detect when packages were left and removed. Initially I tried to do this by selecting the TakenAwayDetection and LeftDetection events but that didn't do anything. After some digging I realized its because my camera fires events with codes ObjectRemovalDetection and ObjectPlacementDetection here.

I'm not sure if this changed in newer firmware or different models do different things so I didn't modify the existing events. But it would be good if these two could get added to the list so folks like myself could use them.

rroller commented 2 years ago

Thanks!

rroller commented 2 years ago

Released in https://github.com/rroller/dahua/releases/tag/0.9.41