How to use Rules & Actions

This guide will show you how you can set up e-mail notifications in DT Studio using the Rules & Actions feature.

Examples of use

  • Send an alert when a freezer is too hot
  • Alert security if a window is opened
  • Notify a maintenance team if there is a water leakage
  • Be aware when a service button is pressed

What you need

  • Access to DT Studio
  • A user account with Project developer permissions

Steps

  1. Open DT Studio
  2. Select the Project containing the sensors you want the new rule to be applied for
  3. Select Rules and Actions in the left menu
  4. Select Create New rule
  5. Choose a suitable name
  6. Select Trigger
  7. Select Add action
  8. Select Add device
  9. Save 

Select trigger

Select the event that will trigger the notification. Each rule has one trigger. 

Trigger Description Sensors 
Touched Triggered when a sensor or Cloud Connector is touched All sensors and Cloud Connectors
Temperature Triggered when the temperature is within or outside of the defined range. Temperature, EN12830/330s, Humidity 
Relative Humidity Triggered when the humidity is within or outside of the defined range. Humidity
Object Present Triggered when the sensor is covered within 5mm if set to True

Triggered when the sensor stops being covered if set to False
Proximity
Water Detected Triggered when the sensor is covered with water if set to True

Triggered when the sensor stops being covered with water if set to False
Water Detector

Select action

Currently, only sending an email is the only action available. Fill out recipients, the subject and the body text that will be included in the email. 

Variables

For temperature triggers, you can add a $temperature for including the value of the temperature in the message. 

Example
Recipients: "technical@disruptive-technologies.com"
Email subject: "Room 103 has a high temperature"
Email body: "It is currently $temperature °C."

Select devices

Add all devices that the rules shall apply to by selecting Add Devices. You will then get a list view of all your devices, similar to the Sensors & Cloud Connectors overview. Add the devices by selecting the (+) to the left of the sensor name. 

Tip - emulated sensors

Use emulated sensors to easily test out your trigger rules with different values.

That's it

The rule is now created and ready to be used.