Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

continue_on_error implementation issue #399

Open
hausmanconsulting opened this issue Oct 25, 2024 · 0 comments
Open

continue_on_error implementation issue #399

hausmanconsulting opened this issue Oct 25, 2024 · 0 comments

Comments

@hausmanconsulting
Copy link

hausmanconsulting commented Oct 25, 2024

I am using this integration to detect cross line and cross area detection on Amcrest cameras. Everything is working, except occasionally when I try to grab a snapshot from a camera I get a timeout error:

Error: TimeoutError
Result:

params:
  domain: camera
  service: snapshot
  service_data:
    filename: ./www/snapshots/driveway_camera_snapshot3.jpg
    entity_id:
      - camera.driveway_camera_main
  target:
    entity_id:
      - camera.driveway_camera_main
running_script: false

This is rare, but when it happens it stops my script in HA. I added "continue_on_error: true" to each action that grabs a snapshot, but it doesn't work. According to this link:

home-assistant/core#115401 (comment)

The issue might be that this integration doesn't raise the HomeAssistantError when there is a problem, so HA stops the script anyway.

This is just a guess, but thought I'd mention it here in case anyone has any thoughts. I am trying to find a workaround that grabs snapshots more reliably, but if the script always fails on any error I don't see any way of making it run even if a snapshot fails.

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

No branches or pull requests

1 participant