Realix provides two MQTT integration directions. An MQTT-only project lets an external controller operate Realix objects and hardware through erc/cmd/.... An MQTT Device in a normal game lets Realix game logic operate external channels through erc/channel/cmd/.... Do not mix these topic families. The MQTT Device workflow below describes the 3.5.2 implementation.

To create an MQTT-only project, enable Preferences → Advanced Features → MQTT projects in the Designer. Return to the project overview and select New Blank Project. In the project-type dialog, choose MQTT Unlimited for all device types, effects and controls, or MQTT Limited for SBUS Boxes and Pods. The Realix puzzle flow is then disabled and hidden. You can create devices and objects just like in a regular project, but they can now be controlled via MQTT. To start MQTT communication, load the configuration and start the logic, there is no puzzle flow involved.

Topic conventions

Commands: erc/cmd/<objectType>/<objectId>/<command>
State:    erc/state/<objectType>/<objectId>

Special cases:

System state: erc/state/system
Device pods:  erc/state/devicenode/<deviceId>.<podId>

Payload examples below are valid JSON. Replace the topic placeholders with your actual object IDs; send only the JSON from the payload block, without comments or a trailing comma. For a command with no attributes, send {} or an empty payload. Durations are in milliseconds; media positions are in seconds. Intensity, temperature, volume and ducking level are percentages.

System and Device Topics

System State

The system topic is send when the ERC Core connects with MQTT. It has a retained state and when the ERC Core stops or suddenly disconnect, the state will go to offline. This way you can always determine if the ERC Core is online. License information is passed which can be used to inform your system a renew has to take place. Note: When you only use the SBUS hardware, the license is free of charge.

erc/state/system
{
  "online": true,
  "license": {
    "licenseActive": true,
    "expiryTime": "2026-01-31T23:59:59Z",
    "warnForExpiration": false,
    "requestedUserAction": "",
    "currentError": "NoError"
  }
}

Device State

erc/state/device/<deviceId>
{
  "value": "Connected"
}

Pod State

erc/state/devicenode/<deviceId>.<podId>
{
  "value": "Connected"
}

Request State

When request state is sent, the ERC responds by sending the system status and all device and pod states.

erc/cmd/system/system/requestState

Object State Topics

RFID Reader State

RFID tag unique serial identifier or assigned symbolic name.

erc/state/rfidreader/<readerId>
{
  "value": "Green Object"
}

Input State

In most cases, 0 represents inactive and 1 represents active; however, additional integer values may be supported.

erc/state/input/<inputId>
{
  "value": 0
}

Sensor State

Provides an integer state value calculated from the analog input using thresholds defined in the Designer.

erc/state/sensor/<sensorId>
{
  "value": 0
}

Object Command Topics

Output commands

SetActive
erc/cmd/output/<objectId>/setActive
SetInactive
erc/cmd/output/<objectId>/setInactive
SetValue
erc/cmd/output/<objectId>/setValue
{
  "value": 1
}
Pulse
erc/cmd/output/<objectId>/pulse
{
  "duration": 100
}
PulseTrain
erc/cmd/output/<objectId>/pulseTrain
{
  "duration": 100,
  "duration2": 200
}

Actuator Commands

Current limitation of the incoming erc/cmd route: the 3.5.2 parser does not accept the percentage attribute required for actuator percentage commands. An unknown payload attribute causes the message to be rejected.

SetPercentage

The command exists in Core, but erc/cmd/actuator/…/setPercentage cannot currently supply its percentage through this MQTT parser. There is no verified replacement payload for this route.

TransitionPercentage

The transition command is TransitionPercentage. This MQTT route cannot supply its required percentage value. In a normal Realix game project, use an Effect Sequence or puzzle script for actuator control. This alternative is not available in MQTT Limited. The separate outgoing MQTT Device route defines a percentage payload.

Light Commands

SetLight
erc/cmd/light/<objectId>/setLight

Brightness only

{
  "intensity": 100
}

Temperature only

{
  "temperature": 50
}

Color only

{
  "color": "#ff8800"
}

Temperature + Brightness

{
  "temperature": 40,
  "intensity": 80
}

Color + Brightness

{
  "color": "#3366ff",
  "intensity": 60
}
TransitionLight
erc/cmd/light/<objectId>/transitionLight

Brightness fade

{
  "intensity": 100,
  "duration": 1000
}

Temperature fade

{
  "temperature": 70,
  "duration": 1500
}

Color fade

{
  "color": "#ff0000",
  "duration": 800
}

Color + Brightness fade

{
  "color": "#00ffcc",
  "intensity": 75,
  "duration": 1200
}

AudioPlayer Commands

