Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom element doesn't exist #51

Open
markwoodward86 opened this issue Jan 27, 2023 · 13 comments
Open

Custom element doesn't exist #51

markwoodward86 opened this issue Jan 27, 2023 · 13 comments

Comments

@markwoodward86
Copy link

Describe the bug
I cant for the life of me get this card to work. I have the integration set up no problem but trying to install this card, both via HACS or manually diesn't seem to work, i get the error in the card that the element doesnt exist.

To Reproduce
I firstly installed via HACS (the 0.06 version firstly but also tried the beta) and then restarted HA. Added a manual card with the basic options as described. At first this sort of worked, i saw the card in the preview but when going to visual editor the list of sensors was strange, it was not a drop down list with spaces for each element, it was just a full list of all of my sensors and i couldn't select any of them anyway. I uninstalled the card to try the beta and since then no matter what i try the manual card does not load the custom card.

Expected behavior
A card should be born.

Screenshots or Error

Sandbox_–_Home_Assistant

Hass environment (please complete the following information):
VirtualBox
HASSOS up to date on all areas

Desktop (please complete the following information):

  • OS: both mac and android
  • Browser - both Brave browser and companion app (cleared cache on both too)

Additional context
i have manually added the files to my local folder and added the resources and also tried deleting my HACS download and redownloading the latest beta, aswell as the original master.

@markwoodward86
Copy link
Author

in addition, ive dropped down from the beta version back to the alpha release version and this is the issue with the normal release.. the entity list just shows every entity i have and does not allow to select as the normal preview should.

visual:

Sandbox_–_Home_Assistant

yaml:

Sandbox_–_Home_Assistant

@decoylad
Copy link

decoylad commented Jan 31, 2023

Came here just wanted to add I'm having this same issue of it auto adding all entities as well.
yaml:

type: custom:mail-and-packages-card
name: Mail Summary
updated: sensor.mail_updated
details: true
image: true
deliveries_message: camera.mail_amazon_delivery_camera
packages_delivered: sensor.mail_amazon_packages_delivered
fedex_packages: Mail FedEx Packagestransi
ups_packages: sensor.mail_ups_packages
usps_packages: sensor.mail_usps_packages
amazon_packages: sensor.mail_amazon_packages
usps_mail: camera.mail_usps_camera
camera_entity: camera.mail_amazon_delivery_camera
packages_in_transit: sensor.mail_packages_in_transit
camera: true

@analogpotato
Copy link

Bumping this as well, I have the standard config:

type: 'custom:mail-and-packages-card'
name: Mail Summary
updated: sensor.mail_updated
details: true
image: false

Screenshot 2023-02-08 at 1 24 34 PM

@stayce
Copy link

stayce commented Feb 14, 2023

Same issue. Worked on first install of stable release with visual editor and a working preview, then I opened the code configurer and it never worked again. Tried uninstalling, auto/manual reinstall, tried beta 8.0 which shows a visual editor, but nothing I do will show a card

@JoshuaSeidel
Copy link

any update on this?

@JoshuaSeidel
Copy link

@moralmunky ?

@ghgeiger
Copy link

I'd just like to add that I'm having trouble installing this as well. I can't even get past the code editor, HA just throws the error: "Custom element not found: mail-and-packages-card"

I should note that I do have this card running fine on an up-to-date old install on an RPI4, it's been running well for over a year. My problem is installing fresh on a new install on an Home Assistant Yellow. Not sure what to do.

@ghgeiger
Copy link

I think the problem I was encountering must be related to a HACS issue, or specifically a problem with HACS experimental features. I disabled "Enable Experimental Features" in HACS and restarted HA, and when I entered HACS after restart, it reported that none of my custom front end cards had loaded. I removed them and reinstalled, and I was able to setup this card as described in the readme.

@JoshuaSeidel
Copy link

I think the problem I was encountering must be related to a HACS issue, or specifically a problem with HACS experimental features. I disabled "Enable Experimental Features" in HACS and restarted HA, and when I entered HACS after restart, it reported that none of my custom front end cards had loaded. I removed them and reinstalled, and I was able to setup this card as described in the readme.

what version are you using @ghgeiger i did not have experimental features enabled but not able to get this card working

@harveysm
Copy link

harveysm commented Aug 9, 2023

Same issue here.

@carlostico
Copy link

Exactly the same problem any update ?

@lordexorr
Copy link

Same issue here. Seems this custom card may no longer be developed as it hasn't been updated since 2021 and developer doesn't seem to be responding to issues.

@jamin215
Copy link

jamin215 commented Mar 2, 2024

@markwoodward86 I continue to use this integration but it required me to go through HACS and download a beta version. Go to the home assistant Mail And Packages Custom Card page in HACS then select the three dots in the top right and select redownload. Mark show beta versions and download V0.8.0.0. Then restart as normal and you should see the card in the add card dialog as "Custom:mailandpackages Card" Here is my YAML if you wanted to just copy and paste. Key seems to be the name of the custom card changed so ensure it matches the one below with a dash only between packages and card. (documentation names it "mail-and-packages-card" which is why you get it doesnt exist.
image
image

type: custom:mailandpackages-card
name: Mail and Packages
entity_packages_delivered: true
entity_packages_in_transit: true
entity_usps_mail: true
entity_USPS_packages: true
show_usps_camera: true
entity_USPS_exception: true
entity_UPS_packages: true
entity_UPS_exception: true
entity_fedex_packages: true
entity_DHL_packages: false
entity_canada_post_packages: false
entity_amazon_packages: true
entity_amazon_packages_delivered: true
entity_amazon_exception: true
entity_amazon_hub_packages: true
show_amazon_camera: true
show_warning: false
show_error: true

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

No branches or pull requests

10 participants