Skip to content

Energy - download data - incorrect header in CSV file #20578

@PengBG

Description

@PengBG

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

Download data in CSV format gives offset in header compared to Energy UI. This happens to all ranges of date selection.
Example CSV data for period April 01 - April 21:
image
Example Energy UI for the same period:
image

Describe the behavior you expected

I expected to see in CSV that colomn D will be marked as "2024-04-01T00:00:00.000Z" to represent 1st day of April
It is exported as "2024-03-31T22:00:00.000Z" data in this colomn D relates to Energy UI for april 1st
If range is day, why we have in header time stamp that starts at 22:00:00... time?
Same happens if you export for a single day, offset is there, data corresponds to Energy UI, but in CSV is labeled wrong

Steps to reproduce the issue

  1. Go to Energy dasboard
  2. Select period day/month
  3. Click 3 dots
  4. Select "Download data"
  5. Open downloaded CSV file
  6. Check colomn headers in file and compare to Energy UI from where you downloaded file
    ...

What version of Home Assistant Core has the issue?

2024.4.3

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Chrome, Edge

Which operating system are you using to run this browser?

Win 10 64-bit

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions