1 of 3 Amcrest IPCams intermittenty unavailable

I have three cameras manually added to configuration.yaml as follows:

- host: 192.168.0.110
  username: !secret AmcrestUsername
  password: !secret AmcrestPassword
  name: "Name1"
  resolution: high
  binary_sensors:
  - motion_detected
  - online

- host: 192.168.0.111
  username: !secret AmcrestUsername
  password: !secret AmcrestPassword
  name: "Name2"
  resolution: high
  binary_sensors:
  - motion_detected
  - online

- host: 192.168.0.112
  username: !secret AmcrestUsername
  password: !secret AmcrestPassword
  name: "PlayCAM"
  resolution: high
  binary_sensors:
  - motion_detected
  - online

PlayCAM shows up intermittently as unavailable or disconnected. Yet, when I click on the entity and then the top right corner icon, it loads up the webcam stream. I tried deleting the integration and re-adding it but that did not help.

I ran debugger. Getting errors as below

2020-06-10 03:44:11 WARNING (Amcrest PlayCAM) [amcrest.http] <PlayCAM:AMC0015A930S1AK9WM> Trying again due to error: HTTPError('400 Client Error: Bad Request for url: http://192.168.0.112:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BVideoMotion%5D')

I tried disabling the sensor for motion detection which helps but these are AMC721 that support motion detection. Any idea whats going on? I can’t find anything different between the cameras in their configurations.

Have you verified they are all running the same firmware version?

It is very possible the camera model, or at least the version of firmware it is running, is incompatible with the current amcrest integration.

Amcrest has changed the HTTP API on some of their newer models and versions of firmware, but will not admit that they did that, and hence will not provide a new version of the HTTP API specification to show what those changes are. So, unfortunately, as of today, the amcrest integration is not guaranteed to work with all Amcrest models & firmware versions.

I feel like an idiot. It was the firmware version. Thanks for the tips. @pnbruckner thanks for the pro-tip as well. Thankfully since I upgraded it seems like things are working quite reliably!

2 Likes