I accidentally deleted one template card with a lot of code and I need to retrieve just that card and its code from backup.
Where is dashboard code stored in HA and in backup?
I accidentally deleted one template card with a lot of code and I need to retrieve just that card and its code from backup.
Where is dashboard code stored in HA and in backup?
Thanks.
And where is dashboard code stored in HA?
There should be a hidden storage folder on config as well
How to unhide that hidden folder?
I extracted archive on my Mac and have no idea how to get into that hidden folder.
EDIT: its command + shift + . {period) to reveal hidden folders, tanks for pointing me to that.
Thanks for hints, you save my day guys!
For others who needs a bit more details (as I obviously needed ) here it is: Download your backup file, from the files in backup select and unzip homeassistant.tar. Then go to \data\ .storage\ and locate file lovelace.NAME_OF_DASHBOARD - if only some card was deleted, the dasboard is still there and you can check for it’s actual name. In the file itself you have to just dig and depending on the structure find the correct “View” and under it desired “Card” and copy data needed to restore ruined one or create it as a new again.
Is there an easy way to convert the two?
I have found the card data, but it’s wrapped in a lot of quotes and format is quite different!
EDIT: I found that this works: JSON to YAML Converter: Best Free Tool (jsonformatter.org)
Have to copy the whole file and pick the bit you need