From 01a251b0c39d91e19790f2516aad80c0d96be4ee Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Sun, 22 Mar 2020 13:26:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Add=20defaults=20and=20config=20?= =?UTF-8?q?variable=20-=20DSMR=20(#12479)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_integrations/dsmr.markdown | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source/_integrations/dsmr.markdown b/source/_integrations/dsmr.markdown index 7d8dcf43006..2f0a52bc262 100644 --- a/source/_integrations/dsmr.markdown +++ b/source/_integrations/dsmr.markdown @@ -54,17 +54,24 @@ sensor: {% configuration %} 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 type: string + default: "/dev/ttyUSB0" 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 type: string 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 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: description: Defines the precision of the calculated values, through the argument of round(). required: false