Calls and email answered 24/7/365 · An HSM Company contact@hsmservices.ca 1 800 716 8955

AI Cameras guide

Integrating analytics with alarms, access control and your VMS

Relay, API and ONVIF integration methods, and how to design event flows that operators trust.

  • Advanced
  • 5 min read
  • Includes diagram

Key points

  • There are three main ways to connect systems: hard-wired relays, software integrations (APIs and plugins) and standard protocols such as ONVIF.
  • Relays are simple and robust but carry one bit of information. Software integrations carry context but depend on versions and licences.
  • Design the integration as a written cause and effect matrix before anyone configures anything.
  • Test every link end to end at commissioning, and again after any software update.

AI analytics deliver the most value when they are part of the wider security system rather than a separate screen. An intrusion event can arm a siren, a door forced alarm can pop up the right camera, and a plate read can open a gate. Getting there means deciding how the systems talk, what each one is responsible for, and what happens when a link fails.

A typical integrated system

Three ways systems connect AI cameras events + metadata VMS server rules engine Access control doors, gates ONVIF / driver API / plugin Alarm panel zone input Relay output dry contact Armed state to VMS Monitoring centre IP / cellular video verify Speakers, lights IP or relay Hard-wired relay Network / software Dashed: optional path
Diagram A relay between camera and alarm panel keeps working if the VMS is down. Software links carry richer information, such as which door and which person.

The three integration methods

MethodHow it worksStrengthsWeaknesses
Relay (dry contact)Camera or VMS I/O module closes a contact wired to an alarm panel zone, or a panel output wired to a camera inputSimple, vendor neutral, works if the network or server is downOne signal per pair of wires; no detail about what happened
Software integrationVMS plugin or API links to the access control, alarm or monitoring platformRich events with names, doors, video links; two-way controlDepends on both products' versions and licences; must be retested after updates
Standard protocolsONVIF for camera video and events; ONVIF Profile M for analytics metadata; SIP for audioMix brands; avoids proprietary lock-inNot every feature is exposed through the standard

Common integrations worth doing

  • Alarm state arms the analytics. When the intrusion panel is set, perimeter rules turn on. See intrusion zones and line crossing.
  • Analytics event as an alarm zone. A verified person-in-yard event trips a panel zone so the monitoring centre receives it with the rest of the site's alarms.
  • Door events pop up video. Door forced or held open alarms bring up the nearest camera with a bookmark in the recording.
  • Plate reads open gates. An allowed plate sends an unlock or open command to the gate controller. See licence plate recognition.
  • Tailgating detection. One badge but two people counted through a door raises an event at sensitive entries.
  • Lockdown and deterrence. An operator action or confirmed intrusion turns on floodlights and talk-down speakers.

Design it on paper first

Write a cause and effect matrix: every input, what it should cause, under which conditions, and in which system the logic lives. It becomes the commissioning test sheet too.

CauseConditionEffectLogic lives in
Person in yard zone (Cam 3, 4)Panel armedPanel zone 12 alarm; VMS alarm with clipCamera relay + VMS
Rear door forcedAlwaysVMS pops Cam 7, bookmarkAccess control to VMS integration
Plate on allow list, Gate 106:00 to 20:00Open gateLPR to access control
Panel set by last userAlwaysSwitch VMS rules to night profilePanel output to VMS input

Commissioning the integration

  1. Test each link on its own. Trigger the cause and confirm the effect, the timestamp and the event text in every system it touches.
  2. Test failure modes. Unplug the VMS server, drop the internet, cut panel power. Check what still works and that failures raise trouble signals.
  3. Check supervision. Relay inputs on the alarm panel should be supervised with end-of-line resistors per the panel maker, so a cut wire is reported.
  4. Record versions. Note firmware and software versions of every integrated product. Integrations often break after updates.
  5. Sign off with the user. Walk the matrix with the owner and monitoring centre and get it signed.

Our tuning and testing guide covers the analytics side of commissioning in detail.

Securing the links

Every integration is also a path into your network. A camera that can trigger a gate, or a VMS that can unlock doors, deserves the same care as any other critical system.

  • Put cameras, servers and controllers on their own network segment, with firewall rules allowing only the connections the integration needs.
  • Use dedicated service accounts for each integration, with the least permissions that work, and never the default admin password.
  • Turn on encryption (HTTPS, TLS) between systems wherever both ends support it.
  • Keep remote access behind a VPN or the vendor's secure relay rather than open ports on the internet firewall.
  • Review the integration accounts and logs at least once a year, and remove any that are no longer used.
Watch out

Never let an analytics event unlock a door or open a gate on its own unless that action is low risk and has a failsafe. Analytics have false positives. Use them to inform, alert and arm; use proper credentials to grant access.

Keep the clocks honest

Point every system at the same NTP time source. When the alarm log, access log and video disagree by two minutes, investigations get much harder.

Want a professional to handle it?

Our technicians install and certify ai cameras for businesses of every size. Send us the details and we will come back with a plan.