From 2d4be0dce7bc908a24af0c702fb57c8ec083c435 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Fri, 14 May 2021 11:02:46 +0200 Subject: [PATCH] Add description of ""close_comm_on_error". (#17826) Co-authored-by: Martin Hjelmare Co-authored-by: Franck Nijhof --- source/_integrations/modbus.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_integrations/modbus.markdown b/source/_integrations/modbus.markdown index a883889e243..e0d47b44a10 100644 --- a/source/_integrations/modbus.markdown +++ b/source/_integrations/modbus.markdown @@ -48,6 +48,11 @@ modbus: ``` {% configuration %} +close_comm_on_error: + description: Determines if the modbus communication is closed when an error occurs, default is true. Some serial-rs485 adapters send garble to HA when opened, this leads to a disconnect and a new connect, which can continue. If in a running communication the debug log contains a message from pymodbus, with the text "cleaning....", then try this parameter. + required: false + default: true + type: boolean delay: description: Time to delay messages in seconds after connecting. Some modbus devices need a delay typically 1-2 seconds after connection is established in order to prepare the communication. If a device accepts connecting with no response to the requests sent or the device disconnects, this parameter might help. required: false