Integration of the Dahua DHI-VTO3311Q-WP door station
Dahua door stations supporting the SIP protocol can be integrated into the Thinknx system using the PBX built into the server. The following procedure refers to the DHI-VTO3311Q-WP model.
Dahua door station configuration
Access the web interface of the Dahua door station using its IP address and administrator credentials.
Before proceeding, make sure that the PBX is enabled on the Thinknx server and that the door station has been configured in the Intercom devices editor of the VoIP PBX object. For PBX configuration, refer to VoIP PBX & Doorcom.
1. SIP server configuration
Go to Network Settings → SIP Server.
Configure the following parameters:
- Local SIP Server: disable this option to use the Thinknx PBX.
- Server Type: select Third-party Server.
- Server Address: enter the IP address of the Thinknx server (192.168.1.6 in this example).
- Port: enter the SIP port of the Thinknx PBX (5060 in this example).
- Custom Name: enable this option.
- SIP No.: enter the number shown in the Username PBX property of the door station configured in the Thinknx PBX (902 in this example).
- Registration Password: enter the password of the SIP account created in the Thinknx PBX.
- SIP Domain: enter a generic value, such as VDP. The domain does not need to match the Thinknx server address.
Click Apply to save the configuration.
2. Door station identification
Go to Local Device Config → Basic Settings.
Set VTO ID to the number shown in the Username PBX property of the door station (902 in this example).
The VTO ID must match both the SIP No. configured in the SIP Server section and the Username PBX property of the door station configured in the Thinknx PBX.
3. Call destination configuration
Go to Device Setting.
Create a VTH device for each call number that the Dahua door station needs to reach.
Click Add and configure the new device.
- First Name, Last Name and Alias: enter values of your choice.
- Room No.: enter the call number configured in the Thinknx PBX.
- Registration Mode: leave set to Public, as shown in the example.
- Registration Password: enter a password of your choice.
For the Thinknx integration, Room No. is the only relevant parameter.
In this example, two VTH devices have been created, corresponding to call numbers 9001 and 9002.
Repeat the procedure for each call number to be used.
Physical VTH devices are not required. The entries created in this section define the SIP call destinations.
4. Call button configuration
Go to Local Device Config → Layout.
This section displays a graphical representation of the Dahua door station, allowing a call number to be assigned to each physical button.
Select the button to configure to open the Button Settings window.
Configure the following parameters:
- Button Functions: select Room No..
- Room No.: select one of the numbers previously configured in the Device Setting section.
Click OK and repeat the procedure for each button to be configured.
Once all buttons have been assigned, click Apply to save the configuration.
In this example:
- The first button calls number 9001.
- The second button calls number 9002.
- The third and fourth buttons are not configured.
Each button can be assigned the number of an individual SIP user or a Ring Group configured in the Thinknx PBX.
5. DTMF unlock code configuration
In the door station web interface, go to Local Device Config → Access Control → Config.
Set Unlock Code to the code used to unlock the door during an intercom call (123 in this example).
The following parameters can also be configured in this section:
- Interval between Consecutive Unlocks: minimum interval between two unlock commands (5 seconds in this example).
- Door Unlocked Duration: duration for which the lock remains unlocked (2 seconds in this example).
Click Apply to save the configuration.
Configuration in Thinknx Configurator
Starting from firmware version 1.1.10.34, the video stream and command buttons can be managed directly in the intercom call pop-up.
Follow the procedure corresponding to the firmware version installed on the Thinknx server.
Configuration from version 1.1.10.34 onwards
Door station configuration
Open the VoIP PBX object in the System section and open the Intercom devices editor. Add or select the Dahua door station.
- Label: assign a name to the door station.
- Device type: select Generic IP Doorstation.
- Username PBX: use the number assigned to the door station (902 in this example) for SIP configuration on the Dahua device.
- Command buttons: open the collection to configure the commands displayed in the call pop-up.
- Auxiliary camera: leave disabled if only the video stream from the intercom call is required.
Door unlocking via HTTP
In the Command buttons editor, click Add and configure a button to unlock the door via HTTP.
- Label: assign a name to the button.
- Command: select Reports & Gateways → Ethernet Gateway → Gateway Ethernet → HTTP requests commands → Make a http GET call to a specified url.
- URL: enter the HTTP request shown below.
- Image: select an image for the button, if required.
http://USERNAME:PASSWORD@192.168.1.108/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote
Replace USERNAME and PASSWORD with the authorized door station credentials and the IP address with that of the device. Lock channel 1 is used in this example. Configure the Ethernet Gateway in the project.
Check that the HTTP request and authentication method are compatible with the Dahua firmware in use. Use credentials authorized to unlock the door and do not expose the door station HTTP interface directly to the Internet. HTTP does not guarantee encryption of the credentials or request. Restrict access to the unlock command to authorized users.
Door unlocking via DTMF
Add a button to the Command buttons collection and configure the following parameters:
- Label: assign a name to the button.
- Command: select System → Send DTMF tone during intercom call.
- DTMF tones sequence: enter the
#character followed by the unlock code configured on the door station (#123in this example). - Image: select an image for the button, if required.
The DTMF command can only be used during an active intercom call.
Click OK to confirm the configuration in both editors.
Intercom call display
When an incoming call is received, the intercom pop-up is displayed, allowing the user to answer or reject the call.
The video stream from the call is displayed directly in the pop-up, without requiring a dedicated Camera object on the project page. In this example, the auxiliary camera is disabled.
The buttons configured in the Command buttons editor are displayed directly in the intercom pop-up, in both landscape and portrait orientations.
The HTTP command can also be used before answering the call, whereas the DTMF command requires an active intercom call.
To unlock the door even when there is no intercom call, a generic command object can be used on the project page.
Configuration for versions prior to 1.1.10.34
In addition to managing calls through the PBX, the door station video stream can be displayed and the door unlocked using an HTTP request or DTMF tones during an intercom call.
Camera configuration
Add a Camera object to the desired project page and configure the following parameters:
| Parameter | Value / Description |
|---|---|
| Type | Generic Camera |
| Use RTSP | Enabled |
| Stream options | rtsp-tcp |
| Audio stream | Disabled if audio is handled through the SIP call. |
| Image path | /cam/realmonitor?channel=1&subtype=0 |
| External address | Door station IP address (192.168.1.108 in this example). |
| External port | 554 |
| Use local connection | Enabled |
| Local address | Dahua door station IP address (192.168.1.108 in this example). |
| Local port | 554 |
| Username | Door station username authorized to view the video stream. |
| Security Password | Password of the corresponding user. |
The subtype=0 parameter identifies the main video stream. In this example, the local and external addresses are identical; this does not imply that the camera is accessible from the Internet.
Door unlocking via HTTP
To unlock the door independently of an intercom call, an HTTP request can be sent to the door station through the Thinknx server Ethernet Gateway.
Configure the Ethernet Gateway in the project and add a generic command object to the desired page.
In the Command property, select Reports & Gateways → Ethernet Gateway → Gateway Ethernet → HTTP requests commands → Make a http GET call to a specified url.
In the URL parameter, enter the HTTP request to unlock the door. Example request:
http://USERNAME:PASSWORD@192.168.1.108/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote
- USERNAME / PASSWORD: credentials of a Dahua user authorized to unlock the door.
- 192.168.1.108: IP address of the Dahua door station.
- channel=1: lock channel used in this example.
- UserID=101: identifier used in the example HTTP request.
- Type=Remote: indicates a remote unlock command.
The Timeout for connection in milliseconds can be left at the default value of 3000 ms.
Check that the HTTP request and authentication method are compatible with the Dahua firmware in use. Use credentials authorized to unlock the door and do not expose the door station HTTP interface directly to the Internet. HTTP does not guarantee encryption of the credentials or request. Restrict access to the unlock command to authorized users.
Door unlocking via DTMF
Add a generic command object to the desired project page.
In the Command property, select System → Send DTMF tone during intercom call.
In the DTMF tones sequence parameter, enter the # character followed by the unlock code configured on the Dahua door station. In this example, the sequence is #123.
The DTMF command can only be used during an active intercom call. Code 123 is provided as an example: use a dedicated code for the installation and configure the corresponding sequence in Thinknx.
Operational checks
After exporting the project to the server and the relevant clients, check the SIP registration of the door station in the PBX, the correct call destination for each button, two-way audio, video stream display and the operation of the configured unlock commands.














