Skip to content
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

KeyError on example.py #54

Open
icepick3000 opened this issue Jun 9, 2022 · 4 comments
Open

KeyError on example.py #54

icepick3000 opened this issue Jun 9, 2022 · 4 comments

Comments

@icepick3000
Copy link

When I run the example.py I get this error;

Registers:
Traceback (most recent call last):
  File "./example.py", line 46, in <module>
    print(f"\tManufacturer: {values['c_manufacturer']}")
KeyError: 'c_manufacturer'

Any ideas?

Alex

@nmakel
Copy link
Owner

nmakel commented Jun 9, 2022

This means you are not connected to the inverter.

@icepick3000
Copy link
Author

I found out from the solaredge manual the modbus can only be reached over ethernet.. so i plugged in ethernet and the script now works 50% of the time.
Do you know if there is a limit of the number of calls you are allowed to make to the modbus?I was making one every 15 secs but it seems to lock me out after a while.

@nmakel
Copy link
Owner

nmakel commented Jun 9, 2022

I found out from the solaredge manual the modbus can only be reached over ethernet.. so i plugged in ethernet and the script now works 50% of the time.

Depends on whether you're using the rs485 interface or ethernet. Solaredge supports both modbus tcp over ethernet, or modbus over rs485.

Do you know if there is a limit of the number of calls you are allowed to make to the modbus?

There is no rate limiting. Only a single modbus tcp connection is allowed.

@addiejanssen
Copy link

I had the same issue with the example. The issue was caused by timeouts.
Try adding --timeout 30 to the command line and see if the issue remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants