Create a sensor with 'old' values

If your goal is to create a graph, take a look on how @p1ranha solved this for a similar use case using Apex charts: Tibber sensor for future price (tomorrow) - #23 by p1ranha