How to import historical energy data

Would this also work for importing historical energy costs? Worked perfect for my total energy usage but the energy cost history doesn’t populate on its own.