You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/sensor.tcp.markdown
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Configuration options for the a TCP Sensor:
33
33
- **payload** (*Required*): What to send to the host in order to get the response we're interested in.
34
34
- **timeout** (*Optional*): How long in seconds to wait for a response from the service before giving up and disconnecting. Defaults to `10`
35
35
- **value_template** (*Optional*): Defines a [template](/topics/templating/) to extract the value. By default it's assumed that the entire response is the value.
36
-
- **unit** (*Optional*): The unit of measurement to use for the value.
36
+
- **unit_of_measurement** (*Optional*): The unit of measurement to use for the value.
37
37
- **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`.
38
38
39
39
## {% linkable_title Examples %}
@@ -61,7 +61,7 @@ sensor:
61
61
timeout: 5
62
62
payload: "r WaterPressure\n"
63
63
value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}"
64
-
unit: Bar
64
+
unit_of_measurement: Bar
65
65
```
66
66
67
67
### {% linkable_title hddtemp %}
@@ -95,5 +95,5 @@ sensor:
95
95
timeout: 5
96
96
payload: "\n"
97
97
value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}"
0 commit comments