🔨 Add defaults and config variable - DSMR (#12479)

This commit is contained in:
Klaas Schoute 2020-03-22 13:26:11 +01:00 committed by GitHub
parent 00645ce20f
commit 01a251b0c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,17 +54,24 @@ sensor:
{% configuration %} {% configuration %}
port: port:
description: "Serial port to which Smartmeter is connected (default: /dev/ttyUSB0 (connected to USB port)). For remote (i.e., ser2net) connections, use TCP port number to connect to (i.e., 2001)." description: "Serial port to which Smartmeter is connected via USB. For remote (i.e., ser2net) connections, use TCP port number to connect to (i.e., 2001)."
required: false required: false
type: string type: string
default: "/dev/ttyUSB0"
host: host:
description: "Host to which Smartmeter is connected (default: '' (connected via serial or USB, see **port**)). For remote connections, use IP address of host to connect to (i.e., 192.168.1.13)." description: "Host to which Smartmeter is connected via serial or USB, see **port**. For remote connections, use IP address of host to connect to (i.e., 192.168.1.13)."
required: false required: false
type: string type: string
dsmr_version: dsmr_version:
description: "Version of DSMR used by meter. Choices: 2.2, 4, 5, 5B (For Belgian Meter). Defaults to 2.2." description: "Version of DSMR used by meter. Choices: `2.2`, `4`, `5`, `5B` (For Belgian Meter)."
required: false required: false
type: string type: string
default: "2.2"
reconnect_interval:
description: The reconnect interval in seconds when the connection is lost with the Smartmeter.
required: false
type: integer
default: 30
precision: precision:
description: Defines the precision of the calculated values, through the argument of round(). description: Defines the precision of the calculated values, through the argument of round().
required: false required: false