Closed miralpeix closed 4 weeks ago
Hi @miralpeix,
In the definition profile you are using try change the function code in:
- start: 0x0200
end: 0x0255
mb_functioncode: 0x03
to 0x04
or even remove that request set completely so it runs only with the second one.
And you don't have a problem with connection to the inverter, you have a problem with reading registers from the inverter. 😉
And send logs.
I found a Sofar Solar Modbus documentation. Haven’t checked if these are the registers from your integration.
Check it out here: https://solaranzeige.de/phpBB3/download/file.php?id=5254
Hi @miralpeix,
In the definition profile you are using try change the function code in:
- start: 0x0200 end: 0x0255 mb_functioncode: 0x03
to 0x04
or even remove that request set completely so it runs only with the second one.
And you don't have a problem with connection to the inverter, you have a problem with reading registers from the inverter. 😉
And send logs.
David, Joe, the knowledge you have seems incredible to me.... and I feel like an idiot asking this, but, how can I change this code? Can you give a little advise in order to find it in home assistant? THANKS 🙏
Find it with file editor :)
I have change it, but the problem continues... :-(
First change to 0x04 and then removing all the request.
Attach the log and shots
You can't imagine how grateful I am for your help. 8.log
David, Joe, the knowledge you have seems incredible to me....
David is the expert, not me. He helped me to get mine going as well and hopefully can solve your problem as well.
This Integration has multiple extras and advantages compared to Stephen’s version by the way.
Hope it works out for you!
The 8.log is after you changed that code or after you removed the first request set? Would love to see both logs, aswell another try where you run it only with the second request but 0x03 code.
I'm proly gonna have to pass you problem to the guys which made the lib we are using in the integration.
Another thing I want you to try is to put there single request for 0x0200 to see if it is able to at least read single register.
Adjust the request block so it looks like for example something like this:
requests:
- start: 0x0200
end: 0x0200
mb_functioncode: 0x03
- start: 0x0201
end: 0x0255
mb_functioncode: 0x03
- start: 0x10B0
end: 0x10BC
mb_functioncode: 0x04
And give us the debug logs.
I found a Sofar Solar Modbus documentation. Haven’t checked if these are the registers from your integration.
Check it out here: https://solaranzeige.de/phpBB3/download/file.php?id=5254
@PV-Joe? The doc is really exactly for his model? Or perhaps some similar one?
There we go! First all, thanks David for your work, your time, and your patience!
After to continue only a comment from what I have seen in the different forums and internet searches, every time there are problems with HA+ Solarman integrations with the inverter values and they are shown as "unknown" in 90% of the cases the inverter is like mine: HYD 6000-EP sofar.
Any test that needs to be done, I put my HA and my inverter at the service of the community. If you need to connect to it remotely, we can talk privately. At your service.
There we go with the logs: log+shot
---
04.log
---
delete.log
---
all.log
@PV-Joe? The doc is really exactly for his model? Or perhaps some similar one? I don‘t know, just did a search and found it.
Here is another source that might be helpful: https://github.com/AndyWhittaker/HYD6000
I have a suspicion that cause his device is EP it could be just wrong registries we are asking, cause the profile is for ES. Who knows... I passed the issue to the library repo to more knowledgeable guys when comes to the solarman protocol and modbus.
Any test that needs to be done, I put my HA and my inverter at the service of the community. If you need to connect to it remotely, we can talk privately. At your service.
Cool. Let's wait for the response from the pysolarmanv5 guys and will see.
Hi @davidrapan,
SOFAR uses some kind of proprietary MODBUS protocol for some of the functions. Not the first complain from this brand. However the PDFs that can be found state that some info still can be obtained with the standard read_holding/read_input methods.
@miralpeix can you experiment with different addresses and provide the log from the test. Ignore the comments. Thank you in advance
start: 0x0206
end: 0x020c
function_code: 0x03
start: 0x10B0
end: 0x10B4
function_code: 0x04
start: 0x0000
end: 0x0024
function_code: 0x03
start: 0x0006
end: 0x000e
function_code: 0x03
start: 0x1000
end: 0x1005
function_code: 0x04
Hey @githubDante, thanks for joining the convo!
SOFAR uses some kind of proprietary MODBUS protocol for some of the functions. Not the first complain from this brand.
Fuh! That's unfortunate. 😞
So it's going to be trial and error of what could be read from that device. :-/
@miralpeix, so it's up to you if you want to get your hands dirty. Or maybe we could set up some remote access then and I could look into it myself when I'll have some time to spare. 😶🌫️
There we go with the homeworks for today: log+picture
@davidrapan I wish I had the technical ability to get my hands dirty... I wish!!!! we will need to work in remote or give me very accurate instructions, but I don't know if I am ready...!
Well yeah you forgot to put the dash in there :-/
- start: 0x10B0
end: 0x10BC
mb_functioncode: 0x04
Every start-end-mb_functioncode block needs to start with dash to indicate it's a list and also be properly spaced (space in front of the dash).
That's why it says duplicate mapping key. I get it not everyone is familiar with every file formatting. :-/
Probably the function code key also needs to be properly specified. Edited version:
start: 0x0206
end: 0x020c
mb_functioncode: 0x03
start: 0x10B0
end: 0x10B4
mb_functioncode: 0x04
start: 0x0000
end: 0x0024
mb_functioncode: 0x03
start: 0x0006
end: 0x000e
mb_functioncode: 0x03
start: 0x1000
end: 0x1005
mb_functioncode: 0x04
Thanks and sorry! 😆 again:
Used also in the AndyWhittaker repo.log
Unfortunately only the strange 01 90 02 00 00
responses.
I have already sent a request for documentation to SOFAR for this model. Let's see what their answer will be.
Hi @miralpeix
I had a similar issue, in fact pretty much the same I believe, but mine is the HYD 3000-EP Sofar. Also with similar firmware version.
Your post push me to find and search a bit more on the solution. And I think I got it!
On the 'original' home assistant solarman repo there a "sort of new file", that doesn't show on the "Automatic Config wizard". That file is this one: hyd-zss-hp-3k-6k.yaml
By attempting manual configurations, I got my HYD 3000-EP Sofar working in HA!
So after that success, I looked into getting that specific configuration .yaml
onto this own repo/solution.
So here a the simple steps you can follow to attempt to replicate my results:
Prerequisites:
Installed file editor on HA
Steps:
davidrapan/ha-solarman
on HA through HACS.yaml
file for now! Just select a random one!/homeassistant/custom_components/solarman/inverter_definitions/
.yaml
hyd-zss-hp-3k-6k.yaml
StephanJoubert/home_assistant_solarman
into our newly created one: hyd-zss-hp-3k-6k.yamlSettings
-> Devices & Services
-> on tab Integrations
-> Solarman
Devices
section click Configure
and change the .yaml
file to the newly create one (as see you can see in the image below.Well that's it! At least for me that solved and immediately started getting data!
Hope this works for you, and also can help someone else!
Good luck!
Some documents which may help:
According to 1 the protocol version which must be used for the EP inverters is SOFAR-G3. The second document contains the register mapping.
Hi @miralpeix
I had a similar issue, in fact pretty much the same I believe, but mine is the HYD 3000-EP Sofar. Also with similar firmware version.
Your post push me to find and search a bit more on the solution. And I think I got it!
On the 'original' home assistant solarman repo there a "sort of new file", that doesn't show on the "Automatic Config wizard". That file is this one: hyd-zss-hp-3k-6k.yaml
By attempting manual configurations, I got my HYD 3000-EP Sofar working in HA!
So after that success, I looked into getting that specific configuration
.yaml
onto this own repo/solution.So here a the simple steps you can follow to attempt to replicate my results:
Prerequisites:
- Installed file editor on HA
Steps:
- Install
davidrapan/ha-solarman
on HA through HACS- Normally configure your options as prompted, don't worry about the
.yaml
file for now! Just select a random one!- It will say that there issues attempting to connect to your device, etc.... Normal behaviour!
- Go to the file editor. From the root folder follow the path to:
/homeassistant/custom_components/solarman/inverter_definitions/
Create a new file and name it whatever you want, ending of course with
.yaml
- Personally I preferred to choose the same file name, from where we will copy it's contents:
hyd-zss-hp-3k-6k.yaml
- Copy/Paste the contents of this file from
StephanJoubert/home_assistant_solarman
into our newly created one: hyd-zss-hp-3k-6k.yaml- Now go back to the configurations of Solarman (
Settings
->Devices & Services
-> on tabIntegrations
->Solarman
- Onto the
Devices
section clickConfigure
and change the.yaml
file to the newly create one (as see you can see in the image below.![]()
Well that's it! At least for me that solved and immediately started getting data!
Hope this works for you, and also can help someone else!
Good luck!
I can't believe it! WORKS!!!!!
Great!
Anyway @miralpeix, this repo also contains that file. It's called: zcs_azzurro-hyd-zss-hp.yaml
Try to load it with that one so you don't have to use your custom one. Also cause we have different place where to store custom profiles.
Have fun!
Thanks David and all the community for the amazing support. A friend here
I can add it also under sofar brand if you want. :)
I can add it also under sofar brand if you want. :)
all that I can contribute, please, will be happy!
I added your device in the supported list https://github.com/davidrapan/ha-solarman/wiki/Supported-Devices
Can you please confirm it is also working with that file? Thank you!
Yes, works perfectly too
Awesome!
@githubDante? So that CRC Error was just for trying to read incorrect registers?
I will try later today that file you spoke too @davidrapan, but great if soo!
Glad I could help @miralpeix ! 😄
@githubDante Thanks for closing that issue too. Indeed it was "just as simple" as changing and testing all alternatives of protocols and registers I could find, and find one that worked, thankfully!
Have a nice day you all!
Awesome!
@githubDante? So that CRC Error was just for trying to read incorrect registers?
@davidrapan yes. In fact the packet does no contain a CRC code at all.
Dear friends
After a week trying different things to connect HA with my solarman inverter… I need some help.
Current setup:
Inverter: HYD 6000-EP sofar
As first option I have tried to use the SOLARMAN INTEGRATION, however all devices are show as “unknown”.
Following another recomendations I have tried in oder to solve:
Now thanks a one good recommendation im trying to use the https://github.com/davidrapan/ha-solarman
But the problem is here again, here the screenshots and attach the log
I feel like it is impossible to connect with my logger from any way using HA. 5.log
Some recommendations?? I’m about to surrender after this week…