mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Serial json (#3942)
* add value_template option * Set type to template * Remove tab
This commit is contained in:
parent
4d4212bca4
commit
93cb701387
@ -31,19 +31,23 @@ sensor:
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
serial_port:
|
serial_port:
|
||||||
description: Local serial port where the sensor is connected and access is granted.
|
description: Local serial port where the sensor is connected and access is granted.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
description: Friendly name to use for the frontend. Default to "Serial sensor".
|
description: Friendly name to use for the frontend. Default to "Serial sensor".
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
baudrate:
|
baudrate:
|
||||||
description: Baudrate of the serial port.
|
description: Baudrate of the serial port.
|
||||||
required: false
|
required: false
|
||||||
default: 9600 Bps
|
default: 9600 Bps
|
||||||
type: int
|
type: int
|
||||||
|
value_template:
|
||||||
|
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the serial line."
|
||||||
|
required: false
|
||||||
|
type: template
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user