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
69.94k stars 29.03k forks source link

Energy Dashboard not work anymore #121282

Closed Destroyer061090 closed 6 days ago

Destroyer061090 commented 1 week ago

The problem

after last update to HA 2024.07.0 i recognized that the energy dashbord is not anymore update after a certain time during night. after HA restart system restart to work properly.

Today before restart: image

Today after restart: image

yesterday: image

What version of Home Assistant Core has the issue?

core-2024.7.0

What was the last working version of Home Assistant Core?

core-2024.6.4

What type of installation are you running?

Home Assistant Supervised

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

zztopgtb commented 1 week ago

Yep, I've got the same. I rebooted and thought it fixed it but going off your screenshot, it's the same time as mine. I checked the numbers and home assistant seems to be reporitng correct numbers. It may just be an issue with the graphs or energy dashboard? Same for solar production and water usage too. Screen Shot 2024-07-05 at 16 56 16 PM

pikkemans commented 1 week ago

It appears it's not the dashboard but the actual entities behind it.

I got two entities I use for the energy dashboard. They are getting "stale" after the upgrade and also eventually after restarting HA.

image

EDIT: Found related issue https://github.com/home-assistant/core/issues/121232

dbachats commented 1 week ago

Exact the same behavior for me. Hope gets solved soon

ChristophCaina commented 1 week ago

same as #121232

garry0garry commented 1 week ago

The same thing if template sensors is used. Rebooting the HA helps only at the time of rebooting the HA.

nicoducos commented 1 week ago

hello same problem I think it's a statistics recording problem on all equipments not only for energy dashboard

image

in addition the energy dashboard is no longer configurable image

GeraldPape commented 1 week ago

Mine stopped working too after the upgrade. Sensors that accumulate a value over the day are showing the last value before the upgrade. No reset on midnight. Also, the energy dashboard is empty, it looks like it was never configure. Trying to get into the energy dashboard configuration (settings/dashboards) only shows "Unknown error"

pacsabi commented 1 week ago

Mine stopped working as well. Individual energy sensors history shows incorrect data.

DONATO-82 commented 1 week ago

good morning I'm having the same problem too, practically around four in the morning the sensors of all entities go to zero until the home assistant is restarted and they start to register again, now I don't know whether to wait for them to resolve it or restore the core previous 2024.6.4

pacsabi commented 1 week ago

Use the following temporary solution:

https://github.com/home-assistant/core/issues/121164#issuecomment-2210442550

LioBoul commented 1 week ago

Patch 2024.7.1 installed but always the same problem for me (energy dashboard, apex graph, sensors recording). And for you?

ChristophCaina commented 1 week ago

2024.7.1 does not fix the issue. Have you tried the workaround mentioned above?

pacsabi commented 1 week ago

The fix is ​​not in the 7.1 release notes, so it won't fix it. There is quite a lot of movement on the Recorder github page, I think they working on it.

LioBoul commented 1 week ago

2024.7.1 does not fix the issue. Have you tried the workaround mentioned above?

The 2 complet reboot has not fixed the problem. what other solutions? recorder line in yaml (config or sensor)? or solution with icloud v3?

pacsabi commented 1 week ago

'> 2024.7.1 ne résout pas le problème. Avez-vous essayé la solution de contournement mentionnée ci-dessus ?

Les 2 reboot complets n'ont rien donné. Quelle autre solution ? Patch icloud v3? Ou recorder dans le YAML ?

This: https://github.com/home-assistant/core/issues/121282#issuecomment-2210681030

LioBoul commented 1 week ago

'> 2024.7.1 ne résout pas le problème. Avez-vous essayé la solution de contournement mentionnée ci-dessus ? Les 2 reboot complets n'ont rien donné. Quelle autre solution ? Patch icloud v3? Ou recorder dans le YAML ?

This: #121282 (comment)

Already the same with the 2 lines in config.yaml (recorder: auto_purge: false) and quick reboot :-( Other solution ?

Capture d’écran 2024-07-05 201201 Capture d’écran 2024-07-05 201124 Capture d’écran 2024-07-05 201044 Capture d’écran 2024-07-05 201028

ChristophCaina commented 1 week ago

Are you using one of the following Integrations?

https://community.home-assistant.io/t/psa-2024-7-recorder-problems/746428

LioBoul commented 1 week ago

Yes. iCloud v3 and after disabled, it's ok :-) Existing a patch for iCloud ?

LioBoul commented 1 week ago

I have find this 👍 https://github.com/gcobb321/icloud3/issues/349 Tks @ChristophCaina et @pacsabi :-)

Damrak2022 commented 1 week ago

Sorry for using Google Translate, but my English is no longer good enough. Nothing is displayed in my energy dashboard either. Not even after the update to 2024.7.1 Do I understand correctly that this may be related to iCloud V3? Should I wait now or do I have to uninstall iCloud V 3?

LioBoul commented 1 week ago

Sorry for using Google Translate, but my English is no longer good enough. Nothing is displayed in my energy dashboard either. Not even after the update to 2024.7.1 Do I understand correctly that this may be related to iCloud V3? Should I wait now or do I have to uninstall iCloud V 3?

You didn't have to uninstall icloud v3 but you could paste this file in you config (in the good folder!), follow the instructions and don't forget to restart HA 😉 https://github.com/gcobb321/icloud3/issues/349#issuecomment-2208398378 It's OK for me 👌

Damrak2022 commented 1 week ago

Sorry, I'm sorry, but I still don't understand. Do I have to insert this code:

if hass.data.get('recorder_prefilter') is None:

rp_data = hass.data['recorder_prefilter'] = {}

rp_data['injected'] = True

rp_data['legacy'] = True

rp_data['exclude_entities'] = []

try:

ha_recorder.entity_filter._exclude_e.add(entities)

return True

except:

pass

rp_data['legacy'] = False

if _inject_filter(hass) is False:

return

somewhere. And if so, can you please tell me exactly where I have to insert it, i.e. which folder and at which location. I'm really sorry, but I don't know much about these things yet, or I don't understand them yet. I would be grateful if you could explain this to me in a way that I can understand so that my energy dashboard works again.

Best regards, Andy

bdraco commented 6 days ago

op's issue is a duplicate of https://github.com/home-assistant/core/issues/117263

icloud3 issues are a different problem

home-assistant[bot] commented 6 days 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)

DONATO-82 commented 4 days ago

Good evening, I see that a new version of the 2024.7.2 core has been released. Do you know if the problem of the energy dashboard and everything else connected has been resolved??

pacsabi commented 4 days ago

According to release notes yes. I deleted the config changes and upgraded HA a few hours ago, everything looks OK

Damrak2022 commented 4 days ago

Yes, my Energy Dashboard is working fine

DONATO-82 commented 3 days ago

Good morning, did your energy dashboard behave well after last night? Can you confirm me so I can also update to version 7.2, thanks

dbachats commented 3 days ago

unfortunatelly the problem persists even after the 2024.7.2 update