garbage-collection-card icon indicating copy to clipboard operation
garbage-collection-card copied to clipboard

Cannot get custom card to show - are there updated install instructions?

Open boxgr0ve opened this issue 2 years ago • 11 comments

Installed using HACS - HA version Home Assistant 2022.7.3

Instructions state to add the card to the resources in configuration.yaml: however you cannot use resources: in configuration.yaml anymore

Edit Dashboard, Manage Resources contains: "/hacsfiles/garbage-collection-card/garbage-collection-card.js?hacstag=2070182001201"

Rebooted and reinstalled multiple times but whenever creating a manual card using code it just says no card type configured.

boxgr0ve avatar Jul 13 '22 15:07 boxgr0ve

You'll have to consult your configuration to see if your Lovelace runs in yaml or storage mode. The card's description refers to yaml mode. In storage mode you'll have to use the UI to add resources.

amaximus avatar Jul 13 '22 15:07 amaximus

ok managed to get card to finally display but icon isn't showing.... colours flash up when I click, but no icon? any ideas?

Tried inserting icon: midi:trash-can but no dice - icon displays fine with a normal entity card and sensor.bin

Screenshot 2022-07-13 at 18 37 05

boxgr0ve avatar Jul 13 '22 17:07 boxgr0ve

The right format for icon shoud be: icon: mdi:trash-can and it should be defined at the sensor definition not the card.

amaximus avatar Jul 13 '22 19:07 amaximus

@boxgr0ve Hey, Could you tell me how you got your card back. I have just updated the Garbage Collection in HACS and I think I have the same issue and the card is now not showing.

Thanks

AlexGreenUK avatar Jul 18 '22 01:07 AlexGreenUK

@boxgr0ve Hey, Could you tell me how you got your card back. I have just updated the Garbage Collection in HACS and I think I have the same issue and the card is now not showing.

Thanks

Not sure if this is exactly what fixed it but I changed the manage resources link to just: /hacsfiles/garbage-collection-card/garbage-collection-card.js

I ended up looking at some other custom card examples to see how they handled custom resources and they seemed to follow that - installing via the add-on added "?hacstag=2070182001201" which im not overly sure is relevant or not... seems to work for me now though!

boxgr0ve avatar Jul 18 '22 08:07 boxgr0ve

You'll have to consult your configuration to see if your Lovelace runs in yaml or storage mode. The card's description refers to yaml mode. In storage mode you'll have to use the UI to add resources.

I have the same problem as topic starter. Can you give some more hints on how to solve?

rbovenkampclearict avatar Aug 31 '22 16:08 rbovenkampclearict

@rbovenkampclearict I'm not familiar with UI mode, but generally speaking you'll have to add this card as a resource in a similar way you're doing for other custom card.

amaximus avatar Sep 01 '22 07:09 amaximus

That’s what i’m doing. Add manual card > fill in yaml > get error that the card is not found

rbovenkampclearict avatar Sep 01 '22 09:09 rbovenkampclearict

Have you added the card via HACS? Do you see the related directory on file system level under $[HASS_CONF}/www/community? hass_garbage_collection_card

amaximus avatar Sep 01 '22 09:09 amaximus

Hi, I am having the same problem. Installed the card today via HACS on HA OS v2022.9.7 OS 9.0

I am trying to integrate it with the hacs_waste_collection_schedule integration.

I have confirmed the files are present as above and also that an entry was added to the resources. Mine looks like: /hacsfiles/garbage-collection-card/garbage-collection-card.js?hacstag=2070182001201

However when I try to add the card to a dashboard using the provided examples I get the error:

Configuration errors detected: Custom element not found: garbage-collection-card

I just noticed in your reply you mentioned HASS_CONF - is this an environment variable that should be set? I checked in my HA terminal and I don't have that.

Any help would be appreciated.

Thanks.

mgg-scudnet avatar Oct 02 '22 08:10 mgg-scudnet

Hi, I am having the same problem. Installed the card today via HACS on HA OS v2022.9.7 OS 9.0

I am trying to integrate it with the hacs_waste_collection_schedule integration.

I have confirmed the files are present as above and also that an entry was added to the resources. Mine looks like: /hacsfiles/garbage-collection-card/garbage-collection-card.js?hacstag=2070182001201

However when I try to add the card to a dashboard using the provided examples I get the error:

Configuration errors detected: Custom element not found: garbage-collection-card

I just noticed in your reply you mentioned HASS_CONF - is this an environment variable that should be set? I checked in my HA terminal and I don't have that.

Any help would be appreciated.

Thanks.

Same here. In fact, you just need to add one card at a time with this following syntax as manual card in Lovelace UI :

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

No indent, no - before type declaration. Then it works.

fat115 avatar Oct 02 '22 10:10 fat115

I am having the same problem as described above. After confirming installation, existence of files, and proper config formatting in a manual card I'm left with "no card type configured".

Removing "?hacstag..." from the resource did not seem to help either.

I'm not sure how to further debug the system. I implemented a workaround using template sensors to extract the days attribute into it's own sensor for display using the entity list card.

hoodja avatar Dec 09 '22 16:12 hoodja

@hoodja please make sure that you restart HASS after adding the card as a resource. After the HASS restart make sure you flush the browser cache.

amaximus avatar Dec 09 '22 18:12 amaximus

Thanks for the tip @amaximus. After the browser refresh I was able to get the card working with configuration similar to above.

hoodja avatar Dec 09 '22 22:12 hoodja

@hoodja I'm glad it's working for you.

amaximus avatar Dec 09 '22 23:12 amaximus