Smart-grid technology