-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solarman DDZY422-D2 #187
Comments
about the log details, If you could explain how to extract them it would be helpful and I would be able to past the code here. thanks ! :) |
Hi @bobybob69, like this: |
Hi @davidrapan Thanks for looking at the thread it was running on my screenshot but I didn't understand the file was downloading when clicking on stop 😅 please found bellow the log file home-assistant_solarman_2024-10-02T19-02-14.489Z.log.zip Let me know if you get everything thanks for looking at it ! and let me know if you need anything else to help |
Extracted flow from the log file:
Hi @githubDante, Exception with code 05 (0x05) | Acknowledge. Does it says anything useful? The profile is made for D3 version so it can be just about incompatibility but I'm curious what are your thoughts? |
Hi @davidrapan, Incompatible profile 100% - wrong start address or quantity |
Thanks @githubDante, So you will have to try probe registers using built-in service for reading and create new profile for your device @bobybob69 |
Hi @davidrapan and @githubDante thanks for looking at the log. Well, I'm not familiar with that. After comparing D2 and D3 it seems like it's just difference of power distribution (simple-phase or triple-phase) Let me know I would be more than happy to help learn and implement that with one of you guys Thanks for helping |
Let me know if there is anything I could do to help integrate the D2 guys Thanks ! |
It's quite simple. You just have to copy for example inverter_definitions/solarman_dtsd422-d3.yaml into inverter_definitions/custom/solarman_ddzy422-d2.yaml
And you will have to find those register which shows matching values in the Solarman App. Sadly without documentation there is no other way than trial and error. |
hi @davidrapan , thanks for the tips ! I try to do the copy / paste yaml parts. But the integration mark an error (see bellow) , I attach also the log. Since the integration failed, there is nothing more for me to do using the Developper ACTION parts .. ? Any tips that I could try to implement the D2 ? Thanks ! |
It's not relevant during this process and you can ignore it. Using ACTIONS will still work. |
Bellow are the log after adding the proper modbus register but I still have an issue.. Any thought @davidrapan ? |
According to the log requests to your Smart Meter still contains invalid addresses. |
Humm... progress but still some errors.. any thoughts @davidrapan from where I can found these modbus register ? any macOS tools I can use to read theses address using the IP ? I sent an email to see if they have theses for me as there is nothing on the user guide unfortunately I found these on the net , what do you think ? |
Yeah it's not publicly available information and not sure if solarman will be willing to provide the docs.
I told you using the ACTIONS through this integration. That is the best tool you can get.
I don't have the device so I can't really tell. But take it slowly. Just start even with single sensor defined in the file with registers you verified that works using said ACTIONS. 😉 |
Found this through google Edit: oops, looks like @bobybob69 found it too, sorry |
Hey @davidrapan @githubDante If I understand, There is an action I use to read values , but how can I read values from a devices that's not listed of even setup ? From what I understand from your previous message Bellow is what I'm seeing from the actions section when I choose reading value code 4 : Here's my config for the smart meter : I'm not familiar with the modbus things so sorry if I'm asking basic questions :) Any tips would be helpful :) Thanks guys ! |
I told you that you have to setup the device first. And ignore when it shows errors. Then try read different registers and find those which works... |
I'm sorry if I don't understand but I just want to make I understand what you say @davidrapan
Did my thinking is on the right way ? If no please let me know Thanks for your help I will owe you a coffee at the end 😜 |
I'm saying again. it does not matter if it shows errors. IGNORE THEM! Just add it so you can use the ACTIONS. Thats all. |
hey guys @davidrapan @githubDante , I just get an answer from solarman, does this helps ? Single Phase meter DDZY422-D2 parameters_1728884136958_yiy4p.pdf |
To be faire @davidrapan , I should miss something.. I'm sorry. When you say "if it show error ignore them" what do you mean ? Here's the status of the meter actually How can I ignore this error ? Even in this state, iit doesn't appear on the action menu .. :( |
What I mean is that even you see error ACTIONS will still work so you just can leave it as it is. |
Well @davidrapan , don't ask me how, I change few line on the code (helped by ChatGPT) and now the smart meter is added now when I'm in the action menu what would be the best to troubleshoot each register ? I think I'm not using the correct syntax for the register .. ? what about this screenshot, I'm on the right way ? thanks for helping |
Yes you are. That means that you just can't read register number 1 so you need to continue with 2... and so on. But to be 100% sure I would also try reading using Modbus Function Code 3 (it has separate service for that). |
hi @davidrapan , hope you're well ! all of them failed with the same error : Échec de l'exécution de l'action solarman.read_holding_registers. V5 frame does not contain a valid Modbus RTU frame I don't understand at all what could be the issue. Any thought / Tips ? I was looking for an app that could read modbus from the solarman smart meter, but I don't found anything else. Perhaps there is something wrong on the config no ? Here's the code I try to set and that made the smart meter being available on HA without error as shared previously If @githubDante you also have thoughts to help don't hesitate to share :) Thanks guys for your support Solarman Smart Meter DDZY422-D2default: requests:
parameters:
|
There are two ACTIONS for reading:
Did you also tried with the other one? |
Hey @davidrapan , yes I try with both methods. How can I be sure the meter is reachable from HA after I set it up ? The IP if a fixed one so I'm 100% sure this is the good one. What I'm less sure is the YAML for the config. What's your thought ? Thanks and have a great day |
You did it correctly! Enable debug log and upload the file. |
I can't see in the doc to which memory area are the registers mapped so maybe it's worth the shot to try 0x04. Try to replace that default section with:
|
hi @davidrapan , So if I understand, we are just looking for the correct memory right ? and for you, all the rest of the config is ok 👍 |
Yeah well if it's not even working with this minimal yaml file (which is was made using xlsx file you provided)... I'm afraid that there is something else going on which is outside of our reach. I'm out of ideas... there is proly not much we can do, right @githubDante? |
Why don't you try with the registers from the XLS file e.g. from 0x105 to 0x107 ? It's a 6 byte Date&Time. |
Okay, try this one:
|
hey guys @githubDante @davidrapan just tried now, and still same error message ... "Echec de la configuration, nouvel essai: [2616102558] V5FrameError: V5 frame does not contain a valid Modbus RTU frame" please found bellow the logs (in the meantime It can maybe help for #203 as logs turn all day until it turn off when I restart HomeAssistant during no solar production) home-assistant_solarman_2024-11-04T20-14-28.300Z.log you confirm when I made the change from the config file, I restart HA instance and I re-set the meter ? thanks guys |
Uhm but you don't have that device (2616102558) configured w/ I see it configured with |
Hummmm strange I double checked, it's configured with the right profile.. See logs bellow |
just so you know, I deleted the devices and I re-install it properly .
|
Yes now it uses correct one. Unfortunately w/ the same result.. 😞 |
can it be the port that cause issue ? by default 8899 ? Any troubleshoot I could do locally ? |
No, it's not the port. The smart meter is responding with an error/exception code, which means that the request is wrong (wrong address/wrong function).
The best you can do is to request the proper/full MODBUS documentation for the smart meter from IGEN. Apparently the one in the XLS file is wrong and incomplete. |
hi @githubDante , how are you ? I got answer form the support team of solarman, and they confirm the file is the good one.. what can we do to integrate it ? from where the issue can come from ? :/ |
Did you mentioned what responses are we getting from the meter? |
hi @davidrapan , just answer back to their message adding the error message we're facing and I'm waiting for their answer.. will share it with you as soon as I got the answer |
Hello, I am new to Home Assistant, but if you can explain what tests I can do to add my logs as well, if I can be of any help, it is an issue I am interested in solving. I have done some of the tests you mention here, but for example in Actions I can't find the Solarman action. How come? Also in configuration I can't find the files I create from file manager. Despite this when I then review the device configuration it seems to be reading the zcs_blue-ktl-v3.yaml file I started from. By reading or log I realized that I used to get an error because I was using the external HA url with *.duckdns.org, but then they resolved the moment I started using the local one. Thank you |
Show me a screenshot where did you put the file. |
You are not running this integration. |
Sorry, I didn't understand your comment. What should I do to run it? I am reading more of your discussions. I need to perform these steps: #61 |
@teoJam hi mate ! Yes you should perform theses steps #61 and then install the good SOLARMAN integration from @davidrapan Since I did multiple troubleshoot, I decided to remove the SOLARMAN smart meter and I order 2 HomeWizard single phase meter to mesure house consumption and solar production. It would be more stable for me and my needs Hope at some point the integration for the D2 will works and I would be able to put it back for other measurement :) |
I'm not sure if you are having the same "issues" but you certainly need to remove that older one from HACS and then install this one using the big blue button in the readme. |
Thank you for the support. I downloaded the right version. Right now the configuration is going Right now the logger and inverter are off for two reasons. 1 because they have yet to hook it up to the grid for me, 2 because it would only work when the strings start producing anyway. why there is a Broadcasting on IPv4Network('172.30.232.0/23')? Grazie |
Yes this is the usual output of every attempt we had so far... Maybe you could try register scanner from pysolarmanv5 Edit:
This is device discovery and sends a Solarman-specific packet to which their devices responds. Packets are sent to all Edit2: You can review the implementation here: solarman/discovery.py |
It's my same problem, I get the same errors as the colleague bobybob69, in my case I have managed to integrate my sofar 5ktlm g3 inverter by reading the solarman usb stick logger, but I have no export readings to the network or consumption of my home, I am still trying to integrate solarman ddz422-d2, to obtain that export and consumption data, the same error codes as the colleague |
Hello @davidrapan , I'm new to home assistant and I can't integrate my DDZY422-D2 even though my 2 DEYE inverters are OK. Here is the error message I got. |
Hi all Same here I would like to add my smartmeter solarman DDZY422-D2 but dont know how to build the yaml. in addition I think we Will have a problem because when we go on the web interface of the smartmeter we reach it but don’t have any data … whereas we have data using solarman app… however someone looks to manage it using ESP, hope it helps |
It looks like these are the same registers as in the excel file, but we were unable to read them using the solarman protocol. |
Describe the bug
A clear and concise description of what the bug is.
I try to install my Solarman DDZY422-D2 Smart Meter using the integration ha-solarman.
When setting everything up, I got an error message "Échec de la configuration, nouvel essai: [SERIALNUMBER] Querying IP-ADRESS:PORT failed: [0, 0]."
Attach the debug log
As a file or using the 'code' formatting.
To Reproduce
Steps to reproduce the behavior:
From the setting, add an integration
set your IP address
Port
Serial number
select solarman_dtsd422-d3.yaml
apply setting
Wait for the confirmation and notice the error message "Échec de la configuration, nouvel essai: [SERIALNUMBER] Querying IP-ADRESS:PORT failed: [0, 0]."
Expected behavior
A clear and concise description of what you expected to happen.
I don't know if it's the right configuration path as it's the D3 on the choice list
Screenshots
If applicable, add screenshots to help explain your problem.
Metadata:
Version: 24.09.27
Additional context
Add any other context about the problem here.
I don't know if it's a bug report or if it's a request feature to add the configuration .yaml for the D2 smart meter (I thought D2 / D3 where the same.. ?)
The text was updated successfully, but these errors were encountered: