amaximus / garbage-collection-card

Custom Lovelace card for Garbage Collection custom component
MIT License
128 stars 24 forks source link

Custom element doesn't exist: garbage-collection-card. #21

Closed tpsailer closed 4 years ago

tpsailer commented 4 years ago

Version: 1.2.3 Installed from HACS, allowed interface to add resource entry to lovelace config. Restarted hass for good measure.

Can not find custom element. Resource added was: url: /community_plugin/garbage-collection-card/garbage-collection-card.js

There may be a few things wrong... 1) was installed into www/community/garbage-collection-card 2) I think should be referenced as /local/community/garbage-collection-card/garbage-collection-card.js

Changing url manually and restarting does not solve the issue.

amaximus commented 4 years ago

Could you please clear you browser's cache and reliad the page?

tpsailer commented 4 years ago

I just reinstalled it.

What should the URL be for the resource? By default, it doesn't work.

On 2020-02-18 13:40, Atticus Maximus wrote:

Could you please clear you browser's cache and reliad the page?

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/amaximus/garbage-collection-card/issues/21?email_source=notifications\u0026email_token=AGIL6NSH4KBNE3AF6UCEMWDRDRIWPA5CNFSM4KXMZZGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMFJ2DA#issuecomment-587898124", "url": "https://github.com/amaximus/garbage-collection-card/issues/21?email_source=notifications\u0026email_token=AGIL6NSH4KBNE3AF6UCEMWDRDRIWPA5CNFSM4KXMZZGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMFJ2DA#issuecomment-587898124", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1] https://github.com/amaximus/garbage-collection-card/issues/21?email_source=notifications&email_token=AGIL6NSH4KBNE3AF6UCEMWDRDRIWPA5CNFSM4KXMZZGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMFJ2DA#issuecomment-587898124 [2] https://github.com/notifications/unsubscribe-auth/AGIL6NW2N5XN2EGQFRSU5RTRDRIWPANCNFSM4KXMZZGA

amaximus commented 4 years ago

The URL should be what you referred to as point 2. However I don't use the interface approach, but editing directly the yaml files.

tpsailer commented 4 years ago

I'm installing it via HACS, and if I change the resource, HACS thinks the installation is screwed up. And it doesn't work.

resources:

From the card:

entity: sensor.richland_pickup hide_date: true icon_color: green icon_size: 35px type: 'custom:garbage-collection-card'

Custom element doesn't exist: garbage-collection-card. entity: sensor.richland_pickup hide_date: true icon_color: green icon_size: 35px type: 'custom:garbage-collection-card'

amaximus commented 4 years ago

Try to put the type line before the entity.

tpsailer commented 4 years ago
   - type: 'custom:garbage-collection-card'
     entity: sensor.basin_disposal

Custom element doesn't exist: garbage-collection-card. type: 'custom:garbage-collection-card' entity: sensor.basin_disposal

tpsailer commented 4 years ago

Needs Chrome > 74.x to work...