Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read and how they find the site, so we can improve it (Google Analytics).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Entity Type Switch

Use this node to fan out a rule chain that processes messages from multiple entity types. Unlike the Entity Type Filter (which gives True/False), this node routes directly via a connection whose label matches the entity type’s human-readable name — so you can wire separate downstream paths for Device, Asset, Customer, and so on without writing any script.

This node requires no configuration.

  1. Determine the incoming message’s originator entity type.
  2. Look up the type’s normal (human-readable) name.
  3. Route the message via the connection whose label exactly matches the normal name.
Entity type Connection label
DEVICE Device
ASSET Asset
ENTITY_VIEW Entity View
CUSTOMER Customer
TENANT Tenant
USER User
DASHBOARD Dashboard
RULE_CHAIN Rule Chain
RULE_NODE Rule Node
EDGE Edge
AI_MODEL AI model
Connection Condition
(normal name of entity type) Always — the message is routed via the connection matching the entity type’s normal name.
Failure An unexpected error occurred during processing.

Example 1 — Originator is DEVICE → Device

Section titled “Example 1 — Originator is DEVICE → Device”

The originator entity type is DEVICE. Its normal name is Device, so the message is routed via Device.


Example 2 — Originator is ENTITY_VIEW → Entity View

Section titled “Example 2 — Originator is ENTITY_VIEW → Entity View”

The originator entity type is ENTITY_VIEW. Its normal name is Entity View, so the message is routed via Entity View.


Example 3 — Originator is AI_MODEL → AI model

Section titled “Example 3 — Originator is AI_MODEL → AI model”

The originator entity type is AI_MODEL. Its normal name is AI model, so the message is routed via AI model.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "EmptyNodeConfiguration",
"type": "object",
"properties": {},
"additionalProperties": false
}