Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions source/_docs/configuration/yaml.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,20 @@ sensor:
state_topic: sensor2/topic
```

### {% linkable_title Using Environment Variables %}

You can include values from your system's environment variables with `!env_var`.

```yaml
http:
api_password: !env_var PASSWORD
```

#### Default Value

If an environment variable is not set, you can fallback to a default value.

```yaml
http:
api_password: !env_var PASSWORD default_password
```