rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
398 stars 80 forks source link

9 NVR Camreas working fine but VTO Connection failed? #229

Open QuickSwitchLK opened 2 years ago

QuickSwitchLK commented 2 years ago

Home Assistant log showing the same error every few seconds.

2022-10-22 12:50:49.272 ERROR (Thread-3) [custom_components.dahua] Connection to VTO failed will try to connect in 30 seconds, error: [Errno 111] Connect call failed ('192.168.1.200', 5000), Line: 121

Have been successfully using this integration for some time now but had to reconfigure with my new NVR. Everything is working but noticed these errors while trying to clean up / update my Home Assistant.

My NVR local IP is 192.168.1.200, my intercom is working fine on 192.168.1.220 setup as its own device?

Its like the integration thinks all of my 9 cameras setup through the NVR are VTO's

Info on this issue would be helpful. Thanks.

billd46 commented 2 years ago

I'm getting the same thing but I was blaming the last version upgrade of HA (dont know if thats true or not - relucant to go back unless its the only choice). I'm on a HA Core install into a venv runing on a dodgy old MAC that wont take upgrades anymore and I went from 2022.10.1 to 2022.10.4. Here is the message I get in the log;

Connection to VTO failed will try to connect in 30 seconds, error: [Errno 61] Connect call failed ('192.168.20.219', 5000), Line: 121

My Dahua NVR is that IP address its reporting in the log (192.168.20.219).

I've rebooted everything multiple times, removed the Dahua device from HA and then reinstalled each of the cameras. All 4 of the IP cameras still work fine however the VTO will not connect. As QuickSwitchLK says above, the VTO still works fine and I can connect to it with a web browser as I have done in the past.

Zimbakin commented 1 year ago

Same here... The Dahua integration is constantly crashing my HASSIO

This error originated from a custom integration.

Logger: custom_components.dahua
Source: custom_components/dahua/vto.py:130
Integration: Dahua (documentation, issues)
First occurred: 16:31:22 (1 occurrences)
Last logged: 16:31:22

server closed the connection
This error originated from a custom integration.

Logger: custom_components.dahua
Source: helpers/update_coordinator.py:151
Integration: Dahua (documentation, issues)
First occurred: 16:31:13 (1 occurrences)
Last logged: 16:31:13

Error fetching dahua data: