mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +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
|
||||
sensor:
|
||||
- platform: onewire
|
||||
names:
|
||||
some_id: your name
|
||||
```
|
||||
|
||||
{% configuration %}
|
||||
@ -81,3 +79,15 @@ mount_dir:
|
||||
type: string
|
||||
{% 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