I find a lot of very interesting documentation for splitting the lovelace code into different files. But, it seems it’s only possible if you have lovelace in yaml mode.
Does anyone know if it can be split in UI mode?
I would hate to lose the ease of creating dashboards from the UI.
What Chris is saying is it’s fundamentally different in gui mode. The things which make include work don’t even exist because all the yaml is condensed down to JSON and then stuffed in a database in gui mode - thus there’s no file to read in therefore include cannot work. It’s also the same reason you can’t embed comments.
If you want that you MUST use Yaml mode plain and simple.
I had the same issue and now use both ways: One developing dashboard (UI-Mode) to be able to click the funktions and cards to what I want.
Then I copy that code to the main dashboard that is configured via yaml and quite modular.
My entries in configuration.yaml: