ThingsBoard PE Feature
Only ThingsBoard Professional Edition supports Device & Asset Groups feature.
See ThingsBoard PE Installation Options to install ThingsBoard PE.
This tutorial will show how to dynamically add & remove device from the device group based on incoming data from device.
Let’s assume your device is reporting temperature readings to ThingsBoard and you would like to visualize devices that have reported temperature > 50°C.
In this tutorial we will configure ThingsBoard Rule Engine to automatically update “High temperature devices” group members based on incoming temperature readings from the device. You can use this tutorial as a basis for much more complex filtering.
We assume you have completed the following guides and reviewed the articles listed below:
We will operate with Temperature sensor device that has name “Sensor A” and type “DHT22”.
In this section, we explain the purpose of each node in this tutorial.
Node A: Rule Chain node
Node B: Script filter node
Node C: Script filter node
Node D: Add to Group node
Node E: Remove from Group node
Download and import attached json file as a new “Add device to group” rule chain. Please note that all nodes have debug enabled. This affects performance. Create Node A as shown on the image above in the root rule chain to forward telemetry to new rule chain.
Publish temperature readings on behalf of the new device and observe new group automatically created:
入门指南 - 这些指南提供了ThingsBoard主要功能的快速概述。
安装指南 - 了解如何在各种操作系统上安装ThingsBoard。
设备连接 - 了解如何根据您的连接方式或解决方案连接设备。
数据看板 - 这些指南包含有关如何配置复杂的ThingsBoard仪表板的说明。
数据分析 - 了解如何使用规则引擎执行基本的分析任务。
硬件样品 - 了解如何将各种硬件平台连接到ThingsBoard。
高级功能 - 了解高级ThingsBoard功能。
开发指南 - 了解ThingsBoard中的贡献和开发。