-
Notifications
You must be signed in to change notification settings - Fork 13
Description
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