nmakel / solaredge_modbus

SolarEdge Modbus data collection library
MIT License
141 stars 33 forks source link

Incomplete information example.py #49

Open artur5236 opened 2 years ago

artur5236 commented 2 years ago

Hello, I used example.py script and get only below information: ` python3 example.py 192.168.1.80 1502 Inverter(192.168.1.80:1502, connectionType.TCP: timeout=1, retries=3, unit=0x1):

Registers: Manufacturer: SolarEdge Model: SE6K-RW0TEBNN4 Type: Three Phase Inverter Version: 0004.0014.0107 Serial: ###### Status: Producing Temperature: 19.79°C Current: 2.71A Traceback (most recent call last): File "/home/pi/solaredge_modbus/example.py", line 57, in print(f"\tPhase 1 Current: {(values['l1_current'] * (10 ** values['current_scale'])):.2f}{inverter.registers['l1_current'][6]}") KeyError: 'l1_current' `

artur5236 commented 2 years ago

Issue resolveed

nmakel commented 2 years ago

Hey Artur, was there an issue that needs to be fixed?

artur5236 commented 2 years ago

It was my mistake, I used old version solaredge_modbus package and newest example.py file. When I upgraded solardge_modbus to new version, issue was reselved.

mqu commented 1 year ago

this issue may be closed. Thanks.