Skip to content

Cookie preferences

We use cookies for our own analytics and to see how our campaigns perform. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details.

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 (Google Ads).

© 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

Message Type Filter

The simplest way to split rule chain processing by message type. Place it right after the chain’s input node to route telemetry, attribute updates, RPC requests, and other message types to separate processing branches — without writing any script.

See Message Types for the complete list of built-in types.


Field Required Description
Select message types Yes A set of message types to check against; at least one must be specified. The message is routed True if its type is in this set.

  1. Determine the incoming message type.
  2. Check whether the type is in the configured set.
    • If it is, route the message to downstream nodes via True.
    • If it is not, route the message to downstream nodes via False.

Connection Condition
True Incoming message type matches any of the configured types
False Incoming message type does not match any of the configured types
Failure Unexpected error during processing

Example 1 — Message type matches → True

Section titled “Example 1 — Message type matches → True”

Incoming message: type is POST_TELEMETRY_REQUEST.

Node configuration:

{
"messageTypes": [
"POST_TELEMETRY_REQUEST",
"POST_ATTRIBUTES_REQUEST"
]
}

Result: routed via True — the message type is in the configured set.


Example 2 — Message type does not match → False

Section titled “Example 2 — Message type does not match → False”

Incoming message: type is POST_TELEMETRY_REQUEST.

Node configuration:

{
"messageTypes": [
"POST_ATTRIBUTES_REQUEST",
"TO_SERVER_RPC_REQUEST"
]
}

Result: routed via False — the message type is not in the configured set.


{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "TbMsgTypeFilterNodeConfiguration",
"type": "object",
"required": ["messageTypes"],
"additionalProperties": false,
"properties": {
"messageTypes": {
"description": "Non-empty set of message types to check against.",
"type": "array",
"items": { "type": "string" },
"uniqueItems": true,
"minItems": 1
}
}