Hi,
i want to share my project to connect a Solax X1/X3 Solar Inverter without Solax Cloud and without Pocket Wifi. Data will be read complete locally by Modbus RS-485 RTU and share it via MQTT.
So any Homeautomatisation solution has access to that Solar LiveData.
@tobiasfaust Thanks for sharing your project! I’ve been trying to connect my Solax X1 Boost (serial number starts with XB) inverter through RS485, but I’ve been unsuccessful so far.
Shouldn’t it be possible to utilize ESPHome’s (or ESPEasy, etc.) native modbus functionality, at least for reading basic data (powerdc1, etc.)? I must note that I don’t know much about the protocol, but the documentation provided in your repository appears pretty standard, e.g. function code 0X04 for reading input registers.
When I connect to the inverter using ESPHome and baud rate 9600 I receive the following error:
[D][modbus:115]: Modbus error function code: 0x84 exception: 2
[E][modbus_controller:068]: Modbus error function code: 0x4 exception: 2
[E][modbus_controller:072]: Modbus error - last command: function code=0x4 register address = 0xA registers count=2 payload size=0
It feels like I’m close to fetching data from the inverter, but there’s an addressing error (exception 2).
I finally got this to work without another custom firmware. It’s just ESPHome and getting the addressing right for my Solax X1 Boost (XB33…) was the biggest challenge. I’m using a Wemos D1 Mini with this Modbus Shield V2 to send the measurements to HA wirelessly. You don’t need the shield, since the wiring is pretty easy, but it cleans up the project nicely.
sorry, i cannot support you regarding integration in HA. My ModbusMqttGateway pushes all values to a standard MQTT Server. Mqtt is a standard protocoll, and if HA supports mqtt, its possible to integrate it.
My ModbusMqttGateway supports many solarInverter types.