I have an enormous dashboard file and want to split it using !include statements or similar, partly to make it more structured and readable, but partly because I have a lot of panel yaml code that is identical on each page (top main menu button grid + code for warnings and notifications etc).
This simple task turned really hard. Obviously the RAW dashboard file editor in the dashboard GUI editor do not support adding or managing new files that can be !included from the main dashboard file.
I then tried to SSH into the file system, and it took me a long time to work out the dashboard configurations are in the .storage folder, that is hidden in the default HA file editor.
I finally managed to edit the dashboard files using the Nano editor in the SSH shell (and to create new empty files to be included later on). I now realized the dashboard configurations in .storage are in JSON format and not YAML like the raw dashboard editor.
Firstly, I dont dare to touch the JSON files in .storage as I don’t know if that will break the auto-conversion to YAML that apparently appears to be happening for the RAW dashboard editor. Secondly, I have not been able to find information on JSON files having an !include statement or similar.
So, what is the easiest way to break a huge dashboard configuration file (that appears as YAML in the raw dashboard editor and as JSON in .storage), so I can split it to serve filers and “include” children files into the “parent” file?
So, for an enduser friendly way to split huge dashboard configurations into several files, where code that is duplicated in serval panels (eg common top meny bar button list etc) can be refactored out into a single file that is included from several places, I need to file a feature request? sure I will do that.
Sorry for the little late answer.
I know I had an integration or frontend module that could do exactly that, but at the moment I can only find Linked-Lovelace, which is not precisely the one you need.
thanks, yes but I would prefer GUI editing if it was powerful enough. not sure about the YAML mode, I need to read more about it. The RAW dashboard GUI editor is YAML, but I understand it as there is a pure YAML mode that disables the GUI editing altogether. I will have to study this a bit more. Thanks anyway!
Styling that repeated many times, I always include just one for one purpose. So you have to maintain only 1 file. And not every card on every dashboard.