Gbit Tech (818) 809-6743
C-7 #1050088  ·  Liability insured  ·  UniFi Certified PartnerNever the cheapest. Built to last.

UniFi Lab 16

Door sensor and exit button

An office back door. The lock is wired right. Now the two inputs: the door sensor has to tell Access the truth, and the exit button has to let people out.

AccessDoor HubDry contact inputs

Your job: a shut, locked door reads Locked with no siren, and the exit button unlocks it.

This run: Break A. Door Position is set to Close active (NO), but the door sensor is NC.

Back doorlab label

Unauthorized Opening

Goal: reads Locked when shut, exit button unlocks

Door Controls

Back door

Office · inside view

Unauthorized Opening. The siren is sounding, but the door is shut.

lab label
SirenSoundingDoor HubMaglock · LockedDoor sensorReads OpenExit button
Inside view. The door sensor is a contact: a switch on the frame and a magnet on the door.

Door status

Access status table
LockDoor sensorShows
UnlockedClosed, or no sensorUnlocked
UnlockedOpenOpen
LockedClosed, or no sensorLocked
LockedOpenUnauthorized Opening
Lock
Locked
Door sensor reads
Open
Door leaf
Closed

Siren on AUX Siren mode · pre-met

Sounding

Door Hub terminals

Wiring is right · pre-met
Door HubDry contact inputs

LOCK

  • NCMaglock
  • COMMaglock

Fail-safe maglock, see Lab 06

DOOR POSITION

  • +Sensor NC
  • -Sensor COM

Trigger level: Close active (NO)

BUTTON

  • Exit button

Mode: Unlock Door

AUX

  • Siren

Siren mode

MOTION

  • Empty

Dry contact

Controls

Run
Terminal settings

Devices · Door Hub · Terminal

Door Position · Trigger level

Button · Mode

At the door

Door leaf

After an unlock, the door locks again when the unlock time ends.

Shelf

Good to know · info only

Out of scope for this lab

Wire gauge and run lengths Fire panel and Emergency Mode Door operator Doorbell chime wiring Other hub models

Why this fails

Door sensor trigger level backwards

If a locked, shut door shows Unauthorized Opening, check the trigger level before you blame the sensor.

Fix: in Devices, Door Hub, Terminal, Door Position, set the trigger level to Open active (NC). Status goes to Locked, siren stops.

Door sensor

A door sensor is just a contact. NC means closed when the door is shut. Match the trigger level to the sensor: open active (NC) for most.

Glossary

Door position sensor (DPS)
A contact on the door and frame that tells the hub whether the door is open or closed.
Request to exit (REX)
A button, motion sensor, or panic bar that unlocks the door from the inside without a credential.
Trigger level
Which contact state counts as active. Open active (NC) or close active (NO).
Unauthorized Opening
Access status when the door opens while it's locked.
Free egress
Leaving without badging out.

Gear in this lab

  • 1 Door Hub
  • 1 Fail-safe maglock
  • 1 Door sensor, NC
  • 1 Exit button
  • 1 Siren
  • 0 Motion sensor
Change on win: none yet

Counts only, no prices.

A teaching lab, not a quote and not a design for your site. Wiring and statuses follow Ubiquiti's Door Hub help articles. The status lines are lab labels; the app's exact wording for these cases isn't documented.