homeassistant-solax-modbus
homeassistant-solax-modbus copied to clipboard
[BUG]
Describe the bug I m getting: unrecognized Solis inverter type - serial number : unknown and Solis: reading serial number from address 0x80ec failed; other address may succeed
I m using a DSD TECH SH-U10 rs485 to usb adaptor it has a silicon labs cp2102 chip in it. its correctly wired up to our solis 10KW Hybird inverter
Mandatory details
- Integration Version: 0.7.0.5
- HA Version: Home Assistant 2022.11.4
- Inverter Brand: solis
- Plugin Used: solis
- First 6 digits of Serial: 110CA2
- Connection Method: Serial (DSD TECH SH-U10 rs485 )
Detailed Error Log Logger: custom_components.solax_modbus.plugin_solis Source: custom_components/solax_modbus/plugin_solis.py:84 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 14:50:20 (1 occurrences) Last logged: 14:50:20
Solis: reading serial number from address 0x80ec failed; other address may succeed
Logger: custom_components.solax_modbus.plugin_solis Source: custom_components/solax_modbus/plugin_solis.py:86 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 14:50:20 (1 occurrences) Last logged: 14:50:20
Solis: cannot find serial number, even not for other Inverter
Logger: custom_components.solax_modbus.plugin_solis Source: custom_components/solax_modbus/plugin_solis.py:97 Integration: SolaX Inverter Modbus (documentation, issues) First occurred: 14:50:20 (1 occurrences) Last logged: 14:50:20
unrecognized Solis inverter type - serial number : unknown
If there are no log's showing for SolaX try the following depending on your language settings, you can find the full logs under:
Settings → System → Logs > at bottom of page press “LOAD FULL LOGS”
Now the full logs are loaded. If you scroll down, you will see them. Once the full logs are shown, you can either use the search function in your browser to search for “solax” related entries or use the search entry field on top of the page.
Search for
solax
2022-11-25 15:00:04.261 WARNING (MainThread) [custom_components.solax_modbus.plugin_solis] Solis: reading serial number from address 0x80ec failed; other address may succeed 2022-11-25 15:00:04.264 ERROR (MainThread) [custom_components.solax_modbus.plugin_solis] Solis: cannot find serial number, even not for other Inverter 2022-11-25 15:00:04.265 ERROR (MainThread) [custom_components.solax_modbus.plugin_solis] unrecognized Solis inverter type - serial number : unknown
Additional context Add any other context about the problem here.
Are you using the default baud rate of 9600?
Have you previously been able to talk to this Inverter either using the Modbus built into HA or a program like Gmodbus?
I m using the default 9600 yes and no i have not tried other programs yet
Are you sure you have the data pins the correct way round? With Modbus A goes to A and B goes to B. They don't need swapping over unlike a Null Modem Cable.
a goes to a and b goes to b
i used this picture for the pinout on the inverter itself https://community-assets.home-assistant.io/original/4X/7/5/0/750b95a33f06f15259bee9bd843ef19fc27e56b6.jpeg
Pin 3 goes to a+ and pin 4 to a-
@kai-seipp are you able to confirm if this Diagram is correct as I believe you have the same Inverter. Did you have to enable anything of the Inverter as well? As there doesn't appear to be any communications if it is connected correctly?
Hey Guys,
The pins are correct 3 / 4 are Modbus A and B. So that is correct. What took me a while to figure out is that I had to use the "COM" Port (green) and not the MODBUS Port as one could expect... ;)
And of cause you have to check the Address given within the inverters Menu so it matches the Modbus ID you specify within this script on setup.
You don't need to use ground or if (to shield the wire) you don't connect it to your inverter but just to your Modbus communication module.
Hope this helps!
"The pins are correct 3 / 4 are Modbus A and B. So that is correct. What took me a while to figure out is that I had to use the "COM" Port (green) and not the MODBUS Port as one could expect... ;)" what do you mean with com port green etc? i can see the device in side linux as /dev/ttyUSB0? and on the inverter we dont have any settings for modbus or com
also can this come becouse of the cable length between the inverter and the serial usb? (around 10m)
RS485 can go upto 1200m if Terminated correctly.
I'm not sure at what exact distance you need to ground the cable and possibly introduce a terminating resistor at.
i dont have it grounded atm is that required? and if so how would i do that
this is what it looks on the pc/servers side btwhttps://cdn.discordapp.com/attachments/805950455359602709/1045735535987142806/IMG_20221125_171832.jpg
This image shows tie two ports on my Solis inverter.
To set modbus address I have to go to "settings" and than to "Address". The number I define there is the modbus ID.
i put the cables in the COM/CAM port does it need to be in the rs one somehow?
If you scroll in you can see the pin IDs inside the socket.
looks correctly wired up to me then
https://cdn.discordapp.com/attachments/805950455359602709/1045735535987142806/IMG_20221125_171832.jpg
Do you have an image where we can see the labels on the ports?
i dont have it grounded atm is that required? and if so how would i do that
I don't think you have to ground it for 10m. But this depends on the interference on the way. But at a private home it should be ok. If you want to try: you would just have to find the ground connector on your usb dongle. And connect one of the extra wires to it. That's it. It would not be connected anywhere on the inverters side.
i have re attached all the 4 wires and pins so the usb gets also 5v and ground from the inverter and lets see tomorrow what it does when the sun is backup :p becouse ye rn the inverter is offline
It looks like @blackwhitebear8 is using Unshielded CATx cable? I'm not sure if grounding one of the other twisted pairs would offer much help? I would assume you would have to ground the outer shielding for it to make a difference?
Are you able to use a shorter cable just for test purposes? Could you use a laptop next to your Inverter?
I don't it's necessary to connect the 5v between devices.
Like @kai-seipp mentions are you able to show a picture of how you are connected at the Inverter?
https://cdn.discordapp.com/attachments/1026751450874904598/1045782707982041170/IMG_20221125_201936.jpg https://cdn.discordapp.com/attachments/1026751450874904598/1045782708204359800/IMG_20221125_202058.jpg connections ^^ and its a shielded cat6 cable the shielding is cut off where the plastic stops.
I would be careful using pins 1 and 2. I don't have it to hand but if I remember correctly one is feeding 5V and the other 24V for the Solis data stick. I did find a breakout sheet somewhere on the Solis help portal. But this is just out of my head. But anyway: there really is no need to use anything else but 3 and 4. I only used these and used totally unshielded single wires you would usually use to connect a door bell. But I only needed to bridge about 1m.
i had found this diagram and it said 5v and ground https://community-assets.home-assistant.io/original/4X/7/5/0/750b95a33f06f15259bee9bd843ef19fc27e56b6.jpeg
i had found this diagram and it said 5v and ground https://community-assets.home-assistant.io/original/4X/7/5/0/750b95a33f06f15259bee9bd843ef19fc27e56b6.jpeg
Checked it with the Solis portal. Seams to be correct!
https://ginlongsolis.freshdesk.com/support/solutions/articles/36000012141-rs-485-wiring-with-circular-connector
Solis:
A typical wiring scheme calls for an IN and an OUT, that means that each run will have a positive, a negative, a common wire, and a ground. The common wire isn't needed here, but the + and - are. Think of A as positive and B as negative. Each in / out has both a positive (A) or a negative (B).
Did you check the address set within your inverter? Does it match the one set here at the integration?
where can i check this? i have never seen any options for serial or modbus connections in it?
Follow this here. https://user-images.githubusercontent.com/22188947/204049730-61f2cafc-ab85-484f-ac9d-2de318f1dbba.MOV
will try this tomorrow morning ty. Also do you have abatterij or do you live somewhere where its still day now?
I have a battery. This is why one of my two inverter is still running.
The other one is dead now as well.