MQTT trigger#
Reads messages from MQTT topics.
Attributes#
Path | Type | Description |
---|---|---|
subscriptions | subscription (topic, qos) | An MQTT subscription |
Example#
triggers:
myMqttTrigger:
kind: "mqtt"
url: "10.0.0.3:1883"
attributes:
subscriptions:
- topic: house/living-room/temperature
qos: 0
- topic: weather/humidity
qos: 0
Event#
The mqtt trigger emits an event object with the following attributes:
URL
: The URL of the MQTT brokertopic
: The topic of the messagepath
: The topic of the message (alias fortopic
)body
: The message payloadid
: The message id