mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 12:56:54 +00:00
Minor updates
This commit is contained in:
parent
2c303260d0
commit
c2d52482f4
@ -54,7 +54,7 @@ Home Assistant contains an embedded MQTT broker. If no broker configuration is g
|
|||||||
| Port | 1883
|
| Port | 1883
|
||||||
| Protocol | 3.1.1
|
| Protocol | 3.1.1
|
||||||
| User | homeassistant
|
| User | homeassistant
|
||||||
| Password | Your API password
|
| Password | Your API (password)[/components/http/]
|
||||||
| Websocket port | 8080
|
| Websocket port | 8080
|
||||||
|
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
@ -179,7 +179,7 @@ $ mosquitto_pub -h 127.0.0.1 -t home-assistant/switch/1/on -m "Switch is ON"
|
|||||||
If you are using the embeeded MQTT broker, the command looks a little different because you need to add the MQTT protocol version.
|
If you are using the embeeded MQTT broker, the command looks a little different because you need to add the MQTT protocol version.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mosquitto_pub -V mqttv311 -t hello -m world
|
$ mosquitto_pub -V mqttv311 -t "hello" -m world
|
||||||
```
|
```
|
||||||
|
|
||||||
or if you are using a API password.
|
or if you are using a API password.
|
||||||
@ -212,7 +212,7 @@ $ mosquitto_sub -h 127.0.0.1 -v -t "home-assistant/#"
|
|||||||
For the embeeded MQTT broker the command looks like the sample below.
|
For the embeeded MQTT broker the command looks like the sample below.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mosquitto_sub -V mqttv311 -t # -v
|
$ mosquitto_sub -v -V mqttv311 -t "#"
|
||||||
```
|
```
|
||||||
|
|
||||||
Add the username `homeassistant` and your API password if needed.
|
Add the username `homeassistant` and your API password if needed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user