derenback / Domoticz-SMA-Inverter

A Domoticz plugin for SMA solar inverters
GNU General Public License v3.0
2 stars 1 forks source link

Error on restart - Index Error - when altering the Unit 4 kWh #23

Closed Csepp closed 1 year ago

Csepp commented 1 year ago

Dear Derenback,

When adding a new SMA to Domoticz with our Plugin all goes well (latest version). But on the first restart it stops:

'onStart' failed 'IndexError':'list index out of range'. Exception tracback: Line 127 in ....plugin.py' function onStart 'onHeartbeat' failed 'NameError':name 'client' is not defined'

-->>> now I found the reason - I did move the kWH to another unit nr. then 4 --> as the unit 4 is processed differently it causes this error. Now I changed the unit Nr. 4 to be the kWH counter. All works. --> my mistake. Just wanted to share it.

Seppl

derenback commented 1 year ago

OK, thanks for the update.