Lovelace YAML migrate - Custom element doesn't exist

The solution for me was:

PREPARATION:
*Do install Google Chrome (if you still do not use it).
*Check that HA version is at least 0.85.1.
*Check all your resources if you find any newer version, in case that you do find newer version do make firstly update custom resources before continue migration.
*Do complete backup of “config” folder of Home Assistant to external drive.
*Do have shortcut for Home Assistant in Google Chrome.

1:
Delete “lovelace” file under:
“\config.storage”
lovelace

2:
Then change configuration.yaml file so that YAML mode is disabled.
configuration

3:
Then very IMPORTANT!
Make restart Home Assistant (in normal mode - like in past, so do NOT clear cache or change something in browser - do it in normal mode…)

4:
Then very and most IMPORTANT!
Open Home Assistant in Incognito mode (Google Chrome) - right click on shortcut and open in Incognito mode:
incognito

5:
After you will log in to Home Assistant (HA) as root user copy paste of your lovelace content file (ui-lovelace.yaml).
ui
Best practice is to open in Notepad++, use Crtl+A and Ctrl+C and then Ctrl+V in RAW editor in HA.

6:
Save copied text in RAW editor. Wait about 30-60 seconds, save it again. Close editor.

7:
Check if lovelace exist in “\config.storage” and also you can delete or just rename your old used file “ui-lovelace.yaml” (I renamed it to “_ui-lovelace.yaml”).

8:
Then check if everything is working fine. Then you can close Google Chrome Incognito mode.

9:
In every browser where you use Home Assistant clear cache browser and reopen HA, then everything should be fine.

MY CUSTOM RESOURCES (with links to check if something new is so that you can update it):

https://github.com/ciotlosm/custom-lovelace/tree/master/gauge-card

  - url: /local/gauge-card.js?v=0.2.0
    type: js
  - url: /local/custom_ui/dark-sky-weather-card.js?v=4
    type: js
  - url: /local/toggle-lock-entity-row.js?v=1
    type: js
  - url: /local/mini-graph-card-bundle.js?v=0.1.0
    type: module
  - url: https://unpkg.com/[email protected]/moment.js
    type: js
  - url: /local/custom_ui/calendar-card/calendar-card.js?v=1.0.1
    type: module
  - url: /local/custom-lovelace/swipe-card/swipe-card.js?v=2.0.0
    type: module
  - url: /local/slider-entity-row.js?v=1
    type: js
4 Likes