snaptec / openWB

openWB - die modulare Wallbox
https://openwb.de
GNU General Public License v3.0
341 stars 205 forks source link

Bug: OpenEMS Counter/Inverter not working properly #2813

Open martingruening opened 5 months ago

martingruening commented 5 months ago

Setup:

Error Message in Status on the Counter and Inverter:

`Modulmeldung:`
<class 'TypeError'> unsupported operand type(s) for *: 'NoneType' and `'int'

Result:

Log:

2024-02-01 06:20:20,345 - {modules.common.fault_state:55} - {ERROR:device0} - openEMS Zähler: FaultState FaultStateLevel.ERROR, FaultStr <class 'TypeError'> unsupported operand type(s) for *: 'NoneType' and 'int', Traceback: 
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/modules/common/configurable_device.py", line 36, in __call__
    self.__updater(components_list)
  File "/var/www/html/openWB/packages/modules/devices/fems/device.py", line 32, in update_components
    component.update(session)
  File "/var/www/html/openWB/packages/modules/devices/fems/inverter.py", line 21, in update
    power = scale_metric(response["value"], response.get("unit"), 'W') * -1
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'