-
Notifications
You must be signed in to change notification settings - Fork 33
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
Reading different units through same (master) inverter #19
Comments
I'm assuming from your description that the slave inverters are accessible simply by providing a different modbus address. Because I only have a single inverter I've never been able to test this. However, I've modified the parent logic to allow the unit parameter to be set even if a parent connection is provided. When instantiating a new inverter you will need to do the following:
I'd be interested to hear whether this works. |
That was fast :) I also don't have this setup at my place, but your change is exactly what I meant. Don't know what you mean with 'by providing different modbus address' as the slave inverters don't have their own IP. I'm planning to change the home-assistant integration and use this lib as dependency iso using the raw modbusclient and own register parsing. Your sunspec implementation seems pretty complete 👍 |
I mean I'm curious whether providing a different
Happy to hear you find it useful! |
Should work. Have an open PR by a user who tested it. (binsentsu/home-assistant-solaredge-modbus#12) |
Hi,
I'm the creator of a home-assistant integration for solaredge through modbus. Based on some issues created in my repo, I went to search a better native library than my own... One of the issues talked about in my repo is about connecting multiple slave units through one master unit. The slaves are accessed through IP/Port of the master, and I strongly doubt if for this case multiple connections would be allowed as it's also not the case for eg. meters/batteries . At this time you are already supporting a parent in order to share the modbus client and use a single TCP connection. But at the moment the unit of the parent is always taken over by the child. Do you think it would be an option that another Inverter, which acts as a modbus slave, can be instantiated with a parent (Master) Inverter argument, but without defacto sharing the unitId? I add the setup picture of the solaredge manual to make the situation a bit more clear:
The text was updated successfully, but these errors were encountered: