Publish to MQTT
Sends a message to a topic on an MQTT broker — Mosquitto, Zigbee2MQTT, Tasmota, ESPHome.
An action in the Smart Home group.
Its type is action.mqtt_publish.
Declared ports
Section titled “Declared ports”| Port | Label | Flow | Type |
|---|---|---|---|
in |
in | execution in | — |
out |
out | execution out | — |
topic |
Topic | data in | String |
payload |
Message | data in | String |
state |
state | data out | Object{topic: String, published: Boolean, error: String} |
Configuration
Section titled “Configuration”| Field | Key | Default | Notes |
|---|---|---|---|
| Broker | broker |
— | chosen from MQTT_BROKER |
| Topic | topic |
— | chosen from MQTT_TOPIC |
| Message | payload |
— | — |
| Delivery | quality |
AT_LEAST_ONCE |
AT_LEAST_ONCE, AT_MOST_ONCE, EXACTLY_ONCE |
| Ask the broker to keep this message | retain |
false |
— |