Improve readability

This commit is contained in:
Fabian Affolter 2016-10-11 14:31:20 +02:00
parent 53330f3340
commit a89456fb43
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -58,10 +58,6 @@ zwave:
config_path: /usr/local/share/python-openzwave/config
polling_interval: 10000
#zigbee:
# device: /dev/ttyUSB1
# baud: 115200
mqtt:
broker: 127.0.0.1
```
@ -115,10 +111,7 @@ This (large) sensor configuration gives us another example:
```yaml
### sensors.yaml
##############################################################
### METEOBRIDGE ####
##############################################################
### METEOBRIDGE #############################################
- platform: tcp
name: 'Outdoor Temp (Meteobridge)'
host: 192.168.2.82
@ -134,27 +127,14 @@ This (large) sensor configuration gives us another example:
payload: "Content-type: text/xml; charset=UTF-8\n\n"
value_template: "{% raw %}{{value.split (' ')[3]}}{% endraw %}"
unit: Percent
- platform: tcp
name: 'Outdoor Dewpoint (Meteobridge)'
host: 192.168.2.82
port: 5556
timeout: 6
payload: "Content-type: text/xml; charset=UTF-8\n\n"
value_template: "{% raw %}{{value.split (' ')[4] }}{% endraw %}"
unit: C
###################################
#### STEAM FRIENDS ####
##################################
#### STEAM FRIENDS ##################################
- platform: steam_online
api_key: [not telling]
accounts:
- 76561198012067051
##################################
#### TIME/DATE ####
##################################
#### TIME/DATE ##################################
- platform: time_date
display_options:
- 'time'
@ -165,12 +145,6 @@ This (large) sensor configuration gives us another example:
- platform: worldclock
time_zone: America/New_York
name: 'Ann Arbor'
- platform: worldclock
time_zone: Europe/Vienna
name: 'Innsbruck'
- platform: worldclock
time_zone: America/New_York
name: 'Ann Arbor'
```
You'll notice that this example includes a secondary parameter section (under the steam section) as well as a better example of the way comments can be used to break down files into sections.
@ -196,7 +170,6 @@ We offer four advanced options to include whole directories at once.
- `!include_dir_merge_list` will return the content of a directory as a list by merging all files (which should contain a list) into 1 big list.
- `!include_dir_merge_named` will return the content of a directory as a dictionary by loading each file and merging it into 1 big dictionary.
#### {% linkable_title Example: `!include_dir_list` %}
`configuration.yaml`