mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 10:17:23 +00:00
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:
parent
c9e1a09d8c
commit
6158057ec1
@ -27,11 +27,11 @@ To setup a serial sensor to your installation, add the following to your `config
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
- platform: serial
|
- platform: serial
|
||||||
port: /dev/ttyACM0
|
serial_port: /dev/ttyACM0
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
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
|
||||||
@ -39,6 +39,11 @@ sensor:
|
|||||||
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:
|
||||||
|
description: Baudrate of the serial port.
|
||||||
|
required: false
|
||||||
|
default: 9600 Bps
|
||||||
|
type: int
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user