#UI Lovelace Minimalist - custom card template is missing

1 messages · Page 1 of 1 (latest)

icy cipher
#

I followed the YouTube tutorial found here: https://www.youtube.com/watch?v=A0fMt8IRKoI

I added the custom card template code to the custom_cards folder but when I try to reference it I get an error saying the template is missing.

I added some screenshot with additional context.

The long awaited Minimalist Guide is finally here! In this video, I talk you through how to recreate my own Home Assistant Dashboard with Minimalist as the project to build the best smart home mobile dashboard there is in 2022!

Thank you to Anker for sponsoring this video, check out the Anker Portable Power Station here: https://ankerfast.club/...

▶ Play video
true rune
#

UPDATE: RaineP don't read this message just yet. Read the follow-up message first. #1331846258381291520 message

I added the custom card template code to the custom_cards folder
When you say this part, what do you mean?
I'm assuming you're running a UI-based dashboard and not YAML-based. (If you don't know start that means, you're more than likely running UI-based.) The template won't go in the custom_cards folder. That's where the custom:button-card gets installed (preferably via HACS). The template will need to go into your dashboard's RAW configuration. While editing, you'll click the three dots in the top right and select Raw Configruation Editor. A word of warning: be careful in here as YAML is very picky about its layout.
The section needs to be started before the views: section (basically, at Line 1.) You'll start the line with button_card_templates:. The next line will get the template. Ensure you're indented with two spaces at Line 2 and maintain the rest of the indentation.
If that doesn't make sense (or I didn't do a good job explaining), take a look at my dashboard's YAML. My Line 162 will start your Line 1. My dashboard

#

Now, bear in mind that you'll also need the ulm_language_variables template, too. (I can't find the link for it at the moment but I'll track it down later tonight after I get off work.)

true rune
#

Follow-up: So, I didn't actually watch the video that you referenced above. I just provided information based on what I know about custom:button-card and its templates. I decided to check out the video and see what the instructions were trying to tell you to do. My information is valid, but not in terms of that video.
I am a follower of Lewis but, personally, I don't recommend following his instruction from this video. I didn't watch the video completely, but looking through the comments, there seems to be something missing that actually makes everything work (perhaps lost in editing). There are plenty of questions in there just like yours.
Second reason: I don't recommend MinimalistUI, in general. It is very well made and obviously a lot of work has gone into it, but it can be difficult to work with and even more difficult when it comes time to make modifications to it to get something to show in a specific way that you want and not the way the Dev wanted. Additionally, unless you only want to run MinimalistUI, it becomes difficult to get other cards to "play nice" with it.
Now, with all that said, MinimalistUI is very nicely made and I do recommend using it as a reference to design your own cards. You can take the templates, and, following my instructions above, use them without actually having MinimaistUI installed. That's what I do. Kinda. I don't use the whole template but I pick out bits of code that I find useful. In fact, I noticed something new dealing with variables that is now being used that I'm going to look into a bit more to understand how (and why) the Dev used them.