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" name: "MQTT Sensor 2"
- platform: rest - platform: rest
resource: http://IP_ADDRESS/ENDPOINT resource: http://IP_ADDRESS/ENDPOINT
name: "Weather"
switch: switch:
- platform: vera - platform: vera
- platform: tplink
host: IP_ADDRESS
``` ```
## {% linkable_title Style 2: List each device separately %} ## {% 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. 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 ```yaml
media_player livingroom: sensor bedroom:
platform: mpd platform: mqtt
server: IP_ADDRESS state_topic: "home/bedroom/temperature"
name: "MQTT Sensor 1"
media_player kitchen: sensor kitchen:
platform: plex platform: mqtt
state_topic: "home/kitchen/temperature"
name: "MQTT Sensor 2"
camera 1: sensor weather:
platform: generic platform: rest
resource: http://IP_ADDRESS/ENDPOINT
name: "Weather"
camera 2: switch 1:
platform: mjpeg platform: vera
```
switch 2:
platform: tplink
host: IP_ADDRESS```
## {% linkable_title Grouping devices %} ## {% linkable_title Grouping devices %}
@ -74,4 +85,3 @@ group:
``` ```
For more details please check the [Group](/components/group/) page. For more details please check the [Group](/components/group/) page.