Implementing a UI-Widget

Hello OpenEMS community,

As the title, how can I add widgets like voltage or current of meter device to UI interface?

And tell me how it works when I select metertype.grid or production, can the UI show widgets like grid, production, consumption or the pie chart?

Thanks