Star

ThingsBoard Documentation

Documentation for using ThingsBoard IoT Platform.

Entity Views

Feature Overview

ThingsBoard(TB) Entity Views (EVs) are available since v2.2. This feature was requested by many TB users. Similar to SQL database views, that limit the degree of exposure of the underlying tables to the outer world, TB EVs limit the degree of exposure of the Device or Asset telemetry and attributes to the Customers. As a Tenant Administrator, you are able to create multiple EVs per Device or Asset and assign them to different Customers.

Supported use cases:

Architecture

Entity View contains the following information:

image

It is important to understand how TB handles telemetry and attribute update and how this changes affect Entity Views.

Timeseries data view

All timeseries data is stored in the database on behalf of target entity. There is no timeseries data duplication to any of the Entity Views. When user opens a dashboard or perform a REST API call on behalf of the entity view id, the following actions take place:

Attributes view

Entity View will automatically copy specified attributes from Target Entity each time you save or update this entity view. For performance reasons target entity attributes are not propagated to entity view on each attribute change. You can enable automatic propagation by configuring “copy to view” rule node in your rule chain and linking “Post attributes” and “Attributes Updated” messages to the new rule node.

image

Future improvements

There are following features in ThingsBoard Road Map:

Next steps