Home-Assistant-Mail-And-Packages-Custom-Card icon indicating copy to clipboard operation
Home-Assistant-Mail-And-Packages-Custom-Card copied to clipboard

Custom element doesn't exist

Open markwoodward86 opened this issue 2 years ago • 13 comments

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 avatar Jan 27 '23 01:01 markwoodward86

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

markwoodward86 avatar Jan 30 '23 20:01 markwoodward86

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

decoylad avatar Jan 31 '23 21:01 decoylad

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

analogpotato avatar Feb 08 '23 21:02 analogpotato

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

stayce avatar Feb 14 '23 15:02 stayce

any update on this?

JoshuaSeidel avatar Feb 24 '23 16:02 JoshuaSeidel

@moralmunky ?

JoshuaSeidel avatar Feb 24 '23 17:02 JoshuaSeidel

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 avatar Feb 24 '23 23:02 ghgeiger

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.

ghgeiger avatar Feb 24 '23 23:02 ghgeiger

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

JoshuaSeidel avatar Feb 26 '23 11:02 JoshuaSeidel

Same issue here.

harveysm avatar Aug 09 '23 20:08 harveysm

Exactly the same problem any update ?

carlostico avatar Aug 14 '23 12:08 carlostico

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.

lordexorr avatar Dec 07 '23 21:12 lordexorr

@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

jamin215 avatar Mar 02 '24 17:03 jamin215