Skip to content

Commit

Permalink
readme: move mqtt auth section
Browse files Browse the repository at this point in the history
  • Loading branch information
fphammerle committed Jul 25, 2021
1 parent 5dc3fc3 commit 717ab31
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Expand Up @@ -62,6 +62,17 @@ and provide its path via the `--device-password-file` option:
$ switchbot-mqtt --device-password-file /some/where/switchbot-passwords.json …
```

### MQTT Authentication

```sh
switchbot-mqtt --mqtt-username me --mqtt-password secret …
# or
switchbot-mqtt --mqtt-username me --mqtt-password-file /var/lib/secrets/mqtt/password …
```

⚠️ `--mqtt-password` leaks the password to other users on the same machine,
if `/proc` is mounted with `hidepid=0` (default).

## Home Assistant 🏡

### Rationale
Expand Down Expand Up @@ -140,17 +151,6 @@ services:
restart: unless-stopped
```

## MQTT Authentication

```sh
switchbot-mqtt --mqtt-username me --mqtt-password secret …
# or
switchbot-mqtt --mqtt-username me --mqtt-password-file /var/lib/secrets/mqtt/password …
```

⚠️ `--mqtt-password` leaks the password to other users on the same machine,
if `/proc` is mounted with `hidepid=0` (default).

## Alternatives

* https://github.com/binsentsu/switchbot-ctrl
Expand Down

0 comments on commit 717ab31

Please sign in to comment.