Smart understation