home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.11k stars 29.17k forks source link

Edit energy dashboard I get unknown error #121033

Closed timpauladams closed 2 weeks ago

timpauladams commented 3 weeks ago

The problem

I’m trying to edit the energy dashboard It just says unknown error If I remove the energy file then the error goes away And I can make modifications to the energy dashboard but I can’t save any changes as there is no file. I’ve tried creating a new blank file with the same name but then the unknown error comes back.

What version of Home Assistant Core has the issue?

2024.6.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

rb-nbb commented 3 weeks ago

Same problem with HA Core 2024.7.0

Toolhead commented 3 weeks ago

Same her since updating to 2024.7

Freddy315pk commented 3 weeks ago

Same here since 2024.7. There's also no updates on power consumption or production on the energy dashboard but the counters for all relevent sensor are working when I check their history.

ChristophCaina commented 3 weeks ago

can you please check, if your energy dashboard stopped recording data around 04:00 am ? If yes, please test the following:

restart HA - wait... If the dashboard should record again, run the service reorder.purge

and monitor, if the energy dashboard stopped recording again.

If so, you need to restart HA again... In this case, this is a known issue... and will be fixed with 2024.8.0 as it requires some database migration jobs... (as far as I understand)

as a workaround, you can disable the auto_purge from the recorder in your config.yaml

recorder:
  auto_purge: false

https://www.home-assistant.io/integrations/recorder/#auto_purge

jasonwragg commented 3 weeks ago

Do you have iCloud3_v3 installed? if so its possible causing the problem!

https://github.com/gcobb321/icloud3_v3/issues/308

doing this: https://github.com/gcobb321/icloud3_v3/issues/308#issuecomment-2208242535 fixed it for me.

timpauladams commented 3 weeks ago

Do you have iCloud3_v3 installed? if so its possible causing the problem!

gcobb321/icloud3_v3#308

doing this: gcobb321/icloud3_v3#308 (comment) fixed it for me.

No I don’t have it

timpauladams commented 3 weeks ago

can you please check, if your energy dashboard stopped recording data around 04:00 am ? If yes, please test the following:

restart HA - wait... If the dashboard should record again, run the service reorder.purge

and monitor, if the energy dashboard stopped recording again.

If so, you need to restart HA again... In this case, this is a known issue... and will be fixed with 2024.8.0 as it requires some database migration jobs... (as far as I understand)

as a workaround, you can disable the auto_purge from the recorder in your config.yaml

recorder:
  auto_purge: false

https://www.home-assistant.io/integrations/recorder/#auto_purge

Can you give me step beep how to check this pls?

Thx in advance

ChristophCaina commented 3 weeks ago

if you go to the developer tools, then service, you can call the service recorder.purge after running this, the recorder might stop working, so you would not see new bars in your energy dashboard.

if this is the case, you need to set the above command in your configuration.yaml.

If you don't know how to do this, you can also create an automation that would restart your host after the auto_purge (which will be triggered around 4:00 / 4:15 am

timpauladams commented 3 weeks ago

Same issue 😢

bdraco commented 2 weeks ago

duplicate of https://github.com/home-assistant/core/issues/117263

home-assistant[bot] commented 2 weeks ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (recorder) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `recorder` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign recorder` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


recorder documentation recorder source (message by IssueLinks)