Table of Contents:

  1. Types of Events
  2. When and how does an Ubidots Event trigger?
  3. Creating a Conditional Event
  4. Create a "Back to Normal" Notification
  5. Create a Geofence Notification
  6. Results

1. Types of Events

Ubidots support already integrated events to allow you to send Events, Alerts, and Notifications to those who need to know, when they need to know.
Ubidots' prebuilt integrations include: 

  1. Email notifications
  2. SMS notifications
  3. Webhook events - learn more
  4. Telegram notifications
  5. Slack notifications - learn more
  6. Telephone Call notifications - coming soon
  7. Back to Normal notification - learn more
  8. Geofence notifications - learn more

2. When and how does an Ubidots Event trigger?

The figure below describes how the Events Engine triggers alerts inside an active event window. Note that data (blue line) passes through the Threshold triggering an event; then the data must fall below the threshold agains before Ubidots triggers then next event.

Please note that after an alert is triggered, subsequent values will not be triggered again, even if they comply with the trigger conditions. A second trigger cannot take place unless the data values return below the threshold value and exceed the threshold again:

Events can ONLY be triggered in an Active Event Window as depicted below. Activity Windows are described further in Step 9 later in this guide.

'Has been inactive' condition events will ONLY be triggered if the inactiveness is within the active window. 'Has been inactive' condition is described better in Step 5 down in this guide.

2. Creating a Conditional Event

To create an Event:

  1. Select Events (from the Data dropdown)
  2. Select the If triggers tab to organize your event logic (If A,B, and/or C exists, then execute XYZ)
  3. Select a device(s): Data Sim (the name of your device)
  4. Select a variable(s): Temperature and Humidity
  5. Establish Conditions: If the value is greater than 90, for 60 minutes (building the event logic with further AND / OR conditionals as needed)
  6. Select the Then actions tab to execute the planed Event or Alert (SMS, Email, Telegram, and/or Webhook)
  7. Establish which actions are to be executed and the message to the receiver: Send SMS and Email to Repair Rob.
  8. Determine the time window the events may/may not be valid
  9. Confirm your Events

Tip: In Ubidots conditional events engine you may select multiple devices and multiple variables within a single event or built complex events with triggers exist for multi-logic events (If {dev 1, varA} or {device 2, varB} are 100, then send SMS message)

Step 2: Select the If triggers tab to organize your event logic (If A,B, and/or C exists, then execute XYZ)

Step 3: Select a device: DEVICE A (one device per conditional expression; multiple devices can be added using AND / OR conditionals)

Step 4: Select a variable: Temperature (one variable per device can be selected at a time. Step 6 below states how to add multiple device variable conditions to an event)

Step 5: Establish event logic: if the value is greater than 90, for 60 minutes. (Assign the event trigger logic as desired.

Step 6 (OPTIONAL): Add additional Device and Variable triggers by adding in additional AND or OR statements. Click the +And  or +Or button to add an additional If triggers expression.   

Step 7: Select the Then actions tab to execute the planed Event or Alert (SMS, Email, Telegram, Slack, and/or Webhook)

Step 8: Establish and configure which actions are to be executed and the message to the receiver: Send SMS, Email, Webhooks, Telegrams, Phone Calls, SLACK, and webhooks to those who need to know.

Select the event type:

Configure the Event notice:

Pro Tip: Add Specific Data Inputs into the Event for immediate info

  • Context
  • Device Label 
  • Device Name
  • Last Value
  • Timestamp – relative to data
  • Trigger_timestamp – relative to triggered event
  • Variable
  • Varibale_ID
  • Variable Name
  • Variable Properties - learn more

Step 8: Determine the activity window the events may/may not be executed.

Step 9: Confirm your Events

4. Create a "Back to Normal" Notification

After creating an Event or Alert, it is inevitable that the event will be triggered at some point; one great feature of Ubidots Events Engine is the "Back to Normal" conditional verification notification. To activate a Back to Normal notification, simply follow the below three steps. 

Step 1: Select "BACK TO NORMAL" tab from the event's actions tab.
Step 2:
Select the "Trigger this action" box to verify the desire to receive a "back to normal" notification.
Step 3: Add the Custom Notification Text as you see fit

Pro Tip: Be sure to save your results. 

4. Results

Now it is your turn to build your very own conditional events with Ubidots. If you need a little help along the way, no problem, just message our team via email at support@ubidots.com or by the in-app chat channel with that little blue chat bubble in the bottom right of your App. 

Other users also found helpful:

  1. Events: Was my event triggered? How to check the event's Log
  2. Events: Slack Webhook setup
  3. Ubifunctions: Process/Parse data from 3rd party platforms
Did this answer your question?