Uploaded wrong version...
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
#
|
||||
|
||||
"""
|
||||
<plugin key="SolarEdge_ModbusTCP" name="SolarEdge ModbusTCP" author="Addie Janssen" version="1.0.2" externallink="https://github.com/addiejanssen/domoticz-solaredge-modbustcp-plugin">
|
||||
<plugin key="SolarEdge_ModbusTCP" name="SolarEdge ModbusTCP" author="Addie Janssen" version="1.0.3" externallink="https://github.com/addiejanssen/domoticz-solaredge-modbustcp-plugin">
|
||||
<params>
|
||||
<param field="Address" label="Inverter IP Address" width="150px" required="true" />
|
||||
<param field="Port" label="Inverter Port Number" width="100px" required="true" default="502" />
|
||||
@ -332,9 +332,9 @@ class BasePlugin:
|
||||
Domoticz.Debug("-> looking up...")
|
||||
|
||||
lookup_table = unit[Column.LOOKUP]
|
||||
to_lookup = inverter_values[unit[Column.MODBUSNAME]]
|
||||
to_lookup = int(inverter_values[unit[Column.MODBUSNAME]])
|
||||
|
||||
if to_lookup in lookup_table:
|
||||
if to_lookup < len(lookup_table):
|
||||
value = lookup_table[to_lookup]
|
||||
else:
|
||||
value = "Key not found in lookup table: {}".format(to_lookup)
|
||||
|
||||
Reference in New Issue
Block a user