solaredge_modbus icon indicating copy to clipboard operation
solaredge_modbus copied to clipboard

KeyError on example.py

Open icepick3000 opened this issue 3 years ago • 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

icepick3000 avatar Jun 09 '22 05:06 icepick3000

This means you are not connected to the inverter.

nmakel avatar Jun 09 '22 19:06 nmakel

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.

icepick3000 avatar Jun 09 '22 19:06 icepick3000

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.

nmakel avatar Jun 09 '22 19:06 nmakel

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.

addiejanssen avatar Jul 09 '22 14:07 addiejanssen