Spent hours with energy dashboard - how to get monthly costs?

Have a look at this posting and also the follow ups where simplifications are suggested. No need for HACS components to do what you want