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
- Open DT Studio
- Select the Project containing the sensors you want the new rule to be applied for
- Select Rules and Actions in the left menu
- Select Create New rule
- Choose a suitable name
- Select Trigger
- Select Add action
- Select Add device
Select the event that will trigger the notification. Each rule has one trigger.
|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.
|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.
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.
For temperature triggers, you can add a $temperature for including the value of the temperature in the message.
Email subject: "Room 103 has a high temperature"
Email body: "It is currently $temperature °C."
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.
The rule is now created and ready to be used.