-
Notifications
You must be signed in to change notification settings - Fork 74
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
Multiple inverters #12
base: master
Are you sure you want to change the base?
Conversation
Hi. Thx for the effort. Will have a look at it. As for the devices, my goal was to have one read cycle per ip address in order to prevent possible multiple connections at the same time and have coherent data per time cycle. That's the reason for the hub part. But it's true this solution outgrew a bit by meter 1-3 addition. As for the stub method it's just dummy data I use while developing and not being actually connected to the inverter. |
I just set this up on my multiple inverter system and at first glance it appears to work as expected. I've got a two inverter system with one import/export meter. |
FYI on possible multiple connections thing: the Solaredge inverter will only allow one modbus/TCP connection at a time. Any additional connection attempts will be refused by the inverter, so it's not possible to accidentally establish multiple connections (unless Solaredge changes this behavior). It'll show up in the HA logs if this happens. |
Gday all, is there now a way to setup multiple inverters or just via the manual edit of the config file? |
I've started maintaining a fork with multiple inverter support that I use with my system (2 inverters with E+I meter on unit 1): https://github.com/WillCodeForCats/home-assistant-solaredge-modbus |
I have the same setup but once I try to add integration via the configuration it get the following error "Config flow could not be loaded" Initially it didn't like (init.py) -- Line 76 and after that 526 |
Somehow I did something wrong with the release. Anyway, I checked all the files against what's in my home HA install and re-released it, or just download that one file from the repo. |
So I have integrated V1.3.1-pr12-2 this time around, once in the configuration, selecting 1 inverter and Smart meter works, but when I go for 2 inverters and smart meter, no values will be displayed |
so i just had a look and setup is as per the following RS485-1 has the smart meter with ID set to 2 I cant remember why that is, but I guess that causes the problem? Can I manually change the IDs somewhere? |
Yes, that won't work with the current code. I think many installers set it up that way because the meter default is ID 2, so they think they can't use that ID anymore so they use 3 for the next ID, but they are actually on different RS485 bus. Because I think this might be a common problem I will think of a way to make it work in code. |
comment updated so long story short, its working!!! thanks heaps mate! This is probably a long shot, but I do have a smart relay as well. Is it possible to get consumption from the smart relay as well or is this not covered within the modbus protocol.? orriginal post you are right, I just set the second inverter to 2 as well, which kicked the smart meter for some reason even though its on a different bus |
Good to hear it's working. The smart relay isn't in the modbus protocol (or at least not documented). From what I read it doesn't seem like it has separate metering, just load control based on other data. |
The main purpose of this is to address point 1 of the feature request I put in #5 for multiple inverters. However, it may also help with the recent request in #8.
Firstly, I must apologise for not getting back to your reply to my #5 feature request. It's great that you and @miguelrjim have added the meter functionality. However, the feature for multiple inverters is still required for me. You suggested that I could add another integration pointing at the second inverter. However, in my case I have two inverters that are physically connected in a master\slave combination on the RS485 bus (I think!). Only one of the inverters has an IP address. The second inverter is read using the unit number set to 2 (as per #8 request). The code still works without issue for the more standard single inverter install too (albeit with a prefix for the inverter for each sensor in the same way as the meters)
There are some questions I had about sections of the code and happy to discuss with you. Also, it may be better to separate the second inverter out to a second device but I followed the existing meter implementation. Again happy to discuss. Also, happy to adapt to cover #8 fully if that helps.
Thanks again for this great solaredge_modbus integration for HA. Hope this helps.