Clarity update (#6657)

As somebody pointed out on the forum, using different examples adds confusion. Updated both styles to use the same contents, so it's clearer what's going on.
This commit is contained in:
DubhAd 2018-10-10 11:04:15 +01:00 committed by Franck Nijhof
parent 8d92afe7f6
commit 3bf5d2045f

View File

@ -33,9 +33,12 @@ sensor:
name: "MQTT Sensor 2"
- platform: rest
resource: http://IP_ADDRESS/ENDPOINT
name: "Weather"
switch:
- platform: vera
- platform: tplink
host: IP_ADDRESS
```
## {% linkable_title Style 2: List each device separately %}
@ -43,19 +46,27 @@ switch:
You need to append numbers or strings to differentiate the entries, as in the example below. The appended number or string must be unique.
```yaml
media_player livingroom:
platform: mpd
server: IP_ADDRESS
sensor bedroom:
platform: mqtt
state_topic: "home/bedroom/temperature"
name: "MQTT Sensor 1"
media_player kitchen:
platform: plex
sensor kitchen:
platform: mqtt
state_topic: "home/kitchen/temperature"
name: "MQTT Sensor 2"
camera 1:
platform: generic
sensor weather:
platform: rest
resource: http://IP_ADDRESS/ENDPOINT
name: "Weather"
camera 2:
platform: mjpeg
```
switch 1:
platform: vera
switch 2:
platform: tplink
host: IP_ADDRESS```
## {% linkable_title Grouping devices %}
@ -74,4 +85,3 @@ group:
```
For more details please check the [Group](/components/group/) page.