Give sensor state a timestamp in the past instead of now

I have a RESTful sensor that grabs data from an API every 5 minutes. The trouble is that the API shows data with a 15 minute delay. So if you want data for now (12:00 PM), you have to wait until 12:15 PM when that data is available (and timestamped for 12:00 PM).

I want to get this data and have Home Assistant understand it as data from 12:00 PM, not 12:15 PM which is the time we grabbed it. Is there a way to do this? In other words, to give new states a timestamp in the past instead of the default “now”?


Same problem here. Any solution?

1 Like

Might have to escalate to the GitHub. I got rid of the integration I was using because of this issue.