Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Feature request: Fire Event Data Scan Completed #235

Open
tuanha2000vn opened this issue Apr 15, 2021 · 3 comments
Open

Feature request: Fire Event Data Scan Completed #235

tuanha2000vn opened this issue Apr 15, 2021 · 3 comments

Comments

@tuanha2000vn
Copy link

tuanha2000vn commented Apr 15, 2021

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
@robmarkcole
Copy link
Owner

I see you documented a solution #234

@tuanha2000vn
Copy link
Author

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.

@robmarkcole robmarkcole reopened this Apr 16, 2021
@robmarkcole robmarkcole changed the title Fire Event Data Scan Completed Feature request: Fire Event Data Scan Completed Apr 16, 2021
@robmarkcole
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants