I’m developing an OpenEMS setup with the following configuration:
ess0: Custom ModbusDevice ESS
Interfaces: ManagedSymmetricEss, SymmetricEss, ModbusComponent, OpenemsComponent, TimedataProvider, EventHandler
meter0: Custom ModbusDevice PV-Inverter (MeterType=Production)
Interfaces: ManagedSymmetricPvInverter, ElectricityMeter, ModbusComponent, OpenemsComponent, TimedataProvider, EventHandler
ctrl0: Custom Controller
Implements a simple ESS charge/discharge control logic similar to ControllerEssBalancing
Occasionally, when starting the application, I encounter the error mentioned above, which prevents the controller from operating correctly. The error does not occur consistently—sometimes the system starts without issue, but if it fails once, it tends to keep failing.
I’ve found that deleting and recreating the ess0 instance via the Apache Felix Web Console Configuration resolves the issue temporarily, but I’m unsure of the root cause.
I suspect the problem may be related to the timing of object initialization, such as EssPower. Is there a recommended way to ensure proper initialization and avoid this error?
For reference, I found a similar topic here, but my setup uses SymmetricEss rather than AsymmetricEss.