mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
Make configuration.yaml more generic (#7607)
Example configuration should not include optional configuration. To make the names configuration clearer, add a second example.
This commit is contained in:
parent
3fd858367e
commit
d4d09d9c63
@ -66,8 +66,6 @@ To enable One wire sensors in your installation, add the following to your `conf
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
- platform: onewire
|
- platform: onewire
|
||||||
names:
|
|
||||||
some_id: your name
|
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -81,3 +79,15 @@ mount_dir:
|
|||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
### Configuration Example
|
||||||
|
|
||||||
|
When `onewire` is added to Home Assistant, it will generate an ID for the sensor. You can specify a friendly name for the sensor with the name configuration option.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Named sensor configuration.yaml entry
|
||||||
|
sensor:
|
||||||
|
- platform: onewire
|
||||||
|
names:
|
||||||
|
GENERATED_ID: FRIENDLY_NAME
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user