PlayMedia
erc/cmd/audioplayer/<objectId>/playMedia
{
  "mediaFile": "music.mp3",
  "position": 0,
  "loop": false,
  "volume": 80
}
StopMedia
erc/cmd/audioplayer/<objectId>/stopMedia
{
  "volume": 0,
  "duration": 500
}
FadeVolume
erc/cmd/audioplayer/<objectId>/fadeVolume
{
  "volume": 40,
  "duration": 1000
}
SetDuckingLevel
erc/cmd/audioplayer/<objectId>/setDuckingLevel
{
  "level": 60
}

VideoPlayer Commands

PlayMedia

erc/cmd/videoplayer/<objectId>/playMedia
{
  "mediaFile": "intro.mp4",
  "position": 0,
  "loop": false,
  "volume": 100
}

StopMedia

erc/cmd/videoplayer/<objectId>/stopMedia
{
  "volume": 0,
  "duration": 500
}

FadeVolume

erc/cmd/videoplayer/<objectId>/fadeVolume
{
  "volume": 40,
  "duration": 1000
}

ImageViewer Commands

ShowImage

erc/cmd/imageviewer/<objectId>/showImage
{
  "mediaFile": "image.png"
}

Hide

erc/cmd/imageviewer/<objectId>/hide

TextViewer Commands

ShowText

erc/cmd/textviewer/<objectId>/showText
{
  "text": "Welcome to the control room"
}

Hide

erc/cmd/textviewer/<objectId>/hide

CustomViewer Commands

ShowView

erc/cmd/customviewer/<objectId>/showView

Hide

erc/cmd/customviewer/<objectId>/hide

Lock Commands

Lock

erc/cmd/lock/task/lock
{
  "taskName": "Main Door"
}

Unlock

erc/cmd/lock/task/unlock
{
  "taskName": "Main Door"
}

Switch Commands

On

erc/cmd/switch/task/on
{
  "taskName": "Main Power"
}

Off

erc/cmd/switch/task/off
{
  "taskName": "Main Power"
}

Operation Commands (Trigger Topic)

The interface calls these controls Operations. The incoming topic still uses trigger as its object type, with launchoperation or canceloperation as the function. taskName selects the configured operation by name; the topic segment task is not its internal component ID. repeatCount is the repetition count (0 runs once; the number specifies additional repeats) and duration is the interval in milliseconds.

LaunchOperation

erc/cmd/trigger/task/launchoperation
{
  "taskName": "alarm_flash",
  "repeatCount": 5,
  "duration": 1000
}

CancelOperation

erc/cmd/trigger/task/canceloperation
{
  "taskName": "alarm_flash"
}

MQTT Device in a Normal Game

Use this direction when Realix runs the puzzle flow and the external system provides device channels. It is separate from the MQTT-only project described above.

  1. Enable Preferences → Advanced Features → MQTT connector.
  2. Open Room Setup → Devices and add an MQTT Device from the device types.
  3. Set MQTT broker host and Port. The initial values are localhost and 1883; localhost refers to the machine running Core. This connection uses plain MQTT/TCP; the current device settings do not expose TLS or broker credentials.
  4. Add the required channels and assign matching Realix objects. Use the assigned object's ID in the external topic mapping.
  5. Load the setup and have the external system publish its channel values and respond to commands.

The device protocol receives Input, Output, Sensor, Actuator, Text Input and smart-object state values. Inputs and Outputs accept integers or booleans; Sensor state is an integer; Actuator state is a percentage from 0–100; text/smart-object state is represented as text. Use the exact type name generated for the configured channel. Light and RFID state conversion are not supplied by this device parser.

DirectionTopicPurpose
Realix → external systemerc/channel/cmd/<type>/<objectId>/<function>Control the assigned external channel.
External system → Realixerc/channel/state/<type>/<objectId>Report its state with a JSON value.
Realix → external systemerc/channel/cmd/system/system/requestStateRequest current values; payload {}. Reply on the individual channel state topics.

For an Input object with ID DoorClosed, the external system reports:

erc/channel/state/input/DoorClosed
{
  "value": 1
}

For an Output object with ID Indicator, Realix sends:

erc/channel/cmd/output/Indicator/setValue
{
  "value": 1
}

The external implementation must apply the requested output and publish feedback on erc/channel/state/output/Indicator. Output commands also include pulse and pulseTrain. Durations use milliseconds.

For an Actuator object with ID Vent, the outgoing device route can send:

erc/channel/cmd/actuator/Vent/transitionPercentage
{
  "percentage": 75,
  "duration": 1000
}

The external system interprets the percentage and duration and reports its position on erc/channel/state/actuator/Vent as {"value":75}. This outgoing channel command does not pass through the incoming erc/cmd parser with the actuator limitation above.

Messages for unknown or unassigned object/type combinations are ignored. A broker connection alone does not confirm that the external device implements the requested behaviour; check both commands and feedback before using the integration in a room.