Hi Ghada,
OpenEMS Backend adds a ‘tag’ edge to distinguish the source Edge. You can use a query with a WHERE
clause like this:
SELECT mean("_sum/GridActivePower") as "Grid"
FROM "data" WHERE ("edge" = '1') AND time > now() - 24h GROUP BY time(5m) fill(previous)
The edge tag is added here in the code:
Regards,
Stefan