-
I'm struggling to get Home Assistant to communicate with the inverter using this excellent looking integration. Inverter: H1-6.0-E-G2 with the 16 pin connector Port and slave IDs are set to defaults and checked on the inverter. The wires had been connected to the modbus by my installer, but I took it apart to check. They had been put into the wrong pins. I'd also been getting some CT clamp errors, and you can see why in the "before" photo, now corrected in the "after" photo. I checked three times that there was a good connection and in the correct pins. I'd really hoped having done this that it would all be good. When I try to connect to the modbus using the HA integration setup I do see the waveshare link light flash blue, so HA is communicating with the waveshare fine. I've also re-checked all of the settings on the waveshare against the images posted on the very clear guide at: https://github.com/nathanmarlor/foxess_modbus/wiki/Waveshare-RS485-to-ETH-%28B%29 I've tried multi-host on and off (mentioned as optional but not needed in my setup). The closest post to this is: #610 - which was solved by switching to a twisted pair cable, which I'm using (though only one wire in each pair is used, assume that's the usual way people would wire it). I can see that they turned on pymodbus logging, but I can't find instructions for how to do that. I've spent several hours tying to suss this, nothing in other posts seems to quite match; anything obvious I'm doing wrong or any ideas of things to try? Thank you 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
It looks setup correctly, and the wiring is much tidier now :) I can’t see the pin numbers but you should be connected to pins 3 & 4 for RS485B & A You only need to worry about twisted pair and shielding if it’s going long distance so a single pair is fine. Your inverter firmware versions are good as well so that’s another thing ticked. You should see the ACT light flash when you address the waveshare, if it’s lit permanently it usually means you have the A & B wires swapped. So a couple of things to check on the inverter, make sure in settings that the ethernet DHCP is disabled this sometimes overrides the RS485 port and defaults comms to ethernet, and also that the slave is set to 247 (sometimes the inverter will restart at this point) If you could try connecting the integration again and copy any logs that relate to it below please. |
Beta Was this translation helpful? Give feedback.
-
Hello Dave - thank you for replying so quickly to my post. Thank you also for commenting on the wiring improvement :-) I have a new G2 model which doesn't seem to have an ethernet port and only RS485 is available in the communications menu. Slave is set to 247. I don't ever see the ACT light on the waveshare.... I powered down the inverter this morning and used a multimeter to test the connection from the waveshare to the port output going into the inverter and they're connected. I'm also convinced that I have pins 3 & 4 connected the right way round, though I've also tried switching them over this morning just through exasperation but no success. HA logs report:
I've ordered one of these this morning to test the waveshare device is actually working - at least one of the many forum posts I've read suggested that their waveshare device was duff: https://www.ebay.co.uk/itm/264814575926 Frustratingly also this morning the inverter has decided to ignore the battery, drawing from grid to make up any excess requirement from load. CT clamp data and load data seem accurate, min soc 10%, min soc on grid 15% (I use EPS so this could probably do with going up a bit), max soc 100%, nothing set in schedulers (never even used them), all 0's in the time on battery force charge settings, but this is another story/new issue. 🤦 |
Beta Was this translation helpful? Give feedback.
-
I’ve always found the waveshare very reliable but as you say a few users have had initial setup problems, which were mostly cured by the ‘full reset’ shown on the wiki page and then set it up again, after which it’s worked. I saw your post over on the community website about the battery not working, i’ve answered that over there - hopefully one of those points will get it back up running. |
Beta Was this translation helpful? Give feedback.
Solution found.
The original issue was the modbus had been incorrectly wired by the installer which I fixed, but still wasn't working.
The second thing needed was a replacement ethernet cable into the Waveshare RS485 device. The original cable was new, and I happen to own a cable tester so when troubleshooting the original issue over many hours I'd tested the cable which was apparently fine. Out of desperation and having tried everything else I could think of I tried a change of ethernet cable to another identical cat6 cable, and suddenly it works. HA connected and all the metrics are coming through.
Thanks for all your help @FozzieUK, I'm very very happy with it all now!