Setting (back dating) the timestamp of a sensor read

Hey,

I’m building out a component for Amber Electric (An Australian power retailer): GitHub - madpilot/hass-amber-electric: Home Assistant Component to pull the latest energy prices from Amber Electric

I’m wanting to include a sensor for customer usage - the data is available for every 30 minute interval. The problem I have is usage via the API is from the previous day, and doesn’t become available until around 3am every day.

Does anyone know if it’s possible to bulk insert sensor data and set the timestamp in the past? If I could do that, then users would at least be able to generate graphs that make sense.

I would be interested in an answer to this question as well. Thanks :slight_smile: