mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
Update configuration variable description style (#4132)
This commit is contained in:
parent
38dc270db4
commit
9daa6d61cd
@ -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"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user