syssi / esphome-solax-x1-mini

ESPHome component to monitor a Solax X1 mini via RS485
Apache License 2.0
39 stars 11 forks source link

can't connect to X1 Mini #55

Closed robotfishe closed 1 year ago

robotfishe commented 1 year ago

I'm in a simiar position to the one another user was in here: https://github.com/syssi/esphome-solax-x1-mini/issues/33

The output is the same, with this block repeated every few seconds:

[16:33:29][D][sensor:094]: 'solax-x1-mini temperature': Sending state nan °C with 0 decimals of accuracy
[16:33:29][D][sensor:094]: 'solax-x1-mini dc1 voltage': Sending state 0.00000 V with 1 decimals of accuracy
[16:33:29][D][sensor:094]: 'solax-x1-mini dc2 voltage': Sending state 0.00000 V with 1 decimals of accuracy
[16:33:29][D][sensor:094]: 'solax-x1-mini dc1 current': Sending state 0.00000 A with 1 decimals of accuracy
[16:33:29][D][sensor:094]: 'solax-x1-mini dc2 current': Sending state 0.00000 A with 1 decimals of accuracy
[16:33:29][D][sensor:094]: 'solax-x1-mini ac current': Sending state 0.00000 A with 1 decimals of accuracy
[16:33:29][D][sensor:094]: 'solax-x1-mini ac voltage': Sending state nan V with 1 decimals of accuracy
[16:33:29][D][sensor:094]: 'solax-x1-mini ac frequency': Sending state nan Hz with 2 decimals of accuracy
[16:33:29][D][sensor:094]: 'solax-x1-mini ac power': Sending state 0.00000 W with 0 decimals of accuracy
[16:33:29][D][solax_x1_mini:298]: The device is or was offline. Broadcasting discovery for address configuration...

I have checked the wiring on my RJ45 cable against the RS485 pinout in the X1 mini installation manual and everything's right. Multimeter says there's continuity on A+, B- and GND.

The light on the HW-219 flashes repeatedly so it does seem to be getting communication from at least one side. I've tried both GPIO1/3, which are my D1 mini 32's TX and RX pins, and GPIO16/17.

I was able to sign in to the advanced device menu through the Solax cloud with password 2014 and set the modbus support to "enable" and modbus address to "1".

I tried powering the HW-219 with 5v instead of 3.3 to see if a little extra power would help, but still got nothing.

Any ideas what to try next?

robotfishe commented 1 year ago

Never mind, this reply in another thread helped me out: https://github.com/syssi/esphome-solax-x1-mini/issues/32#issuecomment-1398452373

I enabled modbus RTU thinking that was necessary, but it actually messes up the non-RTU protocol you're using with this setup. Once I disabled RTU in the advanced settings via the Solax cloud, I was able to connect with no problems!