diff --git a/source/components/mqtt.markdown b/source/components/mqtt.markdown index b2f2310674b..50a38e2e82a 100644 --- a/source/components/mqtt.markdown +++ b/source/components/mqtt.markdown @@ -29,7 +29,8 @@ mqtt: topic: home-assistant keepalive: 60 qos: 0 - retain: 0 + username: your_username + password: your_secret_password ``` For debugging purposes `mosquitto` is shipping commandline tools to send and recieve MQTT messages. For sending test messages to a broker running on localhost: @@ -42,7 +43,7 @@ Another way to send MQTT messages by hand is to use the "Developer Tools" in the ```json { - "subtopic":"switch/1/on", + "topic":"home-assistant/switch/1/on", "payload":"Switch is ON" } ```