Skip to main content
Vincenzo Ceccarelli Grimaldi

Distributed energy resources

DERIM

Open-source middleware that connects heterogeneous DER hardware to smart grid applications through a normalised Common Information Model (CIM) data layer.
Public, open sourceLicence: MIT

Status

Public repository with a published roadmap in the README. The README lists further adapters (for example DNP3 and IEC 61850) and a WebSocket API as future work.

Problem

Solar inverters, battery storage and EV chargers report through different protocols and data formats. Applications that need a consistent view have to rebuild the same integration layer each time.

Approach

Protocol adapters (Modbus, MQTT, SunSpec, OCPP) feed a normaliser that maps data to a CIM-aligned model (IEEE 2030.5 and IEC 61968/61970). A FastAPI REST API exposes it, time-series data is stored in InfluxDB or SQLite, and a digital twin module (LSTM and baseline forecasting, simulation) works on the same data. Built with Python 3.11+, FastAPI, PyTorch and InfluxDB, container-first.

Architecture

DERIM layersLayers from top to bottom: DER hardware (Inverters · battery storage · EV chargers · meters); then Protocol adapters (Modbus · MQTT · SunSpec · OCPP); then Normaliser (Data normalisation and CIM mapping); then Core services (REST API · time-series storage · digital twin engine); then Applications (SCADA · VPP · DERMS · dashboards).DER hardwareInverters · battery storage · EV chargers · metersProtocol adaptersModbus · MQTT · SunSpec · OCPPNormaliserData normalisation and CIM mappingCore servicesREST API · time-series storage · digital twin engineApplicationsSCADA · VPP · DERMS · dashboards

DERIM layers

  1. DER hardware: Inverters · battery storage · EV chargers · meters
  2. Protocol adapters: Modbus · MQTT · SunSpec · OCPP
  3. Normaliser: Data normalisation and CIM mapping
  4. Core services: REST API · time-series storage · digital twin engine
  5. Applications: SCADA · VPP · DERMS · dashboards

Simplified from the high-level architecture diagram in the repository README.

Limits

Adapters beyond the four listed and the WebSocket API are roadmap items. Forecast quality depends on the data supplied; no benchmark is claimed here.

Related