What time value does the Energy Dashboard use

Hey all,

I have a bunch of energy meters sending data to home assistant via mqtt.
The json payload for each meter looks like this (obviously Device-ID is unique) :

{"Device-ID":"Meter-3P00034","D31":53667004,"Time":"2025-11-15 12:41:31"}

I configured these as sensor on config.yaml like so:

   -  name: "Meter 34"
      unique_id: meter_34
      state_topic: "energy_meters/34"
      value_template: "{{(value_json.D31)/1000 | round (2)}}"
      json_attributes_topic: "energy_meters/34"
      expire_after: 300
      device_class: energy
      state_class: total_increasing
      unit_of_measurement: kWh
      icon: mdi:meter-electric

I’m using the energy dashboard to show kWh for each meter. My big question is, what time value does the dashboard use? Does it calculate hourly, daily, etc. usage based off home assistant’s timestamps? (ie. time at which sensor data arrived on home assistant) or is it based off time values the sensor sends (ie. the timestamp in the json payload)? I ask because when there’s no WiFi on-site, each meter stores data on a sd card and then transmits stored data once WiFi is available again before sending live data. So for eg., if I receive meter data now, it very well could be historic data (eg. from yesterday), but will the Energy Dashboard know that?

Thanks.

As far as I know, HA uses the time of the update. You can push historical values via the API, but I cannot remember now what happens with longterm statistics. There are some topics on that subject.