How do you have a single *.yaml file for the floorplan and include that in an UI controlled lovelace?
I see that I quickly get HUGE yaml files in the UI editor, and it can’t really handle it. It starts lagging. A lot. And I’m running HA on a proper server with dual Xeon CPUs and 128 GB RAM!
It also gives these weird artifacts with multiple copies shown, as well as retaining elements that were deleted even after browser force refresh AND HA restarts:
But it’s only in the UI yaml editor, i looks as it should once I save changes and go to the actual card.
Aside from the lag, it would be nice to edit files of that size in a better editor (i.e. mounting a Samba and editing directly on your computer).
Just doing !include in the lovelace card for the floorplan didn’t work, but is there another way to just have a separate manually managed yaml file only for the floorplan? It kind of looks that way from the documentation (“The configuration can be stored in a separate file (i.e. home.yaml)”), but it doesn’t really say how.
It might be what you are saying here. Maybe this is just your terminology but floorplan doesn’t go IN a card. It IS a card and with panel:true it is a complete view. A dashboard can have multiple views.
So you should be editing in YAML a dashboard. That dashboard should start with
title: Home Assistant
views:
Your views can then be either typed out in full or INCLUDED. If it is typed out in full you would have something like:
OK I also think I see the issue. Firstly I don’t use the UI for editing the YAML so I might be a bit sketchy on some details and I am catching up on what you are actually doing. I think you are trying to use the UI editor yaml mode. What you want to do is open the view you want to edit and then click the overflow menu (3 dots top right) and select EDIT DASHBOARD and then select the overflow menu again and select RAW CONFIGURATION EDITOR
You are absolutely correct. I was using the edit dashboard → add card → manual; I guess I should be using edit dashboard → raw configuration editor?
Sorry, I haven’t messed much with Lovelace since I moved from using pure yaml files to using UI.
So maybe, if I can ask, explain it like I haven’t used Lovelace in UI mode before, because if I use the raw configuration editor, then the should the total configuration be:
Because if I try to save (with the all_floors.yaml exactly as you show in your last post), I still get an error with the !include, though (“unknown tag”, see error in bottom right corner):
Nope. sorry if my terminology is off, that was what I was trying to convey with the title (UI mode).
After migrating to a new install, I wanted to try using the UI, since it looked like this was the way that was getting most love from the dev team. So my ui-lovelace.yaml file was retired a while ago.
I guess that then means I need to make a feature request for this to work?