Skip to content

Commit 93cb701

Browse files
dgomesfabaff
authored andcommitted
Serial json (home-assistant#3942)
* add value_template option * Set type to template * Remove tab
1 parent 4d4212b commit 93cb701

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

source/_components/sensor.serial.markdown

+17-13
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,23 @@ sensor:
3131
```
3232
3333
{% configuration %}
34-
serial_port:
35-
description: Local serial port where the sensor is connected and access is granted.
36-
required: true
37-
type: string
38-
name:
39-
description: Friendly name to use for the frontend. Default to "Serial sensor".
40-
required: false
41-
type: string
42-
baudrate:
43-
description: Baudrate of the serial port.
44-
required: false
45-
default: 9600 Bps
46-
type: int
34+
serial_port:
35+
description: Local serial port where the sensor is connected and access is granted.
36+
required: true
37+
type: string
38+
name:
39+
description: Friendly name to use for the frontend. Default to "Serial sensor".
40+
required: false
41+
type: string
42+
baudrate:
43+
description: Baudrate of the serial port.
44+
required: false
45+
default: 9600 Bps
46+
type: int
47+
value_template:
48+
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the serial line."
49+
required: false
50+
type: template
4751
{% endconfiguration %}
4852
4953

0 commit comments

Comments
 (0)