Serial json (#3942)

* add value_template option

* Set type to template

* Remove tab
This commit is contained in:
Diogo Gomes 2017-11-10 16:27:59 +00:00 committed by Fabian Affolter
parent 4d4212bca4
commit 93cb701387

View File

@ -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 %}