Set up occupancy triggers

Set up a trigger to monitor when the number of people in a location or zone increases or decreases. You need the Administrator and Triggers Manager user roles to set up a trigger.

How it works

Triggers are used to automate actions based on sign in/out activity in MRI OnLocation. There are many different triggers available, including sending notifications, displaying messages on a kiosk, denying access based on answers to custom questions, and more. Your account must have the triggers add-on enabled to set up a trigger.

There are four occupancy event triggers available:

  • Zone occupancy decreases
  • Zone occupancy increases
  • Location occupancy decreases
  • Location occupancy increases

You can also set up deny access triggers, based on the total number of people on site. 

To set up an occupancy trigger, you need to configure the following details: 

  1. Choose the event – select when you'd like to activate the trigger.
  2. Set up the rule – choose the parameters for activating the trigger.
  3. Set up the notification – select who in your organization needs to be notified and what the contents of the message should be. 

Setting occupancy limits

The occupancy triggers are based on the two occupancy limits in OnLocation:

When someone signs into a location or zone, you can use triggers to monitor the occupancy levels. 

Calculating occupancy changes

Occupancy triggers use formulas to calculate when a zone or location increases or decreases. The following variables can be used while setting up the rule:

  • maxo - the maximum occupancy this location can have
  • max_zo - the maximum occupancy this zone can have

Rule examples using a variable:

  • maxo_zo: equals the maximum occupancy this zone can have
  • max_zo - 5: the maximum zone occupancy minus 5
  • max_zo + 5: the maximum zone occupancy plus 5


Example: Set up a trigger to get notified when a zone is almost full

Before you start, make sure you've added the maximum occupancy for the zone

To set up a trigger: 

  1. Go to Locations, then select the location from the drop-down list.
  2. Select Triggers.
  3. Click Create a New Trigger.


Trigger Details tab

  1. Enter the trigger name.
  2. Select Active next to the Trigger Status.
  3. Under Trigger Event, select Zone Occupancy Increases.
  4. Click Next.


Trigger Rules tab

  1. Next to Must match all of the following rules, click Create a New Rule.
  2. Select the Zone rule.
  3. Select is the following as the rule condition.
  4. Select the relevant zone.
  5. Next to Must match all of the following rules, click Create a New Rule.
  6. Select the Zone - Total People in zone rule.
  7. Select equal to as the rule condition.
  8. Enter max_zo - 1. The trigger will fire when the zone is 1 person under the maximum occupancy. 
  9. Click Next.


Trigger Actions tab

  1. Click Create a New Action.
  2. Select Notification: Send an Email as the action.
  3. Select Employees as the recipient type.
  4. Select Selected Employees as the recipient, then choose the employee.
  5. Enter the relevant email subject and message.
  6. Click Save & Close.


When the zone is one person away from capacity, the selected employee will receive a notification.