I’ve bought 2 amcrest wifi cameras that are now integrated in HA. However, the problem is that I constantly get “image not available” on the frontend. I have the image updating every 10 seconds, and eventually it will load the image but then it might not update for another minute (“image not available” comes up).
This is the error that I am getting under “info”.
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))': /cgi-bin/snapshot.cgi?channel=1
I’m pretty sure this is due to a bug in the HA Amcrest component code. I fixed this a long time ago when I made quite a few enhancements that I needed, but I never got around to feeding the fixes back. (Too many other things going on.) Anyway, if you’re interested, you can check out:
Did you need to make any other changes to your config somewhere? I’m using your amcrest custom component and changed my config to snapshot and am still having the same “image not available”
I did make sure it wasn’t network issues before I posted on the forum. I didn’t do the debugging but I’ll remember to do that next time.
After some troubleshooting I found the solution. I needed the scan_interval to be 10. It is 10 by default, but I had changed it and set it to 5 earlier. I also needed the stream_source to be snapshot and not rtsp.
host: xxx.xxx.x.xx
username: xxxx
password: xxxx
name: backyard camera
resolution: high
stream_source: snapshot
binary_sensors:
- motion_detected
scan_interval: 10