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, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, 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
22.5k 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
}
}