Store modbus values in new variable

Goodafternoon,

For the last year I have been playing with HA to store relevant usage data from my heatpump. Through modbus various registers can be displayed in HA. The most important are the actual use of power and heat generated measured in kWh.

The controller in the heatpump has memory for 12 months, as soon as an already filled month comes up again the value is rotated and overwritten with the new value.

The solution I am looking for is to look at the time and date and then take these values and transport them over to a variable such as: power_20_09 & heat_20_09. This way it will be possible to create graphs that extend the 12 month limitation of the heatpump.

Is there anyone here that has a similar setup that I could leverage for my installation?

Thanks!