From 68e773edb36fe3ccf3d58a644c84ad6ac07188e2 Mon Sep 17 00:00:00 2001 From: Guillaume DELVIT Date: Fri, 1 May 2020 10:32:50 +0200 Subject: [PATCH] Update Serial sensor platform : Add full options (#13221) * Add full options to serial Add : bytesize, parity, stopbits, xonxoff, rtscts, dsrdtr. With default value unchanged so it doesn't break previous config. * Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute * Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute * Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute * Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute * Update source/_integrations/serial.markdown Co-Authored-By: Klaas Schoute * Fix parity String and Typo Fix Parity related example as correction you show me. Thx for review Co-authored-by: Klaas Schoute --- source/_integrations/serial.markdown | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/source/_integrations/serial.markdown b/source/_integrations/serial.markdown index abf12d281c4..d75b4df2f1d 100644 --- a/source/_integrations/serial.markdown +++ b/source/_integrations/serial.markdown @@ -43,6 +43,36 @@ baudrate: required: false default: 9600 Bps type: integer +bytesize: + description: "Number of data bits. Possible values: `5=FIVEBITS`, `6=SIXBITS`, `7=SEVENBITS`, `8=EIGHTBITS`." + required: false + default: 8 + type: integer +parity: + description: "Enable parity checking. Possible values: `N=PARITY_NONE`, `E=PARITY_EVEN`, `O=PARITY_ODD`, `M=PARITY_MARK`, `S=PARITY_SPACE`." + required: false + default: "N" + type: string +stopbits: + description: "Number of stop bits. Possible values: `1=STOPBITS_ONE`, `1.5=STOPBITS_ONE_POINT_FIVE`, `2=STOPBITS_TWO`." + required: false + default: 1 + type: float +xonxoff: + description: Enable software flow control. + required: false + default: False + type: boolean +rtscts: + description: Enable hardware (RTS/CTS) flow control. + required: false + default: False + type: boolean +dsrdtr: + description: Enable hardware (DSR/DTR) flow control. + required: false + default: False + type: boolean value_template: description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the serial line." required: false