mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 12:26:50 +00:00
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:
parent
8d92afe7f6
commit
3bf5d2045f
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user