You have to add it as a custom repository.
Sorry, missed that bit. Thanks
so, this preloading thing is just a temporary workaround until the actual custom card (eg: vertical-stack-in-card) is updated for 107, right?
Doesnāt sound like it for the hui- trick from this comment:
Iām getting the same error in HACS and your suggestion didnāt seem to work for me. Forward slash or not, at the end, itās not allowing me to add the repo.
It works: Just add it with the following settings:
URL: https://github.com/gadgetchnnel/lovelace-card-preloader
Type: Plugin
@Steven_Rollason : Where do I put the preload statement if I do not use ui-lovelace.yaml? I manage my Lovelace from the inbuilt editor in the frontend.
Use the RAW editor. Put it at the top of your Lovelace config.
So is this going to be added to hacs properly?
Iāve submitted a PR to add to to the default HACS repositories, Iāll let you know when itās completed
Itās done
Iām interestedā¦
Is this a long term solution or anticipated as a workaround until some future change in HA/Lovelace?
I donāt fully understand why it is needed in the first place so if the answer is implicit in that then Iām sorry
Edit: sorry that wasnāt a reply only to @ludeeus
Itās needed because of a core change to Lovelace. For performance, they no longer load all cards. Only whatās needed. This impacted the ability to use custom:hui-xxx
. Its here to stay.
OK, thanks for that.
Does that mean using Preloader negates the performance benefits or is it on a per view basis?
Not that Iāve ever noticed any issues with the performance of Lovelaceā¦
Probably not, iād wager that it just preloads the cards you configure, which youāll be using anyways. Itād be identical to normal behavoir without the custom:huiā¦ But maybe @Steven_Rollason can answer better because Iām making assumptions based on the code.
@klogg @petro Thatās correct. The performance would depend on how many cards you add to the preload list. Iād think that the at the very worst, if you added every single default card to the list, the performance would be around the same as it was before the change was made.
Edit: It also only preloads on a page reload, so that should minimise the effect.
Has anyone been able to get this to work with fold-entity-row? Out of the 14 custom plugins I use this is the only one that gives me the error. Coincidentally it also happens to be the one that I use the most.
Iāve added it to my resources like this after trying it the old way first
- url: /hacsfiles/lovelace-card-preloader/lovelace-card-preloader.js
type: js
I tried /local/www/community/lovelace-card-preloader/lovelace-card-preloader.js
as well as /community_plugin/lovelace-card-preloader/lovelace-card-preloader.js
In my ui-lovelace.yaml I have
preload:
- fold-entity-row
- section
Not sure if āsectionā is needed but thatās the type thatās giving me problems
This is the error I am getting
And this is how it looks in my conifg
Iām sure Iām doing something wrong and itās probably a simple fix but I just canāt seem to figure it out. Anyone have any idea?
In case you are still in troubleā¦ I have written a blog post about this. But itās in german so maybe you need to fire up the google translator:
https://www.triumvirat.org/2020/03/19/homeassistant-0-107-custom-element-doesnt-exist/
This may only work with cards currently, not with rows. Can you try it like this?
preload:
- hui-section-row
If that doesnāt work Iāll probably need to update the preloader to add support for rows, but Iāll need to think about how this can be done without breaking existing configs (it will need to know if it is preloading a card or a row).
Ahh that explains it.
That didnāt work either unfortunately.