Insert histrorical values to statistics table?

I would like to insert historical sensor values directly to statistics data table
(SQL Inserts)

Can you please advise if:

  • Would be that safe for HA ?
  • Does HA needs correct ID sequences or (I hope) on created / start fields ?

** EDIT **

For example - my sensor (energy return) has id=46
As you can see below DB has historical entries started from day Ive created that sensor 17.III.2022

Question is if I can safely insert historical records (prior 17th of Match), but obviously with higher IDs

Im mostly interested to add historical energy production / consumption data

Guys - any thoughts on this ?

I’m currently attempting to do the same.

Did you make any progress on this?