Qubitro Documentation
SupportLog inSign Up
  • Documentation
  • Guides
  • Developers
  • Welcome
  • Data Sources
    • No-Code Integrations
      • Onomondo
      • Notehub
      • The Things Stack
      • Soracom
      • Loriot
      • 1NCE
      • Golioth
      • AWS IoT Core LoRaWAN
      • Actility ThingPark
      • Chirpstack
      • Particle
    • MQTT
    • HTTP
  • Platform
    • Project
      • Settings
      • Access Management
      • Roles & Permissions
    • Device
      • Settings
    • Storage
      • Time Series Storage
    • Functions
      • Decoder Function
        • LoRaWAN Device Template Decoder
        • LoRaWAN Custom Decoder
        • Hex Payload Decoder
      • Transformation Function
      • Rule Function
        • Send Email
        • Webhooks
        • Slack
        • Twilio
        • Mailgun
        • SendGrid
      • Storage Function
        • AWS Redshift
        • Google BigQuery
        • MQTT Publish
        • MongoDB Time Series
      • Scheduled Function
        • HTTP
      • Function Settings
      • Function Templates
        • Settings
    • Monitoring
      • Dashboards
        • Setup & Configuration
        • Widgets
          • Chart
          • State Timeline
          • Gauge
          • Stat
          • Headline
          • Aggregated Chart
          • Map
          • Battery
          • Image
          • Image Map
          • Table
          • Storage Table
          • Iframe
          • Blob Storage
        • Settings
        • Access Management
        • Roles & Permission
      • Blueprints
        • Setup & Configuration
        • Settings
    • Credentials
      • API Keys
      • External Credentials
        • Slack
        • Mailgun
        • SendGrid
        • Twilio
        • AWS Redshift
        • MQTT
        • MongoDB
        • The Things Stack
      • Webhook Signing Key
  • Add-Ons
    • Storage Views
    • Aggregated View
    • Archived Views
    • Blob Storage
    • Managed Email
    • Audit Log
    • MCP Server
  • Organizations
    • Overview
    • General
    • Groups
    • Members & Roles
      • Read Only
      • Read/Write
      • Admin
    • Custom Roles
    • Add-Ons
    • Billing
    • Invoices
    • White-Label
  • Account Management
    • Personal Accounts
Powered by GitBook
On this page
  • Functions
  • How It Works
  • Creating a Rule Function
  • Condition Configuration
Export as PDF
  1. Platform
  2. Functions

Rule Function

PreviousTransformation FunctionNextSend Email

Last updated 2 months ago

Functions

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.

For a deeper dive, read our guide:

Visual Condition Builder

The Visual Condition Builder is a no-code option that allows users to define conditions using dropdown menus.

How to Use JavaScript for Custom Rule Conditions in QubitroBy following this guide, you can customize Qubitro rule functions using JavaScript to create dynamic conditions.