I have a new Amcrest camera (IP8M-2496E), my other amcrest cameras (IP3M-941) work fine, but for some reason this one is just not cooperating. I did note that on the amcrest page (https://www.home-assistant.io/integrations/amcrest) that newer firmware cameras could have issues with the video, but this appears to be more related to even logging in. The weird part is that it does actually log in. I see a metric crap-ton of login/logoff events in the log on the camera, and the fact that the HA log shows that it did identify the camera as my front camera. I’ve isolated all logs in at the debug log level related to my camera below as well as results of running the failed commands in my browser (I haven’t had a chance to try to curl from HASS just yet). Anyone got any ideas on why this is failing?
2019-10-02 10:25:33 DEBUG (SyncWorker_3) [amcrest.http] <None:None> Trying Basic Authentication
2019-10-02 10:25:33 DEBUG (SyncWorker_3) [amcrest.http] <None:None> Running query attempt 1
2019-10-02 10:25:36 WARNING (SyncWorker_3) [amcrest.http] <None:None> Trying again due to error: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='x.x.x.x', port=80): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getMachineName (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at ADDRESS>, 'Connection to x.x.x.x timed out. (connect timeout=3.05)'))"))
2019-10-02 10:25:36 DEBUG (SyncWorker_3) [amcrest.http] <None:None> Running query attempt 2
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [amcrest.http] <None:None> Query failed due to error: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='x.x.x.x', port=80): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getMachineName (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at ADDRESS>, 'Connection to x.x.x.x timed out. (connect timeout=3.05)'))"))
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=enable_recording>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=disable_recording>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=camera, service=enable_motion_detection>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=enable_audio>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=camera, service=disable_motion_detection>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=disable_audio>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=camera, service=turn_off>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=enable_motion_recording>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=camera, service=turn_on>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=camera, service=snapshot>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=camera, service=play_stream>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=camera, service=record>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=camera>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.camera, platform=amcrest, discovered=name=front>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=disable_motion_recording>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=goto_preset>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=set_color_bw>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=start_tour>
2019-10-02 10:25:39 DEBUG (SyncWorker_3) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=amcrest, service=stop_tour>
2019-10-02 10:25:39 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=amcrest>
2019-10-02 10:25:39 INFO (MainThread) [homeassistant.components.camera] Setting up camera.amcrest
2019-10-02 10:25:39 DEBUG (SyncWorker_4) [homeassistant.components.amcrest.camera] Updating front camera
2019-10-02 10:25:39 DEBUG (SyncWorker_4) [amcrest.http] <None:None> Running query attempt 1
2019-10-02 10:25:42 WARNING (SyncWorker_4) [amcrest.http] <None:None> Trying again due to error: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='x.x.x.x', port=80): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getVendor (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at ADDRESS>, 'Connection to x.x.x.x timed out. (connect timeout=3.05)'))"))
2019-10-02 10:25:42 DEBUG (SyncWorker_4) [amcrest.http] <None:None> Running query attempt 2
2019-10-02 10:25:45 DEBUG (SyncWorker_4) [amcrest.http] <None:None> Query failed due to error: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='x.x.x.x', port=80): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getVendor (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at ADDRESS>, 'Connection to x.x.x.x timed out. (connect timeout=3.05)'))"))
2019-10-02 10:25:45 DEBUG (SyncWorker_4) [homeassistant.components.amcrest] front camera errs: 1
2019-10-02 10:25:45 ERROR (SyncWorker_4) [homeassistant.components.amcrest.camera] Could not get front camera attributes due to error: CommError
2019-10-02 10:25:45 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=camera.front, old_state=None, new_state=<state camera.front=idle; access_token=REDACTED, friendly_name=front, entity_picture=/api/camera_proxy/camera.front?token=REDACTED, supported_features=3 @ 2019-10-02T10:25:45.730470-04:00>>
2019-10-02 10:26:01 DEBUG (SyncWorker_3) [homeassistant.components.amcrest.camera] Updating front camera
2019-10-02 10:26:01 DEBUG (SyncWorker_3) [amcrest.http] <None:None> Running query attempt 1
2019-10-02 10:26:04 WARNING (SyncWorker_3) [amcrest.http] <None:None> Trying again due to error: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='x.x.x.x', port=80): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getVendor (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at ADDRESS>, 'Connection to x.x.x.x timed out. (connect timeout=3.05)'))"))
2019-10-02 10:26:04 DEBUG (SyncWorker_3) [amcrest.http] <None:None> Running query attempt 2
2019-10-02 10:26:07 DEBUG (SyncWorker_3) [amcrest.http] <None:None> Query failed due to error: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='x.x.x.x', port=80): Max retries exceeded with url: /cgi-bin/magicBox.cgi?action=getVendor (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at ADDRESS>, 'Connection to x.x.x.x timed out. (connect timeout=3.05)'))"))
2019-10-02 10:26:07 DEBUG (SyncWorker_3) [homeassistant.components.amcrest] front camera errs: 2
2019-10-02 10:26:07 ERROR (SyncWorker_3) [homeassistant.components.amcrest.camera] Could not get front camera attributes due to error: CommError
Browser queries:
http://x.x.x.x/cgi-bin/magicBox.cgi?action=getMachineName
name=AMCRESTSERIALNUMBERHERE
http://x.x.x.x/cgi-bin/magicBox.cgi?action=getVendor
vendor=Amcrest