question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Home Assistant State is "unknown" even if the user manually exectutes image_processing.scan

See original GitHub issue

Environment: 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:

  1. In HA Screenshot 2020-08-10 at 20 17 27
  2. In DeepStack Server Screenshot 2020-08-10 at 20 17 39

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:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
CarpeDiemRocommented, Nov 5, 2020

Yes, Rob. It is solved. Hence the issue is not present.

0reactions
vin901commented, Jul 12, 2022

@vin901 Did you ever get answer, having same issue 😕

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found