-
Notifications
You must be signed in to change notification settings - Fork 42
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
Parent Inverter Modbus TCP not working #64
Comments
Looks like this should work. Have you grabbed the latest version from github? A commit from 10 days ago, which isn't in the pypi release yet, should have fixed this. Edit: this is the commit in question. |
You were correct, It did fix the issue. However the meter is now empty. While it worked perfectly before. It detects "Meter1" but return an empty dict. Any chance you would know why ? |
Would you mind trying it explicitly, through the intepreter for example, to rule out any funny business with your looping and dict assignments?
|
Yes sorry, it was not clear. But I am always testing with the example given on the git.
|
I understand. But what I'm asking you is to run through all of the steps one by one. This way we can see where and when things go wrong. Perhaps somewhere a |
I can confirm after several tests that this is only due do adding these lines:
Problem: Meter is not read correctly. and return empty dict. Thus by looking in places where unit is used for meter, we should find out the problem. Note : In my case the Meter is on unit=2 Regarding the previous steps:
|
I am having a similar issue. the problem is that in the above lines:
If unit is anything other than 1 then it is false. Here is the output form the python console:
This makes the 2nd inverter inaccessible if trying to access two inverters (via a parent) in the same program. It works with example.py if you pass a unit of 2 as there is no parent in that case. |
If you change the lines:
to
it corrects the problem. |
I am trying to query a system with 2 inverters.
If I run the example script with each unit (1 & 2) then it is working.
However the following code does not work and query twice the inverter 1.
I notice that if I change the order in the list I then get twice the inverter 2.
In other word I get the 1st inverter in the list twice and never the 2nd one.
If that normal behavior ? How should I use parent parameter ?
Thanks
The text was updated successfully, but these errors were encountered: