Dahua VTO2000A DoorIntercom

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
dude
Posts: 21
Joined: Friday 06 December 2013 21:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dahua VTO2000A DoorIntercom

Post 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 !
Raspberry PI, RFX 433E, Omnik Solar, Vair Co2, 1-wire, Qubino, TTN lora, Velux KF200, Kaku, Luftdaten, Meteo
Gleneroo
Posts: 14
Joined: Tuesday 05 June 2018 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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
dude
Posts: 21
Joined: Friday 06 December 2013 21:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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
Raspberry PI, RFX 433E, Omnik Solar, Vair Co2, 1-wire, Qubino, TTN lora, Velux KF200, Kaku, Luftdaten, Meteo
Gleneroo
Posts: 14
Joined: Tuesday 05 June 2018 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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.
dude
Posts: 21
Joined: Friday 06 December 2013 21:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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
Raspberry PI, RFX 433E, Omnik Solar, Vair Co2, 1-wire, Qubino, TTN lora, Velux KF200, Kaku, Luftdaten, Meteo
Gleneroo
Posts: 14
Joined: Tuesday 05 June 2018 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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.
dude
Posts: 21
Joined: Friday 06 December 2013 21:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dahua VTO2000A DoorIntercom

Post by dude »

Gleneroo,

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

Dude
Raspberry PI, RFX 433E, Omnik Solar, Vair Co2, 1-wire, Qubino, TTN lora, Velux KF200, Kaku, Luftdaten, Meteo
Gleneroo
Posts: 14
Joined: Tuesday 05 June 2018 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dahua VTO2000A DoorIntercom

Post by Gleneroo »

Congratulations ! :D
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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 ?
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
hoeby
Posts: 531
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
pascalspits
Posts: 88
Joined: Tuesday 24 February 2015 16:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

Re: Dahua VTO2000A DoorIntercom

Post 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
RasPi2 - Aeotec Z-Stick S2 - Fibaro multisensors - Fibaro RGBW dimmers - ETH08 relais boards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest