How to change a sensor to an "energy" sensor for energy dashboard

English only please.