VMS Software

How to Use a Dry Contact Relay for Barriers, Gates, Locks, and Other Devices with SmartVision

When people first assemble a small access control setup on their own, the same question almost always comes up: which relay should be used to open a barrier, gate, door, or other actuator, and how should it be connected to a video surveillance system. In practice, a dry contact relay is one of the most universal and useful components in automation. It is not tied to any specific brand, does not require complex integration, and is suitable for a wide range of scenarios.
If a video surveillance system can send HTTP commands over a local network, then such a relay can be used to trigger many useful actions: open a barrier, send an impulse to gate automation, briefly close the control input of an electric lock, activate a siren, switch on a floodlight, enable visual signaling, or control another external actuator.
That is exactly why dry contact relays are so often used together with video surveillance systems, especially when there is a need to quickly build a working solution without expensive access controllers and without turning the installation into an archaeological monument made of adapters, temporary wiring, and “quick fixes” that somehow remain in place for years.

What a Dry Contact Relay Is

A dry contact relay is a relay whose output does not supply any voltage on its own. It simply opens or closes an electrical circuit, just like a regular button or switch.
This is the key idea. A dry contact does not attempt to power the barrier or guess what voltage or logic the device uses. It simply does what it is supposed to do: connects or disconnects two contacts for a short time or keeps them closed when required.
Because of this, a dry contact is extremely convenient:
  • it is electrically neutral;
  • it works with different automation systems;
  • it can simulate a button press;
  • it does not interfere with the internal circuitry of the controlled device;
  • it reduces the risk of applying incorrect voltage.
In simple terms, a dry contact is an “intelligent finger” that presses the required button inside an external device when instructed.

Why a Dry Contact Is Needed

A dry contact is used when it is necessary to send a control signal rather than provide power to a device. This distinction is very important, and beginners often confuse these two concepts: powering a device and controlling a device.
For example, a barrier typically has its own controller and power supply. To open it, there is no need to apply twelve volts from a relay. Instead, it is usually necessary to briefly close two control terminals on the barrier control board, as if someone pressed the “Open” button.
The same principle applies to many devices:
  • automatic gates;
  • electric locks through a controller;
  • intercom systems;
  • turnstiles;
  • alarm inputs;
  • lighting systems;
  • sirens;
  • controller button inputs;
  • inputs labeled START, OPEN, TRIGGER, EXIT.
This is why dry contact relays are so valuable in video surveillance and automation systems. They are universal. Today they open a gate, tomorrow they switch on lighting, and the day after that they trigger ventilation during an alarm. It is a traditional engineering tool, and that is precisely why it remains reliable.

Where the Relay Is Used in a Video Surveillance System

In combination with SmartVision, the relay becomes an execution component. A camera or analytics module detects an event, and then the system sends a command to the relay module over the network.
For example:
  • a license plate from a whitelist is recognized, open the barrier;
  • a known face is recognized, open the door;
  • a person is detected in a restricted area at night, turn on a floodlight;
  • an alarm event is detected, activate a siren;
  • an operator presses a button in the interface, open the gate manually;
  • motion is detected at the entrance, send an impulse to external automation.
In this scheme, the relay does not make decisions. It simply executes commands. Decisions are made by the video surveillance system, analytics, the operator, or automation rules.

SmartVision Integration Module

SmartVision includes an integration module designed to connect the video surveillance system with external devices and services. It allows the system to automatically perform actions when specific events occur: open doors and barriers, activate sirens or lighting, launch external programs, send commands to access control systems, smart home platforms, security services, and other connected solutions.
In other words, SmartVision does not only detect an event but also reacts to it immediately.
Within the settings of each camera, there is a dedicated section for actions. It displays predefined conditions for which automatic responses can be configured. For example, the system can be configured to respond when a vehicle from a whitelist is detected, a face from a blacklist is identified, or smoke or fire is detected.
For each condition, the user can assign an action, define a schedule, and enable or disable the rule. The configuration remains clear and predictable: one condition, one action, one expected result.
By default, rules are created in advance but remain inactive until the user explicitly assigns an action and enables them. This approach prevents unintended activations and ensures controlled deployment.

Why Dry Contact Is Ideal for Barriers and Gates

Barrier and gate automation systems typically already have their own control boards, logic, and power supply. To trigger them, it is usually sufficient to briefly close a pair of control terminals.
A dry contact relay connects to these control inputs and simulates a button press. This approach offers several advantages:
  • no need to interfere with the power circuitry;
  • no need to inject external voltage into the control board;
  • safer and simpler integration;
  • easier diagnostics;
  • the relay can be replaced without affecting the automation logic.
In short, the dry contact interacts with automation in a clean and non-intrusive way.

Suitable Devices for Dry Contact Relays

