Skip to main content

DahuaAlarmHub

The DAHUAALARMHUB I/O Server allows HSYCO to receive alarms from and send commands to the Dahua Alarm Hub 2 security panel. Communication between HSYCO and the panel requires the SIA (Security Industry Association) protocol to be configured on the panel.

Communication

The driver listens for incoming SIA messages over a TCP connection initiated by the Dahua Alarm Hub 2 panel, decodes the received messages (including optional decryption), and exposes the most relevant fields as datapoints. It also supports sending control messages.

SIA protocol notification must be activated on the DMSS app of the panel.

In the app, under Hub Settings, select Alarm Receiving Center then Alarm Receiving Center1

  • Select SIA DC-09 as the protocol.
  • Set the preferred IP address to the IP of the HSYCO server.
  • Set the heartbeat interval to 10 seconds or less if you need to notify alarms to HSYCO in real time.
  • Configure the central account as preferred — for example, "12345".
  • Enable AES-128 encryption.
  • Configure the panel to upload all events to HSYCO.

Remember to enable the Alarm Receiving Center, the first toggle button in the configuration.

HSYCO Configuration

Add a DAHUAALARMHUB I/O Server in the I/O Servers section of the Settings and set its parameters:

NameDefaultValuesDescription
port6410numberTCP port number on which the server listens
threads1numbernumber of threads used to handle connections
secretstringsecret key for AES encryption. Must match the key configured in the DMSS app.
centralaccountstringCentralaccount number. Must match the key configured in the DMSS app.

High Availability

  • Shutdown when inactive: defaults to false.

Datapoints

note

Unlike other I/O Servers, in this case it is not possible to reconstruct the state of the areas when HSYCO restarts, because alarm, arming, and disarming events are only sent by the alarm panel when the actual event occurs, and not on request.

DatapointTypeRDescription
area.<n>.armed0Rarea <n> is not armed
1Rarea <n> is armed
area.<n>awayRarea <n> is armed in away mode
awayWarm the area <n> in away mode
forceRarea <n> is armed in force mode
forceWarm the area <n> in force mode
homeRarea <n> is armed in home mode
homeWarm the area <n> in home mode
disarmRarea <n> is not armed
disarmWdisarm area <n>
area.<n>.alarm0Rarea <n> is not in alarm
1Rarea <n> is in alarm
area.<n>.panic0Rarea <n> is not in panic alarm
1Rarea <n> is in panic alarm
device.<n>.bypass0Rdevice <n> is not bypassed
0Wunbypass device <n>. This command can be used to restore from bypassa and tamper bypass
1Rdevice <n> is bypassed
1Wbypass device <n>
device.<n>.bypasstamper0Rdevice <n> tamper is not bypassed
1Rdevice <n> tamper is bypassed
device.<n>.deactivate1Wdevice <n> is deactivated
device.<n>.reactivate1Wdevice <n> is reactivated
commands.queueclearWclear the commands queue

Sending Commands

note

HSYCO manages a queue of commands to be sent to the panel and sends one command each time it receives a heartbeat signal from the panel. Therefore, it is recommended to set the heartbeat interval to 10 seconds or less. Therefore, to facilitate immediate command transmission, it is recommended to reduce the time interval between consecutive NULL messages to a few seconds.

Examples of EVENTS commands. The I/O server id is set to "dahua":

time : IO dahua.area.1 = away
time : IO dahua.area.1 = disarm
time : IO dahua.area.1 = home
time : IO dahua.area.1 = force
time : IO dahua.device.1 = bypass
time : IO dahua.device.1 = unbypass
time : IO dahua.device.1 = bypasstamper
time : IO dahua.device.2 = deactivate
time : IO dahua.device.2 = reactivate

Using javascript:

TIME : {
ioSet("dahua.area.1", "1");
}

Release Notes

3.10.0

  • initial release

DAHUA ALARM HUB is a trademark of Dahua Technology Co., Ltd