Accidentally wiped Raw Configuration Lovelace. Is there a YAML file somewhere?

Was copying some Dashboards around, and accidentally pasted and saved a whole Raw Configuration set of code to the wrong one. Looking through backups, I can’t find a file anywhere with it in, though I guess it must be somewhere.

Anyone got any ideas where such a thing would be?

I guess I could restore a Snapshot, copy it out, and then restore again, but am wary that these never go entirely smoothly…

TIA!

R.

You’ll find the JSON in .storage/ - there’s a few files there, but the key one is likely to be simply lovelace

1 Like

Ah - of course. They’re hidden. So had to CMD-SHIFT-. to see them. Looks like that is indeed the file.

Thank you very much!

R.

Should it be useful to anyone in the future, you can use https://www.json2yaml.com to get the data back into YAML.

Up and running again…

1 Like