Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated template options for mqtt publish action #33854

Merged
merged 3 commits into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions source/_integrations/mqtt.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1099,16 +1099,14 @@ script:

## Publish & Dump actions

The MQTT integration will register the `mqtt.publish` action which allows publishing messages to MQTT topics. There are two ways of specifying your payload. You can either use `payload` to hard-code a payload or use `payload_template` to specify a [template](/docs/configuration/templating/#using-templates-with-the-mqtt-integration) that will be rendered to generate the payload.
The MQTT integration will register the `mqtt.publish` action, which allows publishing messages to MQTT topics.

### Action `mqtt.publish`

| Data attribute | Optional | Description |
| ---------------------- | -------- | ------------------------------------------------------------ |
| `topic` | no | Topic to publish payload to. |
| `topic_template` | no | Template to render as topic to publish payload to. |
| `payload` | yes | Payload to publish. |
| `payload_template` | yes | Template to render as payload value. |
| `payload` | no | Payload to publish. |
| `qos` | yes | Quality of Service to use. (default: 0) |
| `retain` | yes | If message should have the retain flag set. (default: false) |

Expand Down