Implement a new Device to Backend

Yes, Edge sends a EdgeConfig object to UI, that holds information about all Natures, Components and Channels. This is used to dynamically build the UI.

This is not the way OpenEMS Edge works. OpenEMS always calculates the Consumption from measured Grid, Production and ESS. If any of those is not there, it is assumed to be zero. The code for this calculation is here: https://github.com/OpenEMS/openems/blob/develop/io.openems.edge.core/src/io/openems/edge/core/sum/SumImpl.java#L359-L360C24

In your case, you would have to simulate a Grid-Meter. You can use Simulator.GridMeter.Reacting: https://github.com/OpenEMS/openems/blob/develop/io.openems.edge.simulator/src/io/openems/edge/simulator/meter/grid/reacting/SimulatorGridMeterReactingImpl.java

Regards,
Stefan

1 Like