Rule Function
Functions

How It Works
1
2
3
Creating a Rule Function
Condition Configuration
JavaScript Logic Builder
How to Use JavaScript for Custom Rule Conditions in Qubitro
Visual Condition Builder

Last updated
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.

When data is received from a device, Qubitro processes it through a Rule Function in the following steps:
Check Debounce Period
Prevents excessive triggering by ensuring the rule is not executed too frequently.
Evaluate Condition
Determines whether the incoming data meets the defined criteria.
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.
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:
For users familiar with coding, the JavaScript Logic Builder allows custom condition creation using JavaScript syntax.
For a deeper dive, read our guide:
How to Use JavaScript for Custom Rule Conditions in Qubitro
The Visual Condition Builder is a no-code option that allows users to define conditions using dropdown menus.

Last updated