diff --git a/source/_integrations/mqtt.markdown b/source/_integrations/mqtt.markdown index e56b6c42a5d..9542dcaa3d4 100644 --- a/source/_integrations/mqtt.markdown +++ b/source/_integrations/mqtt.markdown @@ -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**.
+

+ 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`. + + +

### 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 ```

- + Screenshot showing how to publish a message to an MQTT topic

The same will work for automations.

- + Screenshot showing how to publish a message to an MQTT topic for automations

- ### 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) | -

+ +

+

+ 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. + +

+
+ ```yaml topic: homeassistant/light/1/command