I upgraded Home Assistant yesterday and I am in the process of migrating my config to Lovelace. I am playing around with my Roborock vacuum cleaner card and you can really do awesome stuff with Lovelace. But I also noticed that it gets really long, when you add a couple of elements and sensors. So right now the card for my robot card takes up more than 200 lines and is still not finished.
Is it possible, that I can put the yaml of the card in an dedicated file and just import it in ui-lovelace.yaml? That would make everything a lot cleaner.
Also: If I have many repeating Lovelace UI elements; is it somehow possible to define a template and just create an instance of it, just feeding the few attributes to it which differ from one element to another (e.g. x,y coordinates, the exact sensor, instead of defining all the mostly same stuff all the time?
The procedure I am going to list here is related to this post as I found a problem while trying to move to a new hardware setup and had to re-do all my HA stuff from scratch. For your old Lovelace UI (not Yaml), you can hit on the upper right corner the “Configure UI” and then again when is in config mode, you hit the three dots and click on “Raw config editor”, copy all and then on your new setup just paste this and all your tabs/cards will appear there. There is also a possibility of accessing a hidden folder but I find this much easier.