HASS-Deepstack-object icon indicating copy to clipboard operation
HASS-Deepstack-object copied to clipboard

Feature request: Fire Event Data Scan Completed

Open tuanha2000vn opened this issue 3 years ago • 3 comments

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

tuanha2000vn avatar Apr 15 '21 18:04 tuanha2000vn

I see you documented a solution https://github.com/robmarkcole/HASS-Deepstack-object/discussions/234

robmarkcole avatar Apr 16 '21 04:04 robmarkcole

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 avatar Apr 16 '21 07:04 tuanha2000vn

@tuanha2000vn please create a PR with the update and instructions in the readme, thanks

robmarkcole avatar Apr 16 '21 08:04 robmarkcole