gadgetchnnel / lovelace-card-templater

Custom Lovelace card which allows Jinja2 templates to be applied to other cards
120 stars 6 forks source link

Custom element doesn't exist #34

Closed B0ndo2 closed 2 years ago

B0ndo2 commented 3 years ago

I am getting this error "Custom element doesn't exist: card-templater.". I installed the code using HACS, resource is shown

/hacsfiles/lovelace-card-templater/lovelace-card-templater.js JavaScript Module

type: 'custom:card-templater' card: type: picture-entity name_template: '{{ states.sensor.recycling.attributes.days }} days' show_name: true show_state: false entity: sensor.recycling state_image: '0': /local/containers/bio_today.png '1': /local/containers/bio_tomorrow.png '2': /local/containers/bio_off.png entities:

ionuttimofte53 commented 3 years ago

any solution to this? i'm hitting the same issue, with exact same content:

Custom element doesn't exist: card-templater.

Raw editor config entry looks like this: type: 'custom:card-templater' card: type: picture-entity name_template: '{{ states.sensor.bio.attributes.days }} days' show_name: true show_state: false entity: sensor.ecowerf state_image: '0': /local/containers/bio_today.png '1': /local/containers/bio_tomorrow.png '2': /local/containers/bio_off.png entities:

schieb commented 3 years ago

I had the same problem. Solved by clearing the browser cache.

I am new to this ecosystem but based on the required step in the HACS installation guide, I feel like clearing your cache is just a step that needs to be added to everyone's debugging process, particularly after installing or reconfiguring any new integrations or frontends from HACS.

gadgetchnnel commented 2 years ago

Closing this as I believe it to be resolved - if anybody still has problems with this, please raise a new issue.