I cannot get this card to work.
I get the Custom element doesn't exist
error.
Installed via HACS
lovelace-resources.yaml
contains the reference:
- url: /hacsfiles/decluttering-card/decluttering-card.js
type: module
I manage my GUI ‘manually’ via the yaml files, so my ui-lovelace.yaml
contains and include:
title: My House
views: !include_dir_list lovelace/
I then have a folder lovelace
with multiple yaml files in.
As I understand the templates have to be in the root of a yaml…so i changed ui-lovelace.yaml
to include the basic example from the Git page
title: My House
decluttering_templates:
my_first_template: # This is the name of a template
default:
- icon: fire
card:
type: custom:button-card
name: '[[name]]'
icon: 'mdi:[[icon]]'
views: !include_dir_list lovelace/
I then added the below to one of my yamls in /config/lovelace/example.yaml
- type: custom:decluttering-card
template: my_first_template
variables:
- name: Test Button
- icon: arrow-up
This results in the error. I have restarted HA, and reloaded resources multiple times.
What am I missing?
All other custom cards installed in this way work OK.