Stand with Ukraine flag
Try it now Pricing
Edge
Documentation > Key concepts > Entities and Relations
Getting Started
Devices Library Installation Architecture API FAQ
On this page

Entities and Relations on Edge

Entities Overview

In ThingsBoard, an entity is a core component that represents a physical object or a concept within the platform. You can view the list of ThingsBoard entities here.

ThingsBoard Edge supports entities that are relevant for edge computing.

Available Edge Entities

  • Devices: Physical IoT devices (sensors, actuators, controllers).
  • Assets: A real world object that helps group and manage the IoT ecosystem (e.g., machines, buildings, factories).
  • Customers: Organizations or users assigned to specific devices/assets.
  • Users (for PE): People who manage and interact with edge resources.
  • Entity Views: Predefined views of selected entity data.
  • Alarms: Alerts for anomalies or predefined conditions.
  • Dashboards: Visualizations of telemetry and device data.
  • Rule Chains: Local data processing and automation logic.

Most entities can be created on the Edge, except for Customers, Users, and Rule Chain entities. These entities can be created on the Server and then assigned to the Edge instance.

The Devices and Assets entities have the configuration templates as Device Profiles and Asset Profiles, respectively.

Entity Key Features

Attributes

Attributes are the structured data that can be associated with the entities (e.g., device model, location, token). They are stored in the local database and can be used for visualization, analysis, logic configuration, and integration with other services.

For a comprehensive understanding of the ThingsBoard attributes, please refer to the Working with IoT Attributes documentation. You can also refer to the Edge Attributes article to review the attributes specific to Edge.

Telemetry

Telemetry refers to time-series data collected from IoT devices and processed by the Rule Chain.

Telemetry is stored as key-value pairs:

  • Key: A telemetry field (e.g., temperature, humidity, voltage).
  • Value: A numerical or string value (e.g., 25.4°C, 45%, “ON”).

Example:

1
2
3
4
5
{
  "temperature": 25.4,
  "humidity": 45,
  "status": "ON"
}

You can learn more about working with telemetry data here.

By default, ThingsBoard Edge synchronizes telemetry data with the ThingsBoard Cloud. During an internet outage, telemetry is stored locally and sent to the Cloud once the connection is restored.

Relations

The relation feature defines connections between entities and helps to model the real-world hierarchy between physical objects.

Several parameters define the relation hierarchy between the entities:

  • Direction: Describes how the entities are associated with each other.
    • “Outbound relation - From”: Indicates that the relation originates from the entity (the entity is a source).
    • “Inbound relation - To”: Indicates that the relation points to the entity (the entity is a recipient).
  • Relation type: Describes the nature of the connection between the entities.
    • “Contains”: Indicates that the entity is a part of another entity (e.g., Device A is the part of Asset A).
    • “Manages”: Indicates that the entity is responsible for another entity (e.g., Asset A manages Device A).

The entity relations diagram can appear as follows: image

Next steps