Added documentation for the env_var tag in configuration files (#2982)

This commit is contained in:
Corey Pauley 2017-07-24 10:59:54 -05:00 committed by Paulus Schoutsen
parent 80814f25ca
commit de4f34867e

View File

@ -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
```