HASS-Deepstack-object
HASS-Deepstack-object copied to clipboard
Feature request: Fire Event Data Scan Completed
Currently addon have 'deepstack.object_detected' event
It's great to have 'deepstack.scan_completed' event, That will serve as a sequence camera scan to avoid server overload
For example:
- Scan camera 1
- Wait for deepstack.scan_completed
- Scan camera 2
- Wait for deepstack.scan_completed
- Scan camera n
I see you documented a solution https://github.com/robmarkcole/HASS-Deepstack-object/discussions/234
Well it rely on external intergration and the folder_watcher is cpu/disk heavy loading.
I don't know much about python and I've blindly add this line to your image_processing.py to fire and event on scan completed and it work.
self.hass.bus.fire("deepstack.scan_completed", {"entity_id": self._name})
I do recommend you add this feature.
@tuanha2000vn please create a PR with the update and instructions in the readme, thanks