Quality infrastructure for smart mini-grids