Skip to content

Commit

Permalink
Add configuration for MQTT user and password in different file. Koenk…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Oct 25, 2019
1 parent 8ea33f3 commit 8b5c6d1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/configuration/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,20 @@ groups: groups.yaml
friendly_name: group_1
retain: true
```
## Specifying MQTT user and password in a different file
To specify the MQTT user and password in a different file, e.g `secret.yaml`, use the following configuration.

**configuration.yaml**
```yaml
mqtt:
# IMPORTANT: Don't forget the quotes!
user: '!secret user'
password: '!secret password'
```

**secret.yaml**
```yaml
user: mqtt_user
password: mqtt_password
```

0 comments on commit 8b5c6d1

Please sign in to comment.