Set energy price for next month

Hi all,
I’m very new to HA. I managed to install and set up a Shelly Pro 3EM. I am using the “shellypro3em-xzy total active energy” in the grid consumption option of the Energy Dashboard.

I receive an email every month with the energy price for the next month. I’d like to set this price when I get the email and then not worry about it. The following month should then be calculated with the new price.

For example, at the moment (October), the price is 13.06 cents/kWh. Now, I’ve received the email with the new price for November, which will be 13.57 cents/kWh. I’d like to set this value in HA, delete the email, and have the correct costs calculated for November.

How can I achieve this?

Thank you.

Btw.: Is there a way to recalculate the last month with the correct price? (I guess I messed it up with my attempts to get this working).

Link the energy price to a helper entity. Then create a second helper entity for the price next month. Now you can create an automation that copies the next month price over to the current one when the next month starts.

Maybe you can use the calendar integration for it as well. This way you’ could manage the prices simply by creating calendar events.

Which helper do I need? The number helper is not working.