Skip to content
Stand with Ukraine flag

Message Type Switch

Use this node to fan out processing based on message type without writing any code. Each standard message type maps to a human-readable connection label (e.g., POST_TELEMETRY_REQUESTPost telemetry), so you can wire different downstream paths for telemetry, attribute updates, RPC calls, lifecycle events, and more. Custom or unknown types are routed via Other.

See the message types reference for the full list of built-in types.

This node requires no configuration.

  1. Determine the incoming message type and look up its rule node connection label.
  2. Route the message via the connection whose label exactly matches the rule node connection label.
  3. If the message type is custom or has no predefined label, route via Other.
ConnectionCondition
(message type label)The message type maps to a predefined connection label (see table below).
OtherThe message type is custom or has no predefined label.
FailureAn unexpected error occurred during processing.
Message typeConnection label
POST_ATTRIBUTES_REQUESTPost attributes
POST_TELEMETRY_REQUESTPost telemetry
TO_SERVER_RPC_REQUESTRPC Request from Device
ACTIVITY_EVENTActivity Event
INACTIVITY_EVENTInactivity Event
CONNECT_EVENTConnect Event
DISCONNECT_EVENTDisconnect Event
ENTITY_CREATEDEntity Created
ENTITY_UPDATEDEntity Updated
ENTITY_DELETEDEntity Deleted
ENTITY_ASSIGNEDEntity Assigned
ENTITY_UNASSIGNEDEntity Unassigned
ATTRIBUTES_UPDATEDAttributes Updated
ATTRIBUTES_DELETEDAttributes Deleted
ALARM_ACKAlarm Acknowledged
ALARM_CLEARAlarm Cleared
ALARM_ASSIGNEDAlarm Assigned
ALARM_UNASSIGNEDAlarm Unassigned
COMMENT_CREATEDComment Created
COMMENT_UPDATEDComment Updated
RPC_CALL_FROM_SERVER_TO_DEVICERPC Request to Device
ENTITY_ASSIGNED_FROM_TENANTEntity Assigned From Tenant
ENTITY_ASSIGNED_TO_TENANTEntity Assigned To Tenant
TIMESERIES_UPDATEDTimeseries Updated
TIMESERIES_DELETEDTimeseries Deleted
RPC_QUEUEDRPC Queued
RPC_SENTRPC Sent
RPC_DELIVEREDRPC Delivered
RPC_SUCCESSFULRPC Successful
RPC_TIMEOUTRPC Timeout
RPC_EXPIREDRPC Expired
RPC_FAILEDRPC Failed
RPC_DELETEDRPC Deleted
RELATIONS_DELETEDAll Relations Deleted
RELATION_ADD_OR_UPDATERelation Added or Updated
RELATION_DELETEDRelation Deleted
REST_API_REQUESTREST API request
OWNER_CHANGEDOwner changed
ADDED_TO_ENTITY_GROUPAdded to Group
REMOVED_FROM_ENTITY_GROUPRemoved from Group
generateReportGenerate Report

Example 1 — POST_TELEMETRY_REQUESTPost telemetry

Section titled “Example 1 — POST_TELEMETRY_REQUEST → Post telemetry”

A telemetry message arrives. The node looks up the connection label for POST_TELEMETRY_REQUEST and routes via Post telemetry.


A message with type CUSTOM_MESSAGE_TYPE arrives. No predefined label exists, so the node routes via Other.

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