Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HACS Integration Problem #15

Open
BarryMar opened this issue Oct 21, 2021 · 0 comments
Open

HACS Integration Problem #15

BarryMar opened this issue Oct 21, 2021 · 0 comments

Comments

@BarryMar
Copy link

This is more of a general note for any potential new HA users like me learning the ropes.

When installing from HACS, I couldn't get the code to be recognized by the Lovelace GUI Editor. I kept getting these "No card type configured” errors when I was using the "Manual" YAML entry. I checked the Resources and the code was there. Rebooted a bunch of times and still no luck.

Based on a hint at https://community.home-assistant.io/t/some-hacs-installed-custom-cards-not-working/323226 I found I had to create a duplicate resource entry to make it pass the entry step.

So there were now two entries:
/hacsfiles/love-lock-card/love-lock-card.js
and
/hacsfiles/love-lock-card/love-lock-card.js?hacstag=192835334380

After that tweak and a restart my little test YAML worked:
type: custom:love-lock-card
title: Fireplace Lights (Restricted)
popup: password
password: 1234
cards:

  • entity: light.msl320_5b78
    name: Password Lamp
    type: light

The Restriction Card in HACS provides essentially the same functionality as this code and doesn't have this odd requirement, so it might be a better choice for newer users:
https://github.com/iantrich/restriction-card

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant