Serial sensor (#3926)

* sensor serial correction

+ Fixes configuration mismatch (serial_port)
+ adds option (baudrate)

* Minimize config sample and fix description
This commit is contained in:
Diogo Gomes 2017-11-07 21:32:24 +00:00 committed by Fabian Affolter
parent c9e1a09d8c
commit 6158057ec1

View File

@ -27,11 +27,11 @@ To setup a serial sensor to your installation, add the following to your `config
# Example configuration.yaml entry
sensor:
- platform: serial
port: /dev/ttyACM0
serial_port: /dev/ttyACM0
```
{% configuration %}
port:
serial_port:
description: Local serial port where the sensor is connected and access is granted.
required: true
type: string
@ -39,6 +39,11 @@ sensor:
description: Friendly name to use for the frontend. Default to "Serial sensor".
required: false
type: string
baudrate:
description: Baudrate of the serial port.
required: false
default: 9600 Bps
type: int
{% endconfiguration %}