Update config var name

This commit is contained in:
Fabian Affolter 2017-01-06 09:16:43 +01:00
parent 858555591b
commit cb3cb5fecc
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -33,7 +33,7 @@ Configuration options for the a TCP Sensor:
- **payload** (*Required*): What to send to the host in order to get the response we're interested in. - **payload** (*Required*): What to send to the host in order to get the response we're interested in.
- **timeout** (*Optional*): How long in seconds to wait for a response from the service before giving up and disconnecting. Defaults to `10` - **timeout** (*Optional*): How long in seconds to wait for a response from the service before giving up and disconnecting. Defaults to `10`
- **value_template** (*Optional*): Defines a [template](/topics/templating/) to extract the value. By default it's assumed that the entire response is the value. - **value_template** (*Optional*): Defines a [template](/topics/templating/) to extract the value. By default it's assumed that the entire response is the value.
- **unit** (*Optional*): The unit of measurement to use for the value. - **unit_of_measurement** (*Optional*): The unit of measurement to use for the value.
- **buffer_size** (*Optional*): The size of the receive buffer in bytes. Set this to a larger value if you expect to receive a response larger than the default. Defaults to `1024`. - **buffer_size** (*Optional*): The size of the receive buffer in bytes. Set this to a larger value if you expect to receive a response larger than the default. Defaults to `1024`.
## {% linkable_title Examples %} ## {% linkable_title Examples %}
@ -61,7 +61,7 @@ sensor:
timeout: 5 timeout: 5
payload: "r WaterPressure\n" payload: "r WaterPressure\n"
value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}" value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}"
unit: Bar unit_of_measurement: Bar
``` ```
### {% linkable_title hddtemp %} ### {% linkable_title hddtemp %}
@ -95,5 +95,5 @@ sensor:
timeout: 5 timeout: 5
payload: "\n" payload: "\n"
value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}" value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}"
unit: "°C" unit_of_measurement: "°C"
``` ```