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 <klaas_schoute@hotmail.com>

* Update source/_integrations/serial.markdown

Co-Authored-By: Klaas Schoute <klaas_schoute@hotmail.com>

* Update source/_integrations/serial.markdown

Co-Authored-By: Klaas Schoute <klaas_schoute@hotmail.com>

* Update source/_integrations/serial.markdown

Co-Authored-By: Klaas Schoute <klaas_schoute@hotmail.com>

* Update source/_integrations/serial.markdown

Co-Authored-By: Klaas Schoute <klaas_schoute@hotmail.com>

* Fix parity String and Typo

Fix Parity related example as correction you show me.
Thx for review

Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>
This commit is contained in:
Guillaume DELVIT 2020-05-01 10:32:50 +02:00 committed by GitHub
parent 6400d9ddbf
commit 68e773edb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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