Home Assistant State is "unknown" even if the user manually exectutes image_processing.scan
See original GitHub issueEnvironment: A. RPI4 HA installed IP.192.168.1.130 B. RPI4 DeepStack with NCS2 // Raspbian Buster IP.192.168.1.170
Active APIs:
/v1/vision/detection
---------------------------------------
v1/vision/addmodel
---------------------------------------
v1/vision/listmodels
---------------------------------------
v1/vision/deletemodel
---------------------------------------
v1/vision/setadminkey
---------------------------------------
v1/vision/setapikey
---------------------------------------
v1/vision/backup
Addons: deepstack object custom integration & deepstack face custom integration
configuration.yaml
- platform: deepstack_object
ip_address: 192.168.1.170
port: 80
api_key: xxxxxx-yyyyy-zzzzz-qqqq-oooooo
save_file_folder: /config/www/deepstack/
save_timestamped_file: True
roi_x_min: 0.35
roi_x_max: 0.8
roi_y_min: 0.4
roi_y_max: 0.8
targets:
- person
source:
- entity_id: camera.outside_ffmpeg
How To: manually trigger image_processing.scan entity_id: image_processing.deepstack_object_outside_ffmpeg
Results:
- In HA

- In DeepStack Server

save_file_folder: /config/www/deepstack/ is emtpy
Automation
- alias: Image Motion ON Outside DeepStack
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.hikvision_outside_motion
condition:
- condition: state
entity_id: binary_sensor.hikvision_bucatarie_motion
state: 'on'
action:
- delay:
seconds: 2
- service: image_processing.scan
entity_id: image_processing.deepstack_object_outside_ffmpeg
When the motion sensor is triggered a new entry is created on DeepStack server
[GIN] 2020/08/10 - 17:58:29 | 200 | 70.48µs | 192.168.1.130 | POST /v1/vision/detection
HA status remains “unknown”
Attributes
ROI person count: 0
ALL person count: 0
summary:
{}
objects:
unit_of_measurement: targets
friendly_name: deepstack_object_outside_ffmpeg
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to detect a sensor with "unknown" state - Configuration
Hi Guys, I have a sensor that a random intervals stop working and Home Assistant reports state “unknown”. I can send a reboot,...
Read more >Sensors turn to unknown state when i restart Home Assistant
Hello guys! I have a logical board with 32 sensors integrated with home assistant with mqtt, i manually insert to configuration.yaml the ...
Read more >Image Processing - Home Assistant
Image Processing. Image processing enables Home Assistant to process images from cameras. Only camera entities are supported as sources. ALPR.
Read more >Automation UI needs an option to ignore unexpected triggers ...
A checkbox is required in the automation UI to prevent unexpected triggers when state changes from or to “unknown” or “unavailable”.
Read more >2022.12: It does matter! - Home Assistant
Matter support is here! Beautiful new Tile card features, a full-blown local calendar, shiny new state colors, and use Shelly devices as ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes, Rob. It is solved. Hence the issue is not present.
I didn’t get a reply but I did get it to work. Try it first with the deepstack_object pointing to a local_file object (like the example in the ReadMe), if your camera.local_file is configured correctly and pointing correctly to an image then you should be able to see the image under HA->DeveloperTools->States->camera.local_file [click on the (i) icon]
Then when you run the service “image_processing.scan” on your deespstack_object above that points to local_file, then it should work. Check your HA logs in case something failed.