From 9dec850d6071f01f4163899f95a60ab2cc7a0c54 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 19 Oct 2018 21:32:32 +0200 Subject: [PATCH] Not longer use the term 'API password' --- source/_docs/mqtt/testing.markdown | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/source/_docs/mqtt/testing.markdown b/source/_docs/mqtt/testing.markdown index e6c87bdbfcd..3957b8e8693 100644 --- a/source/_docs/mqtt/testing.markdown +++ b/source/_docs/mqtt/testing.markdown @@ -16,16 +16,10 @@ The `mosquitto` broker package ships commandline tools (often as `*-clients` pac $ mosquitto_pub -h 127.0.0.1 -t home-assistant/switch/1/on -m "Switch is ON" ``` -If you are using the embedded MQTT broker, the command looks a little different because you need to add the MQTT protocol version. +If you are using the embedded MQTT broker, the command looks a little different because you need to add the MQTT protocol version and your [broker credentials](/docs/mqtt/broker#embedded-broker). ```bash -$ mosquitto_pub -V mqttv311 -t "hello" -m world -``` - -or if you are using a API password: - -```bash -$ mosquitto_pub -V mqttv311 -u homeassistant -P -t "hello" -m world +$ mosquitto_pub -V mqttv311 -u homeassistant -P -t "hello" -m world ``` Another way to send MQTT messages by hand is to use the "Developer Tools" in the Frontend. Choose "Call Service" and then `mqtt/mqtt_send` under "Available Services". Enter something similar to the example below into the "Service Data" field. @@ -52,8 +46,6 @@ $ mosquitto_sub -h 127.0.0.1 -v -t "home-assistant/#" For the embedded MQTT broker the command looks like: ```bash -$ mosquitto_sub -v -V mqttv311 -t "#" +$ mosquitto_sub -v -V mqttv311 -u homeassistant -P -t "#" ``` -Add the username `homeassistant` and your API password if needed. -