From 6158057ec16cddb25068d3f2d5b3188f7334e653 Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Tue, 7 Nov 2017 21:32:24 +0000 Subject: [PATCH] Serial sensor (#3926) * sensor serial correction + Fixes configuration mismatch (serial_port) + adds option (baudrate) * Minimize config sample and fix description --- source/_components/sensor.serial.markdown | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/_components/sensor.serial.markdown b/source/_components/sensor.serial.markdown index d03daed3906..c66fe9386ad 100644 --- a/source/_components/sensor.serial.markdown +++ b/source/_components/sensor.serial.markdown @@ -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 %}