ThingsBoard PE Feature

Only ThingsBoard Professional Edition supports Scheduler feature.

See ThingsBoard PE Installation Options to install ThingsBoard PE.


ThingsBoard allows you to schedule various types of events with flexible schedule configuration. ThingsBoard Scheduler fires configured scheduler events according to their schedule. When scheduler event is fired the Rule Engine Message is generated from the event configuration which has a similar structure with a Rule Engine Message. Generated message is then forwarded to Rule Engine and processed starting from the Root Rule Chain.


Video tutorial

See video tutorial below for step-by-step instruction how to use this feature.

Scheduler Administration

Tenant administrator and customer users are able to configure Scheduler events in ThingsBoard.


Scheduler events page displays current configured scheduler events. It allows to add, update or delete scheduler events. The page can be presented in two modes List view or Calendar view. The views can be switched by pressing corresponding icons in the page header.


In the calendar view mode scheduler events are presented as labels according to their schedule.


By default calendar view is presented as Month view type. Calendar view type dropdown allows to switch to other view types. The following view types can be selected:

  • Month / Week / Day / List Year / List Month / List Week / List Day / Agenda Week / Agenda Day

New scheduler event can be created by clicking on + button in top right corner or by clicking on any cell of Calendar view.

Scheduler Event Dialog

Scheduler event edit dialog consist of two forms Configuration and Schedule.


Configuration form allows to set event type and event configuration parameters according to selected event type. Configuration of scheduler event is described in Scheduler Event Types section.

Schedule form allows to setup event schedule configuration.


Schedule form has the following parameters:

  • Timezone - timezone in which this scheduler event should be processed.
  • Start Date/Time - date/time when this scheduler event should be fired.
  • Repeat - if this scheduler event is one time or it should be repeated.
  • Repeats - repeat rule, can be either Daily or Weekly.
  • Repeat on - applicable for Weekly repeat rule. Specifies weekdays when this scheduler event should be fired.
  • Ends on - date until which this scheduler event should be repeated.

Scheduler Event Types

In Configuration Event type field can be selected existing event type or specified custom one.

Custom Type

Custom type uses default scheduler event configuration form according to message structure.


  • Originator - message originator, can be Single entity (ex. Device, Asset etc.) or Group of entities. If not specified, scheduler event entity itself will be considered as originator.
  • Message type - message type according to the Rule Engine message types. Can be existing message type or custom. If not specified, scheduler event type will be considered as message type.
  • Message body - message body in JSON representation.
  • Metadata - key/value table representing message metadata fields.

Generate Report

Allows to schedule reports generation supported by Reporting feature.



  • Report configuration:
    • Base URL - base URL of ThingsBoard UI that should be accessible by Report Server.
    • Dashboard - dashboard that will be used for report generation.
    • Dashboard state parameter value - used to specify target dashboard state for report generation. Can be set automatically by clicking on right most button of the field and invoking Select dashboard state dialog.
    • Timezone - timezone in which target dashboard will be presented in report.
    • Use dashboard timewindow - if set, timewindow configured in the target dashboard will be used during report generation.
    • Timewindow - specific dashboard timewindow that will be used during report generation.
    • Report name pattern - file name pattern of generated report, can contain date-time pattern in form of %d{date-time pattern}. See SimpleDateFormat documentation for date-time pattern details.
    • Report type - report file type, can be PDF | PNG | JPEG.
    • Use current user credentials - if set, credentials of user created this report configuration will be used to open dashboard UI during report generation.
    • Customer user credentials - target customer user whose credentials will be used to open dashboard UI during report generation.
    • Generate Test Report button is used for testing purposes. It invokes report generation process with provided configuration. Resulting report file will be automatically downloaded if the report generation will be successful.
  • Send email - if set, email message with report file in attachment will be sent.

  • Email configuration:
    • From - from address
    • To - comma separated address list of recipients
    • Cc - comma separated address list
    • Bcc - comma separated address list
    • Subject - mail subject, can contain date-time pattern in form of %d{date-time pattern} according to SimpleDateFormat.
    • Body - mail body, can contain date-time pattern in form of %d{date-time pattern} according to SimpleDateFormat.

Update Attributes

Allows to schedule update of attributes for entity or group of entities.


  • Target - target entity which attributes should be updated, can be Single entity (ex. Device, Asset etc.) or Group of entities.
  • Entity attributes scope - scope of updated attributes. Can be selected if Device entity type is specified in Target. Can be either Server attributes or Shared attributes. For all other entity types Server attributes scope is used.
  • Server / Shared attributes - key/value table representing attributes with values to update.

Send RPC Request to Device

Allows to schedule command (RPC call) to device or group of devices.


  • Target - target device to which command should be sent, can be Single device or Group of devices.
  • Method - RPC call method.
  • Params - RPC call params in JSON representation.

Scheduler Widget

ThingsBoard provides ability to manage scheduler events via Scheduler events or Reports schedule Widgets which is part of Scheduling Widgets Bundle.


Scheduler events widget has same capabilities as Scheduler events page. Additionally it can be customized with predefined forms for custom scheduler event types. This can be achieved by configuring list of Custom event types in Advanced tab of widget configuration.


  • Display name - display name of custom event type.
  • Type name - internal name of custom event.
  • Display originator entity select - whether to allow select originator in scheduler event configuration form.
  • Display message type select - whether to allow select message type in scheduler event configuration form.
  • Display message metadata table - whether to display metadata table in scheduler event configuration form.
  • Configuration HTML template - HTML code used to generate custom event configuration form used to edit event configuration object.

Next steps

  • 入门指南 - 这些指南提供了ThingsBoard主要功能的快速概述。

  • 安装指南 - 了解如何在各种操作系统上安装ThingsBoard。

  • 设备连接 - 了解如何根据您的连接方式或解决方案连接设备。

  • 数据看板 - 这些指南包含有关如何配置复杂的ThingsBoard仪表板的说明。

  • 数据处理 - 了解如何使用ThingsBoard规则引擎。

  • 数据分析 - 了解如何使用规则引擎执行基本的分析任务。

  • 硬件样品 - 了解如何将各种硬件平台连接到ThingsBoard。

  • 开发指南 - 了解ThingsBoard中的贡献和开发。