Help getting Amcrest Camera working

Amcrest ASH22-W
In Packages I have amcrest.yaml:

amcrest:
- host: 192.168.86.23
    username: admin
    password: ******
    name: Porch Cam
    binary_sensors:
      - motion_detected
      - online
    sensors:
      - sdcard

camera:
  - platform: amcrest

Username, password and IP address are all correct. I can confirm them using Amcrest IP config software. I can log into the camera with those credentials. Camera works in the app also.
Ive searched and searched and just cant get it working

Here are the errors:

Error while setting up amcrest platform for camera
7:02:15 PM – (ERROR) Camera
Error while processing events from Porch Cam camera: CommError(ReadTimeout(ReadTimeoutError(“HTTPConnectionPool(host=‘192.168.86.23’, port=80): Read timed out. (read timeout=6.05)”)))
7:02:13 PM – (WARNING) Amcrest - message first occurred at 7:01:36 PM and shows up 4 times
<Unconnected @ 192.168.86.23> Trying again due to error: ReadTimeout(‘’)
7:02:09 PM – (WARNING) /usr/local/lib/python3.10/site-packages/amcrest/http.py - message first occurred at 7:01:32 PM and shows up 4 times
<Unconnected @ 192.168.86.23> Trying again due to error: ReadTimeout(ReadTimeoutError(“HTTPConnectionPool(host=‘192.168.86.23’, port=80): Read timed out. (read timeout=6.05)”))
7:02:06 PM – (WARNING) /usr/local/lib/python3.10/site-packages/amcrest/http.py - message first occurred at 7:01:30 PM and shows up 4 times
Could not update Porch Cam SD Used sensor due to error: CommError
7:02:03 PM – (ERROR) Amcrest
Porch Cam camera offline: Too many errors
7:02:03 PM – (ERROR) Amcrest
Setup of camera platform amcrest is taking over 10 seconds.
7:02:01 PM – (WARNING) Camera
Using slower stringprep, consider compiling the faster cython/libidn one.
7:01:51 PM – (WARNING) /usr/local/lib/python3.10/site-packages/slixmpp/stringprep.py
Could not update Porch Cam Motion Detected binary sensor due to error: CommError
7:01:39 PM – (ERROR) Amcrest
Setup of sensor platform amcrest is taking over 10 seconds.
7:01:35 PM – (WARNING) Sensor
Setup of binary_sensor platform amcrest is taking over 10 seconds.
7:01:35 PM – (WARNING) Binary sensor

I was able to get this working through Frigate.

1 Like

@Rich37804 , I also have a ASH22-W and I’m struggling to set it up on frigate. Would you mind sharing the config entries you are using? I already setup the camera on the AMCRest mobile app and it works ok. I thin I am mussing something config wise on frigate itself.

thx in advance!

Not sure of how much of a config you have set up so far, but here is the start of the camera section
Please note that I am using the full resolution stream and resizing it down a bit for detection. I have a good processor. You may want to use your low res stream for detection. Change “subtype=0” to “subtype=1” on that detect stream.:

cameras: 
  porch_cam: 
    ffmpeg:
      inputs:
        - path: rtsp://admin:[email protected].**.**:554/cam/realmonitor?channel=1&subtype=0
          roles: 
            - record
        - path: rtsp://admin:[email protected].**.**:554/cam/realmonitor?channel=1&subtype=0
          roles: 
            - detect
    detect:
      width: 960
      height: 540
      fps: 5
      stationary:
        max_frames:
          objects:
            person: 100
            car: 100
    objects:
      track:
        - person
        - cat
        - dog
    
    record:
      enabled: true
      retain:
        days: 14
        mode: motion
      events:
        retain:
          default: 14
          mode: active_objects
        pre_capture: 5
        post_capture: 8
        required_zones:
          - front_area
          - porch_automation

    zones:
      front_area:
        coordinates: 802,540,685,359,702,271,780,284,876,299,960,338,960,412,960,540
        objects:
          - cat
          - dog
      porch_automation:
        coordinates: 513,279,611,540,466,540,451,432,440,367,367,322,372,280
        objects:
          - person
          - cat
          - dog

    snapshots:
      enabled: true
      timestamp: false
      bounding_box: true
      retain:
        default: 3
    motion:
      mask:
        - 833,53,933,58,936,22,828,28
        - 960,317,960,540,757,540,645,376,724,165,911,270