-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
"Wired" connection support? #310
Comments
Hi @voed, comment:
to test if your use case even works and let me know. |
Did not helped much, now i am getting "Device loading failed [TimeoutError]". |
Show me the debug log. 😉
No, it does not use pysolarmanv5. |
Oh, my bad, i guess it is using pysolarman only for connection via stick, not modbus.
That's all what i have in the logs. |
You need to enable debug logging. |
Oh, and if forgot to mention that addon is using inverter SN for connection, not the stick SN |
That's all? If so then you are not listening on the port. 😉
Does not matter if it talks modbus tcp... it does not use serial at all. |
But i am, it connects fine from the addon.
|
Try:
switch it to True. And give me whole log file, because if it listen it has to at least connect and send some data. And I can't see that it is doing just from log snippets. 😉 |
Here, check please. |
So there is communication... you did not see it? It even successfully reads registers 0 - 22. It fails afterwards when it requests registers 0 - 112. Doesn't have that gateway or anything along the way some limitation how big the request can be? Edit: It replies w/ GatewayTargetDeviceFailedToRespondError that is problem between gateway and rs485. |
Then find out if the requests are not too big. Copy deye_string.yaml under custom folder and add to default section:
then configure device with that file and serial number set to inverter serial number. |
More info about the exception from mbusd:
|
No you used serial of stick. If you use serial of stick = discovery works and it gets IP from discovery. |
Oh, yes, initially i forgot about that and used SN of stick. |
Anyway, it looks like there won't be any changes necessary for it to work. |
Hi. Tested with passthrough = true and max_size: 20 and it works! With passthrough = false does not work. |
So I was right about the limited quantity which can be used through that mbusd and rs485. 😉
Maybe because you have string inverter?
Yes it forces the integration to use modbus tcp only which is incompatible w/ solarman protocol. |
Anyway can you show me debug log file with passthrough = False? Maybe I could make it work through autodetection. Depends on how it responds. |
Uploading home-assistant_solarman_2024-12-10T19-10-54.701Z.log… |
Can you then show me your log when you do connection via stick normally so I can compare it?
You did not wait long enough for the file to upload. 😉 |
I will check it again tomorrow. |
Will you upload the file? |
Yes, i will do that tomorrow, too sleepy already:) |
Hello, sorry for busting here :), but I`m interested in this topic also. |
Hi. As far as i know ESPHome does not have RTU to TCP proxy. But you should be able to do that by something like this |
@voed |
Yes, that's it. |
you can add custom sensors in your configuration.yaml. |
No, i mean a gateway that will relay modbus to the lan network so solarman can read it. |
I would like/do that, but I`m a bit worried I might break something into my ESPHome board.
And on Solarman it looks a bit different ::
The registers part i`m confused a bit : this means PV1 address 672(I have all the addresses in a document, all are numbers)
|
the simplest way i know is to make that sensor in configuration.yaml. template:
in this case i don't really know how the substitutes will work, you want to use actually sensor name. |
Guys it's not related to this isue:) |
@davidrapan mbusd gateway connection with passthrough = False Stick connection with passthrough = False |
Unfortunately there isn't successful connection logged in any of the files. |
Not sure what do you mean, the first one was unable to connect because it needs passthrough i guess, and the second one is a successful connection and still receiving data from the inverter. |
No, this can't affect initialization of the connection. This switch affects later sending of the data.
You are right I accidentally overwrite the file ;) |
Anyway, this is really strange, reading of register 0 in standard mode results in device type detection as 0x3, which is hybrid inverter. And reding over that gateway results in 0x0200, which is string inverter. 😆 Someone is lying here! 😆 |
Just now realized it lol. I thought you are saying that i am colleted not much enough data. Already deleted that log but i am sure it was the same that i have posted today: "Connection reset by peer" and nothing else |
With "Connection reset by peer" it means that it did not even get to the point where it should use that passthrough switch. Edit: In other words there is no |
I got it. No idea how passthrough affects that, but it is what it is:) |
Just copy over Edit: Don't forget to set |
Um, but i am using copy of deye_hybrid profile now🤔 |
So set the |
Looks like 39 is a maximum. |
You should ask the author of that gateway bc it looks like it is changing a lot of things. 😉 |
It's fine, just saying. |
I would argue that changing device type from hybrid to string is not really fine. 😆 |
That means string inverter, every non-hybrid inverter is string inverter. But the most important part is that it does not even report 2 but 512. |
Yes, and? I know why I have it there but I was referring to your example from that addon. Meaning you used as an example something what does not even match the value returned... 😆 |
Is your feature request related to a problem?
I have some issues with grabbing data from the stick, so i decided to connect the inverter via rs485 port. I am not sure if HA provides access to the serial port for the integrations, but maybe at least we can make it work via mbusd?
For now i am getting this error, seems like the integration completely ignores ip and obtaining logger's ip by serial number (.101 is TCP to Modbus gateway's ip which i am trying to use, .65 is inverter's ip).
Describe the solution you'd like
Provide ability to connect by TCP to Modbus Gateway
Describe alternatives you've considered
Dunno
The text was updated successfully, but these errors were encountered: