panhans / HomeAssistant

Home Asisstant related stuff like blueprints for automations and scripts.
74 stars 19 forks source link

Cannot add include in ui-lovelace.yaml #12

Open r3xx0n opened 8 months ago

r3xx0n commented 8 months ago

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 commented 8 months ago

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_cardtemplates section. I will update the cards soon and going to offer a summerized template that can be easily added to the ui mode.

JN-Jones commented 8 months ago

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

hocomadvies commented 7 months ago

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 commented 6 months ago

yes i dont understand.. too

larsoss commented 2 months ago

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_cardtemplates 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?