There is an community written edge driver for TP-LINK Kasa plugs which expose the power monitoring to routines in ST.