Energy tracking: Import historical consumption data

@

If you have all the data on Enedis, why not use the Enedis integration in Gladys? :slight_smile:

Otherwise, yes it is entirely possible to insert these data into the database via MQTT!

If you create a virtual device in the MQTT integration, and you publish to:

gladys/master/device/:device_external_id/feature/:device_feature_external_id/historical

With the body:

{
        "state": 100,
        "created_at": "2023-10-15T10:30:00.000Z"
}

This will create a historical value at that date :slight_smile:

For

Normally if you disconnect and then reconnect to Enedis you’ll have your data from the start :wink: