ljmerza / calendar-card

Home Assistant Lovelace UI Custom Google Calendar Card
MIT License
107 stars 32 forks source link

Error: no custom:calendar-card #106

Open haegar33 opened 4 years ago

haegar33 commented 4 years ago

Following the ReadMe:

type: custom:calendar-card title: "My Calendar" progressBar: true entities:

was entered in a custom card editor. I am sure something is missing? This should be explained in the help section

ljmerza commented 4 years ago

doesnt look like it was installed. install via HACS

haegar33 commented 4 years ago

Well it was installed via HACS... I realize that all custom: elements are very shaky in HA. Even if you set the "resource" URLs, restart HA 5 times, a new custom card is hardly recognized in Lovelace. And even worse, if for one moment this is the case, I can have 3 different error message in 3 different browsers! I wonder about the underlaying structure of Javascript elements and how they are handled by HA? I never had so much incompatible javascript errors before. I can also see many users in the forum with the same problem.

The resource URL is (as installed by HACS): /hacsfiles/calendar-card/calendar-card.js

Lovelace Custom Card

ljmerza commented 4 years ago

you can try installing manually. I use this card and I've had no issues through all the updates in the past year.

haegar33 commented 4 years ago

well after some reinstallation and re-configs (now HA on plain unix, no hass.io) the card appears to be "detected" and loaded. However now there are java sctrip error messages:

(e.entities||[]).map is not a function. (In '(e.entities||[]).map(e=>e.entity||e)', '(e.entities||[]).map' is undefined) type: 'custom:calendar-card' title: Test entities: calendar.privates

This is with Safari and Firefox on MacOS 13.5