• Docs
Show / Hide Table of Contents
  • Introduction
  • OneSense.io
    • Login
    • Home page
    • GeoConfiguration
      • Regions
      • Locations
    • Devices
      • Device Profiles
      • Devices
      • Device Config
      • Device Groups
      • Pump Controller
      • Device Anomalies
    • Dashboards
      • Dashboards
      • Dashboard Templates
    • Operations
      • Rules
      • Sliding Window Rules
      • Timer Rules
      • Snowflake Rules
      • Alerts
      • Actions
      • Device Updates
    • Assets
    • Administration
      • Users
      • Roles
      • Subscription
      • Settings
  • OneSense BLE Application
    • OneSense BLE App
  • OneSense Monitoring Station
    • Assembly Guide

Rules


Creating Rule


Alt Text
Step 1 :Open the Rules section from Operations component in the sidebar. Click on Create New Rule button.

Alt Text


Alt Text
Step 2 : Give Rule Name, select Rule Category and Select Device.
Alt Text
Step 3 : Now you’ll get the Device control for the device which you have selected from the list on the left side of the screen.

Rule Create Device


Check
Step 4 : Click "When Then" from the upper controls. Drag and drop it next to the device and connect them as shown below.

Rule When Then


Check
Step 5 : Configure the "When Then" conditions:
  1. Select a parameter (e.g., Temperature, Current) from the dropdown list.
  2. Select an operator (e.g., equals, greater than, less than).
  3. Enter a numerical value to define the condition limit.
  4. (Optional) Add another condition by repeating steps 2 and 3 for the same parameter.

Example: If Parameter Name is Humidity, the operator is "Greater Than", and the limit is 40, the condition created is "Humidity > 40".


Creating a Rule Using Email

Check Click on "Email" from the control panel, drag it next to "When Then", and connect them as shown below.

Rule Email Create


Check Enter your email address in the Email section.
Check If the conditions set in Step 5 are met, an email will be triggered.
Check Click "Save Changes" and then "Submit."

Find your rule under "Non-Approved Rules" and select "Approve" from the settings dropdown list on the right side of the screen.

Note: Only approved rules will run in the Rule Engine.

Creating a Rule Using Action

Check Click on "Action", drag it next to "When Then", and connect them as shown below.

Rule Action Create


Check Select an action name from the list.
Check If the conditions from Step 5 are met, the selected action will be triggered.
Check Click "Save Changes" and then "Submit."

Find your rule under "Non-Approved Rules" and select "Approve" from the settings dropdown list on the right side of the screen.

Note : Only approved rules will run in the Rule Engine.

Using Both Email and Action


Rule Action Email Create


We can combine the steps for adding Email functionality and Action functionality when creating rules to achieve both functionalities together.


Editing a Rule


Rule Home Settings


Check To edit a rule, click on "Edit" from the settings dropdown in the rule section.
Check Modify the required fields and settings.
Check Click "Save Changes" and then "Submit."

Find your rule under "Non-Approved Rules" and select "Approve" from the settings dropdown list on the right side of the screen.


Rule Edit


Deleting a Rule


Alt Text To delete a rule, navigate to the rule settings and click on "Delete" from the settings dropdown.

Alt Text Confirm the deletion when prompted. Once deleted, the rule will no longer appear in the list of active rules.


Rule Home Settings


Note: Deleted rules cannot be recovered.

Previous
Dashboard Templates
Next
Sliding Window Rules