Ajax Camera and DoorBell

Version 1.0.0 · Created by Sammi

Local integration for Ajax video devices: TurretCam, BulletCam, DomeCam Mini, IndoorCam, DoorBell and Ajax NVR channels. It uses the ONVIF and RTSP interface built into Ajax video devices, so it talks to the camera directly on the LAN. It needs no Ajax Cloud account, no bridge box and no extra hardware.

Features

Requirements

DeviceMinimum firmware
NVR2.289
TurretCam / BulletCam / DomeCam Mini2.356
IndoorCam / DoorBell2.377

Control4 OS 3.0 or later. The device and the controller must be on the same network, and the device needs a fixed IP address or a DHCP reservation.

Step 1 – Enable ONVIF in the Ajax app

  1. In the Ajax (or Ajax PRO) app, open the space, go to Devices, select the camera or DoorBell, then open Settings (gear) and choose ONVIF.
  2. Turn on ONVIF. Use default settings gives ONVIF port 8080 and RTSP port 8554.
  3. Add a user with the Administrator or Operator role, a username and a strong password. A User role can stream video but may not receive events.
  4. Note the device IP address. Optionally copy the Mainstream and Substream RTSP links.

Step 2 – Configure the driver

PropertyDescription
Device TypeCamera, DoorBell or NVR Channel. The driver auto-detects DoorBell from the model name.
IP AddressDevice IP address (for an NVR, the NVR's IP address)
ONVIF Port / RTSP PortDefault 8080 / 8554
ONVIF Username / PasswordThe ONVIF user created in Step 1
NVR ChannelOnly used when Device Type is NVR Channel. Add one driver per channel.
Stream SelectionAuto (recommended), Always Mainstream or Always Substream
Mainstream / Substream RTSP LinkOptional. Paste the links from the Ajax app; these override discovery. You can leave the [login]:[password] placeholders in place because the driver supplies the credentials.
EventsEnable or disable the live event subscription
Motion Clear DelayHow long after motion stops before Motion Ended fires and the Motion output opens
Detection CooldownMinimum time between repeated AI events of the same type
Doorbell CooldownIgnores repeat presses within this time
Doorbell Topic OverrideText that identifies the doorbell event topic. Use this only if presses are not detected automatically (see Troubleshooting).
Debug ModeWrites to the Lua output window. It turns itself off after 1 hour.

The driver connects as soon as the properties are set. Driver Status shows Connected and Event Status shows Listening.

Programming

Events: Doorbell Pressed, Motion Started, Motion Ended, Person Detected, Vehicle Detected, Animal Detected, Line Crossing / Intrusion, Tamper Alarm, Any Detection, Camera Online, Camera Offline.

Variables: MOTION, PERSON, ONLINE (boolean), DOORBELL_LAST (time of the last press), LAST_EVENT.

Commands: Simulate Doorbell Press, Simulate Motion, Restart Events.

Typical doorbell programming: When Doorbell Pressed, pop up the camera on touchscreens, play a chime through audio zones, flash the hall lights and send a push notification.

Connections

Actions

Discover Camera, Restart Event Subscription, Test Doorbell Event, Test Motion Event, Clear Learned Topics.

Troubleshooting

Two-way talk is not supported because Control4 has no standard path for third-party doorbell audio. Ajax two-way talk stays in the Ajax app.