I’m currently running HA on an RPi5 with the following versions:
Core 2025.1.0
Supervisor 2024.12.3
Operating System 14.1
Frontend 20250103.0
A few days ago I made some changes to our primary dashboard. Yesterday, we noticed that the dashboard had reverted to its previous configuration. With me out of touch and unable to remote in, there’s zero possibility anyone else in my house accessed the dashboard and changed it. The only thing I can think of is something (power surge maybe?) caused the installation to revert to a backup of the dashboard.
I had deleted multiple cards and added at least 5 new ones. The 5 new cards were gone, and the old ones came back. Are there any specific logs or files I can check to figure out how the dashboard changed itself back? It doesn’t seem like the whole installation reverted because there are some script and automation changes that remained in tact.
I’m also noticing the dashboard occasionally reverting to earlier versions. Unfortunately, until now I can’t pinpoint exactly, when and why this happens, but I have some suspicions:
I think it’s because I’m regularly working on HA in different tabs or even different browsers on different computers (or my phone).
I’m not sure about this, but I think the culprit is, that the dashboard config is held entirely in the browser on the client and the browser doesn’t necessarily reload the current config from the HA server when you enter edit mode or when re-using a tab where the dasboard already is in edit mode.
This may lead to unknowingly editing an older version of the config retrieved from the browser’s cache instead of the current version on the HA server. On saving a dashboard, the entire config is saved, possibly overwriting changes made in another session with an older version already cached earlier in THIS session.
I’m already trying to circumvent this problem. For example when coming across a tab that’s already in edit mode, I’m always leaving it by deleting the “?edit=1” part in the URL and reloading instead of hitting “Done”.
But of course I’m sometimes forgetting to “Shift reload” HA before editing something and think this is the reason, some changes get lost.
Maybe someone more familiar with the inner workings of the HA dashboard can confirm or disconfirm this theory…?
I also had this happen to me today. No explanation whatsoever, and I didn’t even use a browser at the time it did revert according to the config/.storage/lovelace file’s date. I lost at least 5-6 hours worth of editing my dashboards, and it’s not a browser cache thing, since I showed it to my wife and she tested it on her computer and mobile devices, and I did so too on my mobile device.