saidlm / Domoticz-Solax-plugin

Plugin to monitor and control Solax inverter from Domoticz via ModBUS over TCP/IP
MIT License
1 stars 0 forks source link

Provide unit ID to read_input_registers and fix typo #9

Closed averter closed 1 month ago

averter commented 1 month ago

Fixes issue https://github.com/saidlm/Domoticz-Solax-plugin/issues/8. The read_input_registers pymodbus function requires the ID of the unit to work properly. This is evident only when using RS485 devices such as the waveshare RS485 to RJ45 Ethernet Module. With the solax wifi dongle there is no Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received)