Sensor that returns "old" data (2 days ago). How to configure or insert?

I’m trying to add a sensor that measures my electric consumption but my provider only provides data after 2 days. I can only get the data from 2 days ago and no the current consumption so the standard sensor will save the values as “now”.

What’s the best way to add this data and tell Home Assistant when the data is from?. Is this possible?. I can get the data from a REST API or I can make an script to return the data.