Functions in Qubitro allow you to process, modify, and automate actions based on incoming device data. There are multiple function types, each serving a specific purpose.
How It Works
When data is received from a device, Qubitro processes it through a Rule Function in the following steps:
1
Check Debounce Period
Prevents excessive triggering by ensuring the rule is not executed too frequently.
2
Evaluate Condition
Determines whether the incoming data meets the defined criteria.
3
Trigger Action
If the condition is met, the configured action is executed immediately.
Rule Functions operate only on real-time data – They cannot query historical data from the database.
Each Rule Function executes a single pre-configured action – It does not support executing multiple actions within one function.
Creating a Rule Function
1
Step 1: Navigate to the Device Page
Go to the Devices page, select the device you want to create a function for, and navigate to its detail page.
2
Step 2: Open the Functions Tab
Click on the Functions tab, then click on Create function.
3
Step 3: Choose a Function Type
Click the Get started button and follow the required steps to configure the function.
For detailed guidance on each function type, visit its dedicated documentation page.
4
Step 4: Configure and Save
Each function type has unique configuration options. Follow the specific instructions for the selected function type.
Condition Configuration
Rule Functions in Qubitro allow you to define conditions that determine whether an action should be triggered based on incoming device data.
There are two ways to configure conditions:
JavaScript Logic Builder
For users familiar with coding, the JavaScript Logic Builder allows custom condition creation using JavaScript syntax.