Page 1 of 1

Dahua VTO2000A DoorIntercom

Posted: Sunday 28 October 2018 21:30
by dude
Hi,

I'm trying to integrate an IP based Dahua VTO2000 Intercom system with my domoticz system. There are two integration points:
  • Get the doorbel ring signal into domoticz;
  • Open the doors from Domoticz.
I managed to open the doors. Using the api on: https://s3.amazonaws.com/amcrest-files/ ... 3.2017.pdf

But don't know how to recieve the doorbel ring alarm signal.
Any suggestion is welcome thx !

Re: Dahua VTO2000A DoorIntercom

Posted: Monday 26 August 2019 17:44
by Gleneroo
Hello Gerard

After all this time, did you find a solution to do this ?

For opening the door, I also solved it thanks to various sources (incl ipcamtalk):
curl -s --globoff --digest --user %username%:%newpass% "http://192.168.1.110/cgi-bin/accessCont ... ype=Remote"

My very basic lua script is:

Code: Select all

commandArray = {}

if (otherdevices['Ouvrir portail'] == 'On') then
    print ("Appui sur bouton ouverture portail")
    os.execute('curl -s --globoff --digest --user admin:adminpwd "http://192.168.1.110/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote"')
    print ("La porte est ouverte pour une durée de 20 secondes");
end

return commandArray
However, same as you, for getting the doorbell ring signal into domoticz, I didn't find a way.
It seems possible to query every 10 seconds the call log, but it is not very satisfactory (and also not straightforward to achieve).

Regards

Re: Dahua VTO2000A DoorIntercom

Posted: Monday 26 August 2019 18:31
by dude
Thx Gleneroo,

Until now, I've not found a solution : to Get the doorbell ring signal into domoticz;
So If somebody knows how to get this done, i'll be glad to hear.
Opening the doors works fine.

Gerard

Re: Dahua VTO2000A DoorIntercom

Posted: Wednesday 05 February 2020 11:12
by Gleneroo
dude wrote: Monday 26 August 2019 18:31 Thx Gleneroo,

Until now, I've not found a solution : to Get the doorbell ring signal into domoticz;
So If somebody knows how to get this done, i'll be glad to hear.
Opening the doors works fine.

Gerard
Hey dude

I managed to do it, and it works perfectly with domoticz.

Credit to the solution found in this thread
https://ipcamtalk.com/threads/dahua-vto ... tem.34844/
It relates to detecting signal the VTO sends when the button is pressed.

I describe in much detail implementation of this solution with a VTO2000A and a raspberry pi here:
https://easydomoticz.com/forum/viewtopi ... 9&start=34
See my post dated 02 Feb 2020, 13:21

Raspberry pi CPU usage is 0.22%.

I believe this is enough detailed for you to implement it but if you have any question feel free to ask.

Re: Dahua VTO2000A DoorIntercom

Posted: Sunday 09 February 2020 20:18
by dude
Hi Gleneroo thx a lot, this seems the way forward!

My french is not that good but i managed to detect the Dahua doorbel on my Pi.
Is it possible to give a bit more detail about the configuration of the first two nodes in node-red ?

Thx in advance

Dude

Re: Dahua VTO2000A DoorIntercom

Posted: Monday 10 February 2020 10:28
by Gleneroo
First, do you already use or do you need nodered ?

In my case I need nodered because it is a simple way to control a google home, but if you don't have a specific case, you don't have to install a nodered server.

With nodered:
In the "script" I have curl -k 'http://192.168.1.104:1880/api?VTO=9';
1.104 is the address of my nodered server.
1880 is default port for nodered.
First node if a http GET and in address I put /api
The switch is to check payload.VTO==9

Without nodered/domoticz only:
In domoticz -> setup -> hardware -> set up a dummy switch. Name it as you want (e.g. doorbell).
Put it in your used devices.
Setup an auto "Off delay".
Find the right URL to change its status.
It should be something like this
[scheme]://[username:password@][host][:port]/json.htm?type=command&param=udevice&idx=[idx]&svalue=On
host is your domoticz internal IP
port is port open for domoticz
idx is identification number of your dummy device (setup -> devices -> column idx)

Or if doesn't work, refer to documentation
https://www.domoticz.com/wiki/Domoticz_ ... L's#Format
could be /json.htm?type=command&param=switchlight&idx=XXXX&switchcmd=On

Once you have an URL that works, just replace it in the script instead of this one curl -k 'http://192.168.1.104:1880/api?VTO=9'
and your dummy will change when the door button is pressed.
Then with a script in domoticz you can control whtever you want from this, as usual.

Re: Dahua VTO2000A DoorIntercom

Posted: Sunday 16 February 2020 16:49
by dude
Gleneroo,

Works, Thx !
used your solution in combination with node-red.

Dude

Re: Dahua VTO2000A DoorIntercom

Posted: Sunday 16 February 2020 16:53
by Gleneroo
Congratulations ! :D

Re: Dahua VTO2000A DoorIntercom

Posted: Friday 15 October 2021 15:35
by pascalspits
Hi,
I have a "vto2202f p" model, so should this also work ?

sudo tcpdump -i eth0 'src host [IPVTO]'
gave me aknowledgment of presence every minute, but NOTHING when I press the button ...

am I doing something wrong ?

I don't use NodeRed also ...
I would like to have a dummy-switch reacting to the doorbell press (when somebody rings my doorbell)
can this be done ?

Re: Dahua VTO2000A DoorIntercom

Posted: Friday 15 October 2021 17:27
by hoeby
pascalspits wrote: Friday 15 October 2021 15:35sudo tcpdump -i eth0 'src host [IPVTO]'
gave me aknowledgment of presence every minute, but NOTHING when I press the button ...
Are you using the app for push-notification?
When i read the first link, the app has to be online. When the Android devices sleep, it already doesn't work.

I dont't know nothing about the doorbell you have. Just reading the information

Re: Dahua VTO2000A DoorIntercom

Posted: Saturday 16 October 2021 9:21
by pascalspits
Android devices ?
I just want Domoticz to know when someone pushed the doorbell button and change a dummy switch accordingly ...
I don't see what this has to do with Android devices ?

can't I sniff the network traffic to catch the "button pressed" message and have a script change a dummy switch ?

hoeby wrote: Friday 15 October 2021 17:27
pascalspits wrote: Friday 15 October 2021 15:35sudo tcpdump -i eth0 'src host [IPVTO]'
gave me aknowledgment of presence every minute, but NOTHING when I press the button ...
Are you using the app for push-notification?
When i read the first link, the app has to be online. When the Android devices sleep, it already doesn't work.

I dont't know nothing about the doorbell you have. Just reading the information

Re: Dahua VTO2000A DoorIntercom

Posted: Saturday 16 October 2021 9:22
by pascalspits
google play app ? in Domoticz ? in the doorbell ?

I don't get it ...
siklosi wrote: Friday 15 October 2021 19:17 I'm using this app for some other purposes but I guess you could use it in this case also
https://play.google.com/store/apps/deta ... l=en&gl=US