From 26a49bfb37fb18db93a8b33dbd1e43eaf282e05d Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 8 Apr 2020 18:24:26 +0200 Subject: [PATCH 1/2] Update modbus text, with warning Describe the warning from pymodbus and furthermore describe how to add debug. --- source/_integrations/modbus.markdown | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/source/_integrations/modbus.markdown b/source/_integrations/modbus.markdown index a42b23fcc2e9..ec37e659c030 100644 --- a/source/_integrations/modbus.markdown +++ b/source/_integrations/modbus.markdown @@ -153,6 +153,29 @@ modbus: | address | Address of the Register (e.g., 138) | | value | A single value or an array of 16-bit values. Single value will call modbus function code 6. Array will call modbus function code 16. Array might need reverse ordering. E.g., to set 0x0004 you might need to set `[4,0]` | +## Log warning (v1.0.8 and onwards) + +Pymodbus (which is the implementation library) was updated and issues a warning: + - "Not Importing deprecated clients. Dependency Twisted is not Installed" +This warning can be safely ignored, and have no influence on how the integration +works! + +## Opening an issue +When opening an issue, please add your current configuration (or a scaled down version), with at least: + - the modbus configuration lines + - the entity (sensor etc) lines + +In order for the developers better to identify the problem, please add the +following lines to configuration.yaml: + +```yaml +logger: + logs: + homeassistant.components.modbus: debug + pymodbus.client: debug +``` +and restart HA, reproduce the problem, and include the log in the issue. + ## Building on top of Modbus - [Modbus Binary Sensor](/integrations/binary_sensor.modbus/) From 6f2fe81c404f4111ebbc151004a496aa52b47ca9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 12 Apr 2020 12:14:32 +0200 Subject: [PATCH 2/2] Minor changes --- source/_integrations/modbus.markdown | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/_integrations/modbus.markdown b/source/_integrations/modbus.markdown index ec37e659c030..ddd70ad94a32 100644 --- a/source/_integrations/modbus.markdown +++ b/source/_integrations/modbus.markdown @@ -156,14 +156,18 @@ modbus: ## Log warning (v1.0.8 and onwards) Pymodbus (which is the implementation library) was updated and issues a warning: + - "Not Importing deprecated clients. Dependency Twisted is not Installed" + This warning can be safely ignored, and have no influence on how the integration works! ## Opening an issue + When opening an issue, please add your current configuration (or a scaled down version), with at least: - - the modbus configuration lines - - the entity (sensor etc) lines + + - the Modbus configuration lines + - the entity (sensor, etc.) lines In order for the developers better to identify the problem, please add the following lines to configuration.yaml: @@ -174,7 +178,8 @@ logger: homeassistant.components.modbus: debug pymodbus.client: debug ``` -and restart HA, reproduce the problem, and include the log in the issue. + +and restart Home Assistant, reproduce the problem, and include the log in the issue. ## Building on top of Modbus