Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add include in ui-lovelace.yaml #12

Open
r3xx0n opened this issue Oct 12, 2023 · 5 comments
Open

Cannot add include in ui-lovelace.yaml #12

r3xx0n opened this issue Oct 12, 2023 · 5 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@r3xx0n
Copy link

r3xx0n commented Oct 12, 2023

The following error occurs if I try to add the line

button_card_templates: !include_dir_merge_named "ui/templates".

When I hit "save", this message pops up:

YAML kann nicht geparst werden: YAMLException: unknown tag !<!include_dir_merge_named> (1:63) 1 | ... _dir_merge_named "ui/templates" -----------------------------------------^ 2 | ... 3 | ...

I edited it in Lovelace Mode RAW config editor.

@panhans
Copy link
Owner

panhans commented Oct 12, 2023

I need to add a description for installing templates in ui mode. I was busy with my blueprints the last time.

You cant simply add the templates this way in ui mode. You need to do it that way:

https://github.com/custom-cards/button-card#configuration-templates

So just need to copy the contents of the cards you need and paste them under the button_card_templates section.
I will update the cards soon and going to offer a summerized template that can be easily added to the ui mode.

@panhans panhans self-assigned this Oct 12, 2023
@panhans panhans added the help wanted Extra attention is needed label Oct 12, 2023
@JN-Jones
Copy link

JN-Jones commented Nov 4, 2023

I'd also love to see this, really like the room card and would like to use it as well

@hocomadvies
Copy link

Thanks for all the work on your example. After first starting with the Rounded-Theme which seems to be no longer maintained? I today tried to include the templates from your setup. .Getting the same error as mentioned above. So now reading this, do I need to copy all the templates into the folder of the button_card_templates ? There are all_ready templates with the same names but different content? How to deal with that? Than, having:
button-card-templates: !include_dir_merge_named "templates/"
or some other location is not longer needed? Will things not get messed up when updating the button-card?

@BoraSchninsky
Copy link

yes i dont understand.. too

@larsoss
Copy link

larsoss commented Apr 11, 2024

Ik moet een beschrijving toevoegen voor het installeren van sjablonen in ui-modus. De laatste keer was ik bezig met mijn blauwdrukken.

U kunt de sjablonen niet eenvoudig op deze manier toevoegen in de ui-modus. Je moet het op deze manier doen:

https://github.com/custom-cards/button-card#configuration-templates

U hoeft dus alleen maar de inhoud van de kaarten die u nodig hebt te kopiëren en deze onder de sectie button_card_templates te plakken . Ik zal de kaarten binnenkort bijwerken en een zomers sjabloon aanbieden dat eenvoudig aan de ui-modus kan worden toegevoegd.

Hello,

Late response to this, but I'm also having problems installing.

You've put everything nicely in a folder, and then I still have to add everything manually? Or have you already made progress, and perhaps it is time to adjust the manual?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants