myhomeiot / DahuaVTO

Control Dahua VTO/VTH devices from Home Assistant
GNU General Public License v3.0
159 stars 18 forks source link

Compatibility with VTO2101E-P #11

Closed farkhad81 closed 2 years ago

farkhad81 commented 2 years ago

Hi, Im trying to hookup VTO2101E-P thru your integration. However it doesn't seem to work with it. The sensor Dahua VTO displays unknown status. Is there any chance to make this integration happen? Here is what I found in logs: 2022-01-02 15:54:50 ERROR (MainThread) [custom_components.dahua_vto.sensor] Dahua VTO: [Errno 113] Connect call failed ('192.168.1.110', 5000), retry in 10 seconds

myhomeiot commented 2 years ago

Hello, the VTO2101 should works, check logs, IP/user name/password and you can turn on the debugging Also check if you can control this VTO using Dahua DMSS application.

myhomeiot commented 2 years ago

2022-01-02 15:54:50 ERROR (MainThread) [custom_components.dahua_vto.sensor] Dahua VTO: [Errno 113] Connect call failed ('192.168.1.110', 5000), retry in 10 seconds

Looks like it's doesn't reply on port tcp/5000, check if Dahua DMSS application works.

Update: You can try to change port to 37777 in integration configuration (default is 5000) it's may help, but if protocol is encrypted it's doesn't supported by this integration. You can also try this integration

farkhad81 commented 2 years ago

debugging

Yes, I was able to connect with gDMSS., Ports seem to be open as well: Connection to 192.168.1.110 port 5000 [tcp/commplex-main] succeeded!

myhomeiot commented 2 years ago

Connection to 192.168.1.110 port 5000 [tcp/commplex-main] succeeded!

Check if the system where integration installed can connect to port 5000 of 192.168.1.110. Turn on the debugging and look for other messages, it's may help you to understand whats going wrong.

farkhad81 commented 2 years ago

Turning OFF VLAN Segmentation on my PoE switch happen to fix the issue :) Thanks for your assistance in troubleshooting and for your great plugin!

myhomeiot commented 2 years ago

Glad that integration works for you. Happy New Year!