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?