Closed slackr31337 closed 3 years ago
amcrest documentation amcrest source (message by IssueLinks)
Enabled debuging for amcrest integration. Seem that the call to "api.event_actions("All", retries=5)" is returning a 400 error on 3 of my Amcrest cameras.
May 07 15:18:27 home-assistant hass[797235]: 2021-05-07 15:18:27 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 1
May 07 15:18:27 home-assistant hass[797235]: 2021-05-07 15:18:27 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:27 home-assistant hass[797235]: 2021-05-07 15:18:27 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:18:27 home-assistant hass[797235]: 2021-05-07 15:18:27 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 2
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 2
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 3
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 3
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 4
May 07 15:18:28 home-assistant hass[797235]: 2021-05-07 15:18:28 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:29 home-assistant hass[797235]: 2021-05-07 15:18:29 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 5
May 07 15:18:29 home-assistant hass[797235]: 2021-05-07 15:18:29 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:29 home-assistant hass[797235]: 2021-05-07 15:18:29 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 4
May 07 15:18:29 home-assistant hass[797235]: 2021-05-07 15:18:29 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:29 home-assistant hass[797235]: 2021-05-07 15:18:29 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 6
May 07 15:18:29 home-assistant hass[797235]: 2021-05-07 15:18:29 ERROR (Amcrest garage) [homeassistant.components.amcrest] garage camera offline: Too many errors
May 07 15:18:29 home-assistant hass[797235]: 2021-05-07 15:18:29 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 5
May 07 15:18:29 home-assistant hass[797235]: 2021-05-07 15:18:29 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:30 home-assistant hass[797235]: 2021-05-07 15:18:30.096364: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
May 07 15:18:30 home-assistant hass[797235]: 2021-05-07 15:18:30 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 6
May 07 15:18:30 home-assistant hass[797235]: 2021-05-07 15:18:30 ERROR (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera offline: Too many errors
May 07 15:18:32 home-assistant hass[797235]: 2021-05-07 15:18:32 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:32 home-assistant hass[797235]: 2021-05-07 15:18:32 INFO (MainThread) [homeassistant.components.image_processing] Setting up image_processing.tensorflow
May 07 15:18:32 home-assistant hass[797235]: 2021-05-07 15:18:32 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:18:32 home-assistant hass[797235]: 2021-05-07 15:18:32 ERROR (MainThread) [snitun.client.client_peer] Challenge/Response error with SniTun server
May 07 15:18:32 home-assistant hass[797235]: 2021-05-07 15:18:32 ERROR (MainThread) [hass_nabucasa.remote] Connection problem to snitun server
May 07 15:18:32 home-assistant hass[797235]: 2021-05-07 15:18:32 DEBUG (SyncWorker_14) [homeassistant.components.amcrest.binary_sensor] Updating front_door Motion Detected binary sensor
May 07 15:18:32 home-assistant hass[797235]: 2021-05-07 15:18:32 DEBUG (SyncWorker_7) [homeassistant.components.amcrest.camera] Updating front_door camera
May 07 15:18:32 home-assistant hass[797235]: 2021-05-07 15:18:32 DEBUG (SyncWorker_14) [homeassistant.components.amcrest.binary_sensor] Updating front_door Online binary sensor
May 07 15:18:33 home-assistant hass[797235]: 2021-05-07 15:18:33 DEBUG (SyncWorker_9) [homeassistant.components.amcrest.binary_sensor] Updating driveway Motion Detected binary sensor
May 07 15:18:33 home-assistant hass[797235]: 2021-05-07 15:18:33 DEBUG (SyncWorker_15) [homeassistant.components.amcrest.binary_sensor] Updating driveway Online binary sensor
May 07 15:18:34 home-assistant hass[797235]: 2021-05-07 15:18:34 DEBUG (SyncWorker_3) [homeassistant.components.amcrest.camera] Updating driveway camera
May 07 15:18:36 home-assistant hass[797235]: 2021-05-07 15:18:36 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:18:38 home-assistant hass[797235]: 2021-05-07 15:18:38 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:18:38 home-assistant hass[797235]: 2021-05-07 15:18:38 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:18:38 home-assistant hass[797235]: 2021-05-07 15:18:38 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:18:42 home-assistant hass[797235]: 2021-05-07 15:18:42 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:18:46 home-assistant hass[797235]: 2021-05-07 15:18:46 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:18:48 home-assistant hass[797235]: 2021-05-07 15:18:48 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:18:52 home-assistant hass[797235]: 2021-05-07 15:18:52 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:18:56 home-assistant hass[797235]: 2021-05-07 15:18:56 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:18:58 home-assistant hass[797235]: 2021-05-07 15:18:58 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:18:58 home-assistant hass[797235]: 2021-05-07 15:18:58 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:18:58 home-assistant hass[797235]: 2021-05-07 15:18:58 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:18:58 home-assistant hass[797235]: 2021-05-07 15:18:58 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:19:02 home-assistant hass[797235]: 2021-05-07 15:19:02 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:06 home-assistant hass[797235]: 2021-05-07 15:19:06 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:08 home-assistant hass[797235]: 2021-05-07 15:19:08 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:08 home-assistant hass[797235]: 2021-05-07 15:19:08 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:19:08 home-assistant hass[797235]: 2021-05-07 15:19:08 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:08 home-assistant hass[797235]: 2021-05-07 15:19:08 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:08 home-assistant hass[797235]: 2021-05-07 15:19:08 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:19:08 home-assistant hass[797235]: 2021-05-07 15:19:08 DEBUG (SyncWorker_14) [homeassistant.components.amcrest] driveway camera errs: 1
May 07 15:19:12 home-assistant hass[797235]: 2021-05-07 15:19:12 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:16 home-assistant hass[797235]: 2021-05-07 15:19:16 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:18 home-assistant hass[797235]: 2021-05-07 15:19:18 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:18 home-assistant hass[797235]: 2021-05-07 15:19:18 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:19:18 home-assistant hass[797235]: 2021-05-07 15:19:18 DEBUG (SyncWorker_1) [homeassistant.components.amcrest] driveway camera errs: 2
May 07 15:19:18 home-assistant hass[797235]: 2021-05-07 15:19:18 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:22 home-assistant hass[797235]: 2021-05-07 15:19:22 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:26 home-assistant hass[797235]: 2021-05-07 15:19:26 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:28 home-assistant hass[797235]: 2021-05-07 15:19:28 DEBUG (SyncWorker_8) [homeassistant.components.amcrest.binary_sensor] Updating front_door Online binary sensor
May 07 15:19:28 home-assistant hass[797235]: 2021-05-07 15:19:28 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:28 home-assistant hass[797235]: 2021-05-07 15:19:28 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 DEBUG (SyncWorker_11) [homeassistant.components.amcrest] Testing if garage back online
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 DEBUG (SyncWorker_15) [homeassistant.components.amcrest] Testing if back_yard back online
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 ERROR (SyncWorker_11) [homeassistant.components.amcrest] garage camera back online
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 DEBUG (SyncWorker_1) [homeassistant.components.amcrest.camera] Updating garage camera
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 ERROR (SyncWorker_15) [homeassistant.components.amcrest] back_yard camera back online
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 1
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:32 home-assistant hass[797235]: 2021-05-07 15:19:32 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 2
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 DEBUG (SyncWorker_4) [homeassistant.components.amcrest.binary_sensor] Updating driveway Online binary sensor
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 3
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 4
May 07 15:19:33 home-assistant hass[797235]: 2021-05-07 15:19:33 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 5
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 DEBUG (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera errs: 6
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 ERROR (Amcrest back_yard) [homeassistant.components.amcrest] back_yard camera offline: Too many errors
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 WARNING (Amcrest back_yard) [homeassistant.components.amcrest] Error while processing events from back_yard camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.12:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:34 home-assistant hass[797235]: 2021-05-07 15:19:34 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:35 home-assistant hass[797235]: 2021-05-07 15:19:35 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:35 home-assistant hass[797235]: 2021-05-07 15:19:35 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:35 home-assistant hass[797235]: 2021-05-07 15:19:35 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 2
May 07 15:19:35 home-assistant hass[797235]: 2021-05-07 15:19:35 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:35 home-assistant hass[797235]: 2021-05-07 15:19:35 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:35 home-assistant hass[797235]: 2021-05-07 15:19:35 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:36 home-assistant hass[797235]: 2021-05-07 15:19:36 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 2
May 07 15:19:36 home-assistant hass[797235]: 2021-05-07 15:19:36 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:36 home-assistant hass[797235]: 2021-05-07 15:19:36 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:36 home-assistant hass[797235]: 2021-05-07 15:19:36 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:36 home-assistant hass[797235]: 2021-05-07 15:19:36 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:36 home-assistant hass[797235]: 2021-05-07 15:19:36 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:19:37 home-assistant hass[797235]: 2021-05-07 15:19:37 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 2
May 07 15:19:37 home-assistant hass[797235]: 2021-05-07 15:19:37 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:37 home-assistant hass[797235]: 2021-05-07 15:19:37 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:37 home-assistant hass[797235]: 2021-05-07 15:19:37 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 1
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 2
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (SyncWorker_19) [homeassistant.components.amcrest] driveway camera errs: 1
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 3
May 07 15:19:38 home-assistant hass[797235]: 2021-05-07 15:19:38 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:39 home-assistant hass[797235]: 2021-05-07 15:19:39 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 4
May 07 15:19:39 home-assistant hass[797235]: 2021-05-07 15:19:39 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:39 home-assistant hass[797235]: 2021-05-07 15:19:39 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 5
May 07 15:19:39 home-assistant hass[797235]: 2021-05-07 15:19:39 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:39 home-assistant hass[797235]: 2021-05-07 15:19:39 DEBUG (Amcrest garage) [homeassistant.components.amcrest] garage camera errs: 6
May 07 15:19:39 home-assistant hass[797235]: 2021-05-07 15:19:39 ERROR (Amcrest garage) [homeassistant.components.amcrest] garage camera offline: Too many errors
May 07 15:19:39 home-assistant hass[797235]: 2021-05-07 15:19:39 WARNING (Amcrest garage) [homeassistant.components.amcrest] Error while processing events from garage camera: CommError(HTTPError('400 Client Error: Bad Request for url: http://10.40.0.11:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D'))
May 07 15:19:42 home-assistant hass[797235]: 2021-05-07 15:19:42 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:42 home-assistant hass[797235]: 2021-05-07 15:19:42 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:19:42 home-assistant hass[797235]: 2021-05-07 15:19:42 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
May 07 15:19:46 home-assistant hass[797235]: 2021-05-07 15:19:46 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:46 home-assistant hass[797235]: 2021-05-07 15:19:46 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:19:46 home-assistant hass[797235]: 2021-05-07 15:19:46 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
May 07 15:19:48 home-assistant hass[797235]: 2021-05-07 15:19:48 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:48 home-assistant hass[797235]: 2021-05-07 15:19:48 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:19:48 home-assistant hass[797235]: 2021-05-07 15:19:48 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:49 home-assistant hass[797235]: 2021-05-07 15:19:49 DEBUG (SyncWorker_18) [homeassistant.components.amcrest] driveway camera errs: 2
May 07 15:19:52 home-assistant hass[797235]: 2021-05-07 15:19:52 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:52 home-assistant hass[797235]: 2021-05-07 15:19:52 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:19:52 home-assistant hass[797235]: 2021-05-07 15:19:52 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
May 07 15:19:56 home-assistant hass[797235]: 2021-05-07 15:19:56 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:19:57 home-assistant hass[797235]: 2021-05-07 15:19:57 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:19:57 home-assistant hass[797235]: 2021-05-07 15:19:57 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
May 07 15:19:58 home-assistant hass[797235]: 2021-05-07 15:19:58 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:19:58 home-assistant hass[797235]: 2021-05-07 15:19:58 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:20:02 home-assistant hass[797235]: 2021-05-07 15:20:02 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:20:02 home-assistant hass[797235]: 2021-05-07 15:20:02 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:20:02 home-assistant hass[797235]: 2021-05-07 15:20:02 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
May 07 15:20:06 home-assistant hass[797235]: 2021-05-07 15:20:06 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:20:06 home-assistant hass[797235]: 2021-05-07 15:20:06 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:20:06 home-assistant hass[797235]: 2021-05-07 15:20:06 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
May 07 15:20:08 home-assistant hass[797235]: 2021-05-07 15:20:08 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:20:08 home-assistant hass[797235]: 2021-05-07 15:20:08 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:20:08 home-assistant hass[797235]: 2021-05-07 15:20:08 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:20:08 home-assistant hass[797235]: 2021-05-07 15:20:08 DEBUG (SyncWorker_6) [homeassistant.components.amcrest] driveway camera errs: 3
May 07 15:20:12 home-assistant hass[797235]: 2021-05-07 15:20:12 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:20:12 home-assistant hass[797235]: 2021-05-07 15:20:12 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:20:12 home-assistant hass[797235]: 2021-05-07 15:20:12 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
May 07 15:20:16 home-assistant hass[797235]: 2021-05-07 15:20:16 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:20:16 home-assistant hass[797235]: 2021-05-07 15:20:16 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:20:16 home-assistant hass[797235]: 2021-05-07 15:20:16 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
May 07 15:20:18 home-assistant hass[797235]: 2021-05-07 15:20:18 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:20:18 home-assistant hass[797235]: 2021-05-07 15:20:18 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:20:18 home-assistant hass[797235]: 2021-05-07 15:20:18 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:20:18 home-assistant hass[797235]: 2021-05-07 15:20:18 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from driveway
May 07 15:20:18 home-assistant hass[797235]: 2021-05-07 15:20:18 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Waiting for previous snapshot from driveway
May 07 15:20:19 home-assistant hass[797235]: 2021-05-07 15:20:19 DEBUG (SyncWorker_15) [homeassistant.components.amcrest] driveway camera errs: 4
May 07 15:20:22 home-assistant hass[797235]: 2021-05-07 15:20:22 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from front_door
May 07 15:20:22 home-assistant hass[797235]: 2021-05-07 15:20:22 DEBUG (MainThread) [homeassistant.components.amcrest.camera] Take snapshot from garage
May 07 15:20:22 home-assistant hass[797235]: 2021-05-07 15:20:22 WARNING (MainThread) [homeassistant.components.amcrest.camera] Attempt to take snapshot when garage camera is offline
I have the same bad request error on a ip4M 1051b. Streaming is working fine and only the amcrest. service seem broken.
I have the same issue as well. Camera worked fine previously, but now is only available for a few seconds at a time.
I am migrating from a very old version (0.68.1!!!) of HA to a new instance of 2021.5.5.
I'm encountering the same errors as above with an IP2M-844EB camera.
There was an issue discovered about a year ago, that older cameras can't deal with the encoding of square brackets in query parameters. I.e. they don't recognize that codes=%5BAll%5D
is actually codes=[All]
The fix for that was to add motion_detected_polled
to the camera configuration: https://www.home-assistant.io/integrations/amcrest/#motion_detected_polled
I've done that, and now I see far far fewer errors in my logs. However I am still seeing these:
2021-05-24T20:47:29.873616446Z 2021-05-24 20:47:29 WARNING (Amcrest Amcrest Camera) [amcrest.http] <AMC0044Z_W1WJ6N:AMC0044ZLA6DW1WJ6N> Trying again due to error: HTTPError('400 Client Error: Bad Request for url: http://192.168.0.21:80/cgi-bin/eventManager.cgi?action=attach&codes=%5BAll%5D')
2021-05-24T20:47:29.900420614Z 2021-05-24 20:47:29 ERROR (Amcrest Amcrest Camera) [homeassistant.components.amcrest] Amcrest Camera camera offline: Too many errors
@slackr31337 I'm curious how setting motion_detected_polled
would affect your situation.
@rgitzel setting motion_detected_polled does not fix this issue for me.
I have to bypass the setup of the event_monitor for the code to work on the older cameras.
- host: !secret ip_camera3
name: back_yard
username: !secret amcrest_user
password: !secret amcrest_pass2
scan_interval: 30
stream_source: rtsp
ffmpeg_arguments: -rtsp_transport tcp
disable_events: true
binary_sensors:
- motion_detected_polled
--- __init__.py.orig 2021-08-01 17:59:45.651547077 -0400
+++ __init__.py 2021-06-12 19:03:22.647634155 -0400
@@ -56,6 +56,7 @@
CONF_STREAM_SOURCE = "stream_source"
CONF_FFMPEG_ARGUMENTS = "ffmpeg_arguments"
CONF_CONTROL_LIGHT = "control_light"
+CONF_DISABLE_EVENTS = "disable_events"
DEFAULT_NAME = "Amcrest Camera"
DEFAULT_PORT = 80
@@ -105,6 +106,7 @@
cv.ensure_list, [vol.In(SENSORS)], vol.Unique()
),
vol.Optional(CONF_CONTROL_LIGHT, default=True): cv.boolean,
+ vol.Optional(CONF_DISABLE_EVENTS, default=False): cv.boolean,
}
)
@@ -247,6 +249,7 @@
sensors = device.get(CONF_SENSORS)
stream_source = device[CONF_STREAM_SOURCE]
control_light = device.get(CONF_CONTROL_LIGHT)
+ disable_events = device.get(CONF_DISABLE_EVENTS)
# currently aiohttp only works with basic authentication
# only valid for mjpeg streaming
@@ -281,7 +284,8 @@
if sensor_type not in BINARY_POLLED_SENSORS
]
- _start_event_monitor(hass, name, api, event_codes)
+ if not disable_events:
+ _start_event_monitor(hass, name, api, event_codes)
if sensors:
discovery.load_platform(
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I still have this problem too. I think we should submit your new config entry to the base component in PR to see if we can get this fixed for everyone. Would you be interested @slackr31337 or do you want me to do it?
The problem
Using Amcrest Camera integration with various camer models. Two of my cameras are throwing errors. There were working on Core 2021.4.6
What is version of Home Assistant Core has the issue?
core-2021.5.1
What was the last working version of Home Assistant Core?
core-2021.4.6
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Amcrest
Link to integration documentation on our website
https://www.home-assistant.io/integrations/amcrest
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
camera1: - Working model_name: IP3M-956E brand: General
camera2: - Error garage Amcrest IP2M-844E (Black)
camera3: - Error back_yard Amcrest IP2M-844E (Black)
camera4: - Working model_name: IP8M-T2599E brand: Amcrest