Dry contact relays are not limited to barriers. They are widely used with:
  • automatic gates;
  • door actuators;
  • turnstiles;
  • intercom systems;
  • electric locks via controllers;
  • sirens and signaling devices;
  • floodlights and lighting systems;
  • alarm inputs;
  • programmable logic controllers;
  • smart home systems;
  • ventilation and other actuators requiring external triggering.
The key rule is always the same: determine whether the device requires a control signal or a power supply. If a control signal is required, a dry contact relay is appropriate.

Choosing the Right Relay

In most cases, any network relay that supports HTTP control within a local network will work. The important requirements are:
  • presence of dry contacts;
  • network control capability;
  • accessibility via a local IP address;
  • support for HTTP GET or POST commands;
  • ability to configure contact operation modes;
  • preferably support for pulse mode or automatic return.
A practical example is the DT Ethernet Wi-Fi RS485 relay module, which is suitable for small installations and flexible setups.

Example: DT Ethernet Wi-Fi RS485

This module supports multiple interfaces and is convenient for standalone installations. It can be accessed initially through its built-in Wi-Fi access point and later integrated into a standard local network.
Typical characteristics include:
  • interfaces: RJ45, RS485, CAN, Wi-Fi;
  • contact types: normally open and normally closed;
  • support for delay and automatic return;
  • operating temperature range from minus twenty to plus seventy degrees Celsius.
This allows the module to be installed near the controlled device and managed through simple HTTP commands from SmartVision.

Understanding COM, NO, and NC

Most relays provide three terminals:
  • COM, the common terminal;
  • NO, normally open;
  • NC, normally closed.
When the relay is inactive, COM and NO are open, while COM and NC are closed. When activated, COM and NO close, and COM and NC open.
For barriers and gates, COM and NO are typically used because the system requires a brief closure during activation.

Powering the Relay

A critical detail is that the relay module itself requires power, but the dry contact does not provide power to external devices. These are separate circuits.
The relay must be powered using an appropriate power supply according to its specifications. The dry contact terminals are used only for control signals.
Before connecting:
  • verify the required voltage;
  • ensure correct polarity if applicable;
  • do not confuse power terminals with relay contacts;
  • use a stable power supply;
  • consider adding protection such as a fuse.

Testing the Relay Before Installation

Before connecting the relay to a barrier or gate, it is recommended to test it separately. This helps avoid unnecessary troubleshooting later.
Using a multimeter, connect probes to COM and NO. In the idle state, the circuit should be open. After activating the relay through the web interface or an HTTP command, the contacts should close, and resistance should drop to near zero.

Initial Access via Wi-Fi

The DT Ethernet Wi-Fi RS485 module allows initial access through its access point at:
In the web interface, the Relay Control section can be used to manually activate outputs. The first channel can be tested using Do On and Do Off commands.

HTTP Control Commands

Typical commands for this module are:
Activation:
Deactivation:
Pulse mode:
Parameters may vary depending on the device, so documentation should always be checked.

Do You Need Both Open and Close Commands

In many cases, no. Barrier and gate systems often require only a short impulse. The automation handles the rest internally.
Using pulse mode or automatic return simplifies configuration, reduces the risk of leaving contacts closed, and makes the relay behave like a button rather than a switch.

Connecting the Relay to a Barrier or Gate

The process involves locating the control input on the automation board, identifying the terminals required for triggering, and connecting COM and NO from the relay.
It is essential to avoid connecting to power circuits. Only control inputs designed for external triggering should be used.

Configuring SmartVision

Once the relay is accessible, SmartVision can be configured to send HTTP commands based on events. Actions can be created globally and then assigned to camera conditions such as license plate recognition, face detection, or motion events.
Each action can include request parameters, authentication settings, timeouts, retry logic, and additional data.

Typical Workflow

A typical scenario is straightforward. A camera monitors an entrance. SmartVision analyzes the video stream. When a condition is met, such as recognizing an authorized vehicle, the system sends an HTTP command to the relay. The relay closes the contact. The barrier controller interprets this as a button press and opens. After a delay, the contact returns to its original state.

Key Considerations

For stable operation:
  • assign a static IP address to the relay;
  • change default passwords;
  • keep the device within a local network or protected environment;
  • use the correct operating mode;
  • verify contacts before installation.

Common Mistakes

Typical errors include confusing power and control circuits, using incorrect terminals, attempting to control power circuits instead of control inputs, skipping testing, and misconfiguring relay modes.

Conclusion

A dry contact relay is a simple and highly effective way to connect SmartVision with external devices. It is especially useful where a control signal is required instead of power delivery.
With SmartVision integration, the system can detect events, evaluate conditions, and trigger real-world actions automatically. The combination of analytics and relay control creates a practical and reliable automation solution where cameras observe, the system decides, and devices respond accordingly.
2026-04-06 16:00 In Focus ALPR Face Recognition SmartVision