Ubidots users have the added events and alerts feature of Conditional statements. A conditional is any IF / Then statement arranged to qualify an action based on a series of inputs (or lacking inputs). 

In this article we will demonstrate how to construct a Conditional Event using Ubidots Events Engine. 

Creating a Conditional Event

To create an Event:

  1. Select Events (from the Device Management 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. Press the center "right arrow" icon in the center screen to proceed to Operational Window
  9. Determine the time window the events may/may not be valid
  10. 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(s): Data Sim (the name of your device or devices; multiple devices can be applied to a single event or built into logical events)

Step 4: Select a variable(s): Temperature and Humidity (variable listed)

Step 5: Establish event logic: if the value is greater than 90, for 60 minutes (further building the event logic with AND / OR conditionals as needed)

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

Step 7: Establish which actions are to be executed and the message to the receiver: Send SMS, Email, Webhooks, and Telegrams to those who need to know.

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

  • Last_value
  • Context
  • Trigger_timestamp
  • Variable
  • Variable Name
  • Varibale_id
  • Variable properties

Stop 8: Press the center "right arrow" or "check mark" icon in the center screen to proceed to Operational Window

Step 9: Determine the time window the events may/may not be valid

Step 10: Confirm your Events

When and how does an Ubidots Event trigger:

The figure below describes how the Events Engine triggers alerts inside Ubidots core:

Please note that after an alert is triggered, the subsequent values will not trigger the alert again, even if they comply with the trigger conditions, unless the value goes outside the trigger condition and returns again:

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. 

Did this answer your question?