MQTT: fix markdown (#32495)

This commit is contained in:
c0ffeeca7 2024-04-28 15:22:08 +02:00 committed by GitHub
parent 782a2bc294
commit 5881b892fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,6 @@ MQTT (aka MQ Telemetry Transport) is a machine-to-machine or "Internet of Things
{% enddetails %}
Your first step to get MQTT and Home Assistant working is to choose a broker.
## Setting up a broker
@ -139,7 +138,12 @@ Add the MQTT integration, then provide your broker's hostname (or IP address) an
3. Select **Configure**, then **Re-configure MQTT**.
<div class='note'>
<p>
If you experience an error message like `Failed to connect due to exception: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed`, then turn on `Advanced options` and set [Broker certificate validation](/integrations/mqtt/#broker-certificate-validation) to `Auto`.
</p>
</div>
### Advanced broker configuration
@ -322,7 +326,6 @@ support_url:
description: Support URL of the application that supplies the discovered MQTT item.
{% endconfiguration_basic %}
{% details "Supported abbreviations" %}
```txt
@ -594,7 +597,9 @@ support_url:
'sa': 'suggested_area',
'sn': 'serial_number',
```
{% enddetails %}
{% details "Supported abbreviations for origin info" %}
```txt
@ -602,6 +607,7 @@ support_url:
'sw': 'sw_version',
'url': 'support_url',
```
{% enddetails %}
### How to use discovery messages
@ -1049,16 +1055,15 @@ The MQTT notification support is different than for the other [notification](/in
```
<p class='img'>
<img src='/images/screenshots/mqtt-notify.png' />
<img src='/images/screenshots/mqtt-notify.png' alt='Screenshot showing how to publish a message to an MQTT topic'/>
</p>
The same will work for automations.
<p class='img'>
<img src='/images/screenshots/mqtt-notify-action.png' />
<img src='/images/screenshots/mqtt-notify-action.png' alt='Screenshot showing how to publish a message to an MQTT topic for automations' />
</p>
### Examples
#### REST API
@ -1119,9 +1124,16 @@ The MQTT integration will register the service `mqtt.publish` which allows publi
| `qos` | yes | Quality of Service to use. (default: 0) |
| `retain` | yes | If message should have the retain flag set. (default: false) |
<p class='note'>
<div class='note'>
<p>
You must include either `topic` or `topic_template`, but not both. If providing a payload, you need to include either `payload` or `payload_template`, but not both.
</p>
</div>
```yaml
topic: homeassistant/light/1/command