Hi, Iāve decided to give Minimalist a try and create my own fancy dashboard (really loving its style btw!!). Unfortunately, I immediately stumbled on a problem. I am able to load the example dashboard that is created automatically after installation and everything in it seems to work as expected (so Iām assuming the installation was successful). When I create a new dashboard, it looks like the card_welcome_scene
card is not working, at least not when I follow the example in the documentation. I used the configuration below:
---
button_card_templates: !include_dir_merge_named "../../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"
title: "Home"
theme: "minimalist-desktop"
background: "var(--background-image)"
views:
- title: "Example View"
path: 0
icon: "mdi:flower"
cards:
- type: "vertical-stack"
cards:
- type: "custom:button-card"
template: "card_welcome_scenes"
variables:
ulm_weather: "weather.home"
However, when I add the configuration from the sample dashboard, which uses the custom auto-entities card, then it does work. Example below:
---
button_card_templates: !include_dir_merge_named "../../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"
title: "Home"
theme: "minimalist-desktop"
background: "var(--background-image)"
views:
- title: "Example View"
path: 0
icon: "mdi:flower"
cards:
- type: "vertical-stack"
cards:
- type: "custom:auto-entities"
card:
type: "grid"
columns: 1
square: false
card_param: "cards"
sort:
count: 1
filter:
include:
- domain: "weather"
options:
type: "custom:button-card"
template: "card_welcome_scenes"
variables:
ulm_weather: "this.entity_id"
By ānot workingā I obviously mean that the card is not showing up in my newly created dashboard. Iām also getting a JavaScript error originating from button-card.js:
Unhandled Promise Rejection: TypeError: e.setConfig is not a function. (In 'e.setConfig({type:"error",error:t.toString(),origConfig:this._config})', 'e.setConfig' is undefined)
Google wasnāt of much help (or my Google-skills failed me), at least, I didnāt find any similar problems or a solution. Perhaps, someone on here can help me?
Thanks in advance!
Edit: I was able to figure out what the problem was after checking out the card_welcome_scene
template. It seems like you either have to provide a value for the entity
field or provide entity_1
until entity_5
, otherwise the card doesnāt show on the dashboard. It still doesnāt explain why the latter config did work, but Iāll let that one go.