nmakel/solaredge_modbus

KeyError on example.py

icepick3000 opened this issue · 4 comments

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

This means you are not connected to the inverter.

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.

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.

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.