"Timeout getting camera image from camera"

I am using 2021.3.4 home assistant. Recently I have problems with the generic camera platform grabbing images from hikvision cameras after a certain time. After about a half day, I got error messages starting in the logs “Timeout getting camera image from xxxx camera” and also no images is showing on lovelace. Restarting home assistant solves the problem for about half a day, and then problem occurs again and again.
my config:

- platform: generic
  still_image_url: "http://xxx.xxx.xxx.xxx:80/Streaming/channels/1/picture"
  username: !secret cam_user
  password: !secret cam_password
  authentication: digest
  name: Camera

Please help me to solve this!

Latest Home Assistant update 2021.4.0 solved the issue.

Hmmmm, I am having this very same problem with a Hikvision nvr also and I’m on ver 2021.11.5.

Anyone else?

I have this issue in 2021.12.8 version. When it is called from event, I have timeout, but when I run automation manually, everything works. Do you have solution for this ?

I am now on that (latest) version also and still have the camera timeout issue. :worried:

Facing the same issue and I am running Home Assistant 2022.2.3 (latest)

Hopefully to be fixed in 2022.2.6. See here: https://github.com/home-assistant/core/issues/64737

1 Like

Same here. Snapshot triggered by automation times out, doing it manually: no timeout.

Changing “CAMERA_IMAGE_TIMEOUT: Final = 10” to “CAMERA_IMAGE_TIMEOUT: Final = 100” in camera/const.py seems to fix it.