Update configuration variable description style (#4132)

This commit is contained in:
Fabian Affolter 2017-12-04 08:31:55 +01:00 committed by GitHub
parent 38dc270db4
commit 9daa6d61cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,18 +22,30 @@ sensor:
- platform: temper - platform: temper
``` ```
Configuration option: {% configuration %}
offset:
- **name** (*Optional*): The name you would like to give the sensor in Home Assistant. description: The offset to fix reported vales.
- **scale** (*Optional*): The scale for the sensor. required: false
- **offset** (*Optional*): The offset to fix reported vales. type: int
default: o
scale:
description: The scale for the sensor.
required: false
type: int
default: 1
name:
description: The name to use when displaying this switch.
required: false
type: string
default: myStrom Switch
{% endconfiguration %}
Since some of these sensors consistently show higher temperatures the scale and offset values can be used to fine-tune your sensor. Since some of these sensors consistently show higher temperatures the scale and offset values can be used to fine-tune your sensor.
The calculation follows the formula `scale * sensor value + offset`. The calculation follows the formula `scale * sensor value + offset`.
The TEMPer sensors can only be accessed as root by default. To fix the USB permissions on your system create the file `/etc/udev/rules.d/99-tempsensor.rules` and add the following line to it: The TEMPer sensors can only be accessed as root by default. To fix the USB permissions on your system create the file `/etc/udev/rules.d/99-tempsensor.rules` and add the following line to it:
``` ```text
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="7401", MODE="666" SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="7401", MODE="666"
``` ```