Skip to main content

Trigger an Automation on an MQTT Message

In order to trigger an Automation when a MQTT message is received, you can use the On MQTT Trigger. Add one to your Automation and configure it to get started.

You'll need to select a Connector to use define a Topic that the Twin Engine should subscribe to, in order to know when a message is sent on the defined topic. You can use wildcards such as /devices/+/telemetry.

You can optionally provide a Limit in a HH:MM:SS format to limit how often this can trigger your Automation to run, for example 00:10:00 means that it can only trigger my Automation every 10 minutes.

If you'd like to ensure that the payload sent with the MQTT Message matches a configuration, check the Match Message Payload checkbox and enter the payload it should match in order to trigger your Automation.

When you have configured your MQTT Trigger, click Save and when you Save your Automation, the Twin Engine will subscribe to the configured topic.