Skip to content
English - United States
  • There are no suggestions because the search field is empty.

Trigger by MQTT Topic

This article explains how the \"Trigger by MQTT Topic\" trigger works in TagoIO, describes broker availability restrictions, and details the two trigger categories—Single device and Multiple devices—used to watch incoming MQTT data.

The trigger type "Trigger by Variable" allows you to execute an Action when data is sent to an MQTT topic.

TagoIO provides its own MQTT broker that pushes data to clients when new messages are published to the topics they are subscribed to. To learn more about the MQTT infrastructure used by TagoIO, see MQTT.

:::info

The TagoIO MQTT Broker is available exclusively for Starter and Scale accounts in the US database region. Free accounts and accounts hosted in the European database region may use third-party MQTT services with TagoIO via the MQTT Relay feature.

:::

Trigger categories

There are 2 categories for this trigger type:

1. Single device\ Allows you to watch a specific device from your device list. Any data sent by that device will be tested against your topics to determine whether this action should be triggered.

Single-device selection UI

2. Multiple devices\ Allows you to watch multiple devices. Any data sent by those devices will be tested against your topics to determine whether the action should be triggered. For this type, you must supply the tag keys and tag values of the devices you want to watch.

Multiple-devices tag selection UI

Trigger Conditions

After setting up the device, you should set a condition for your action to be executed. To do so, you must head over to the Trigger section.

Image 4

For each row, you need to set the topic that will be listened to. You may use MQTT wildcards for the topic if you prefer.

You can set multiple conditions in an action; if at least one of them results in a match, the action will be executed.

:::info

Note that setting up multiple conditions will execute the action only once if any of the conditions are matched. This means that if you send two variables that would trigger the action at the same time, it will only trigger one action.

:::