wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some AlphaESS, Growatt, Sofar, Solinteg, Solis, SRNE, Swatten)
317 stars 101 forks source link

solax x3-pro-25k-g2 RS485 RTU #504

Closed Meizel closed 1 year ago

Meizel commented 1 year ago

Inverter: solax x3-pro-25k-g2 RS485 usb to home-assistant: Amazon link SolaX Inverter Modbus: 2023-08-06

From the inverter RS485 bus: A(data+) > home-assistant USB: B(data-) From the inverter RS485 bus: B(data-) > home-assistant USB: A(data+) On both sides are resistors connected with A value of 120K

I do not get any data.

Also there is no modbus list from solax, I've sent an email and the repay was it's not released. only true the web API.

home assistant log

2023-08-23 14:45:33.446 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-23 14:45:33.451 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration solax_modbus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-23 14:45:53.483 DEBUG (MainThread) [custom_components.solax_modbus] using pymodbus library 3.x
2023-08-23 14:45:53.606 INFO (MainThread) [custom_components.solax_modbus.config_flow] detected HA core version 2023 8
2023-08-23 14:45:53.606 INFO (MainThread) [custom_components.solax_modbus.config_flow] starting configflow - domain = solax_modbus
2023-08-23 14:45:53.606 DEBUG (MainThread) [custom_components.solax_modbus] setup entries - data: {}, options: {'name': 'SolaX', 'interface': 'serial', 'read_modbus_addr': 1, 'plugin': 'solax', 'scan_interval': 15, 'read_eps': False, 'read_dcb': False, 'read_pm': False, 'read_serial_port': '/dev/ttyUSB0', 'baudrate': '9600'}
2023-08-23 14:45:53.606 INFO (MainThread) [custom_components.solax_modbus] trying to load plugin - plugin_name: solax
2023-08-23 14:45:53.641 DEBUG (MainThread) [custom_components.solax_modbus] Setup solax_modbus.SolaX
2023-08-23 14:45:53.641 DEBUG (MainThread) [custom_components.solax_modbus] solax serial port /dev/ttyUSB0 interface serial
2023-08-23 14:45:53.641 DEBUG (MainThread) [custom_components.solax_modbus] solax modbushub creation with interface serial baudrate (only for serial): 9600
2023-08-23 14:45:53.641 DEBUG (MainThread) [custom_components.solax_modbus] SolaX: ready to call plugin to determine inverter type
2023-08-23 14:45:53.641 INFO (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: trying to determine inverter type
2023-08-23 14:45:59.678 WARNING (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: reading serial number from address 0x0 failed; other address may succeed
2023-08-23 14:45:59.729 INFO (MainThread) [custom_components.solax_modbus.plugin_solax] Read SolaX 0x0 serial number before potential swap: None
2023-08-23 14:46:05.799 WARNING (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: reading serial number from address 0x300 failed; other address may succeed
2023-08-23 14:46:05.800 INFO (MainThread) [custom_components.solax_modbus.plugin_solax] Read SolaX 0x300 serial number before potential swap: None
2023-08-23 14:46:05.801 ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] SolaX: cannot find serial number, even not for MIC
2023-08-23 14:46:05.803 ERROR (MainThread) [custom_components.solax_modbus.plugin_solax] unrecognized inverter type - serial number : unknown
wills106 commented 1 year ago

I don't believe you need the terminating resistors.

Have you tried swapping the wires? On RS485 A goes to A and B goes to B. Although it's a bit confusing as the User Manual implies A-B & B-A.

You need a Baud of 9600.

Edit: If you have working coms but your Inverter isn't supported yet, you will get your Serial Number printed into that log.

wills106 commented 1 year ago

Did you have another look at your wiring?

wills106 commented 1 year ago

Closing down as no response. If you are still having issues connecting then raise a discussion topic.

Meizel commented 1 year ago

Sorry wills106,

I had A small vacation so wasn't able te response.

Yes I had check the wires. and the connection is OK. Swap the USB dongle, for the A new one, but dint mace any difference. The resistors of 120K removed, no difference.

on tweekers.net dev5000 got it to work. also make A request for his solution, (sorry forum is in Dutch)

When and if I get A response from dev5000. ill let you know.