Hi,
I tried several times to use the Studio Code Server add-on without success: no autocompletion, noone of my entities recognized, etc…).
I have then installed Visual Studio Code on my PC to try to get rid of this problem: I can open my config folder to edit my files but now I can have autocompletion with my entities only in the automation.yaml file but no on the lovelace.yaml file or any other *.yaml file that are not in the config root folder (lovelace.yanl is into the hidden .storage folder).
Furthermore, if I copy and past my code from Home Assistant raw configuration to the lovelace.yaml in Visual Studio Code and save, everytime I restart Visual Studio Code my lovelace.yaml file loses its format and becomes weird.
Can you please help me to understand why?
Thank you!
That’s not weird. That’s json and it is not meant to be user editable. Stop pasting yaml in there. I’m surprised you have not broken your frontend.
If you want to use yaml for your dashboards the yaml file goes in /config. This is then translated to json and stored in .storage by the system.
Note the file name and location specified here:
Hi tom_I and thanks for your support, first.
What I’m trying to achieve is to use the UI Minimalist and Room-Card.
For that I was suggested to create a folder structure like the one in the picture below and to start editing the .yaml files inside the views folder because of the fact that UI Minimalist doesn’t work with the standard UI editor inside Home Assistant, does it?
Unfortunately I cannot use the autocompletion function for my entities from that views folder and, moreover, it seems that my HA connot find either the UI Minimalist templates or the Room-Card.
Can you suggest me how to build my folders structure in order to let me use both the UI Minimalist or the Room-Card frontend integration with the autocompletion function or provide me any example/link where I can find my way, please? (of course I read several times the wiki of UI Minimalist and Room-Card without success).
A thousand thank you.
No, sorry I’ve never used either. Whatever you end up doing, just don’t past yaml into the .storage files.