ThingsBoard PE Feature
Only ThingsBoard Professional Edition supports Device & Asset Groups feature.
See Get ThingsBoard PE 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:
Getting started guides - These guides provide quick overview of main ThingsBoard features. Designed to be completed in 15-30 minutes.
Installation guides - Learn how to setup ThingsBoard on various available operating systems.
Connect your device - Learn how to connect devices based on your connectivity technology or solution.
Data visualization - These guides contain instructions how to configure complex ThingsBoard dashboards.
IoT Data analytics - Learn how to use rule engine to perform basic analytics tasks.
Hardware samples - Learn how to connect various hardware platforms to ThingsBoard.
Advanced features - Learn about advanced ThingsBoard features.
Contribution and Development - Learn about contribution and development in ThingsBoard.