Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Error: no custom:calendar-card #106

Open
haegar33 opened this issue Jun 13, 2020 · 4 comments
Open

Error: no custom:calendar-card #106

haegar33 opened this issue Jun 13, 2020 · 4 comments

Comments

@haegar33
Copy link

Following the ReadMe:

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

  • calendar.mycalendar

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

@ljmerza
Copy link
Owner

ljmerza commented Jun 15, 2020

doesnt look like it was installed. install via HACS

@haegar33
Copy link
Author

haegar33 commented Jun 15, 2020

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.

  • Should an installation via HACS be more "stable"?
  • Should I try to install your script manually?
  • I am using the UI Editor for Lovelace, better with a manual ui-lovelace.yaml?
  • When using the UI Editor and press the large orange plus button I get a some custom cards presented in the list, your calendar-card is not showing up...
  • In the HACS control panel->Frontend your calendar-card is showing up as loaded and ready to use...

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

Lovelace Custom Card

@ljmerza
Copy link
Owner

ljmerza commented Jun 19, 2020

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

@haegar33
Copy link
Author

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

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

No branches or pull requests

2 participants