I didn't find any official or clean way to import data in a device history.
Domoticz documentation explains well the Update device function but it can only be used to set a value for the current datetime.

What is the best way to do that from a python plugin?
Thanks a lot!!