robmarkcole / HASS-Deepstack-object

Home Assistant custom component for using Deepstack object detection
https://community.home-assistant.io/t/face-and-person-detection-with-deepstack-local-and-free/92041
MIT License
439 stars 98 forks source link

If nothing is detected from deepstack, set HA state to 0 #46

Closed jaburges closed 5 years ago

jaburges commented 5 years ago

If absolutely nothing is detected result from API is:

{"success":true,"predictions":[]}

but HA image_processing.blah shows state unknown

is there a way to return state = 0 ? That way if unknown is shown, then other problems with docker are detectable.

Thanks

jaburges commented 5 years ago

also note that once I have used curl to hit the docker container, i'm unable to get a response using the API again (from HA)

jaburges commented 5 years ago

this wasnt the issue, raising this instead