core: Amcrest camera sometimes has login error
The problem
I’m using the Amcrest integration with 2 cameras. Sometimes I get an error in the log like this:
2023-01-13 22:33:25.446 ERROR (MainThread) [homeassistant.components.amcrest] Front Yard camera offline: Login error:
2023-01-13 22:33:25.462 ERROR (MainThread) [homeassistant.components.amcrest.camera] Could not get Front Yard camera attributes due to error: LoginError
2023-01-13 22:33:25.495 ERROR (MainThread) [homeassistant.components.amcrest] Front Yard camera back online
It always resolves itself immediately, so this isn’t a big deal, I just want to flag it as a false error. It’s weird that this error only ever happens on the “Front Yard” camera, even though the Back Yard is configured exactly the same. My config is like this:
amcrest:
- host: 192.168.20.10
username: homeassistant
password: !secret amcrest_password
name: Front Yard
binary_sensors:
- motion_detected
- online
stream_source: rtsp
- host: 192.168.20.11
username: homeassistant
password: !secret amcrest_password
name: Back Yard
binary_sensors:
- motion_detected
- online
stream_source: rtsp
What version of Home Assistant Core has the issue?
2023.1.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Amcrest
Link to integration documentation on our website
https://www.home-assistant.io/integrations/amcrest/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 15
I finally got tired of the log filling with connected/disconnected messages and I’m giving the Dahua integration a shot. So far it at least doesn’t tell me that it can’t connect.