No Card Type Found - Mini Media Player

Hi All,

Hoping for some help here. I have been reading and reading, and still can’t get anywhere. I’m struggling to get my head around what i should use GUI for and what i should use Code for. This is the whole reason i moved away from OpenHab. I don’t mind either, in fact i think code can be more efficient but i just need to know which way to go <-- Any help with this question appreciated.

Anyway, the current issue is getting a custom card to work with LoveLace. The card i would like to install is Mini-Media player. So far i’ve followed everything i think i can find.

Steps i have done:

  1. Installed HACS
  2. Installed the Repository and download the card.
  • Mini Media pllayer has shown up in /config/www/community/mini-media-player
  1. Restarted Home Ass.
  2. Added a Custom Card in Lovelace
- type: 'custom:mini-media-player-bundle'
  entity: media_player.loungeaudio

Details:
Home Assistant: 0.114.4
OS: HassOS 4.12
Hardware: Raspberry Pi 3b+

Remove the dash and space before type:... and “-bundle”:

type: 'custom:mini-media-player'
entity: media_player.loungeaudio

Have reset the browser cache… again lol

tried:

type: 'custom:mini-media-player'
entity: media_player.loungeaudio

It still won’t let me save, and says custom component not found. Have also tried restarting HASS several times.

Check there is an entry for the card under configuration / dashboards / resources.

I put this in Manually from another post i read. Should HACS have done it automatically? This says mini graph card which doesn’t seem right.

Ok, i got it working. Had to install the card manually into the \config\www folder

Getting this same error after installing through HACS

Can see it in resources listed as:
/hacsfiles/mini-media-player/mini-media-player-bundle.js

and can see HACS has installed the .js file under /community/ folder.

Tried putting it in the root as above also - any ideas why this card doesn’t seem to work through HACS?

@scoobee81 That is not the correct location for the resource. It should be

/hacsfiles/mini-media-player/mini-media-player-bundle.js

@alphabeta279 show us your card config.

But it’s working. All the docs said it should be where you said, but it idn’t work there. So i manually moved it out into the www folder.

This is my folder structure:
image

Only because you copied the file to the wrong place. HACS will not update it there.

As card isn’t even appearing, I can’t really share anything!

Tried just creating an entity card with demo and it can’t find the card.

No card type found
- type: 'custom:mini-media-player'
  entity: media_player.kitchen_speakers

It appears HACS isn’t dropping into the right location as all files are within:
\HOMEASSISTANT\config\www\community\mini-media-player\

rather than:

/hacsfiles/mini-media-player/

I note all other HACS cards install into the first location also - has something changed here?

If you are entering this into a UI card, you should format it like so:

type: 'custom:mini-media-player'
entity: media_player.kitchen_speakers

The files are in the correct location. /hacsfiles/mini-media-player/ is a link to that location.

Ah - gotcha, working perfectly now! PICNIC problem…!

Ok, so i just installed another HACS add-in. The Harmony Card.

Heres where it was installed:

I’m still getting this:

Do you know how i can fix my issue as well. Here is what i am looking for:

52081831-800cec80-259b-11e9-9b35-63b23805c879

This is the code / error

I know the setup was correct as it is allowing me to create 2 other cards:

If you want them all tightly packed like your first image then use:
group: true

Thank you - but as you may see, when i put in the code (second image) group is set to true and its giving me a No Card Type Found error.

Any advice on why this may be?

Please post actual code text, not images. It makes it a lot easier to help you out. You need to remove the hyphen at the top before ‘type’

Thank you. I now get the following error and the card seems blank:

I am simply trying to replicate whats in the repository: https://github.com/kalkih/mini-media-player

Code:

type: entities
entities:

  • type: ‘custom:mini-media-player’
    entity: media_player.multiroom_player
    group: true
    source: icon
    info: short
    hide:
    volume: true
    power: true
  • type: ‘custom:mini-media-player’
    entity: media_player.kitchen_speakers
    group: true
    hide:
    controls: true
  • type: ‘custom:mini-media-player’
    entity: media_player.bathroom_speakers
    group: true
    hide:
    controls: true
  • type: ‘custom:mini-media-player’
    entity: media_player.bedroom_speakers
    group: true
    hide:
    controls: true
  • type: ‘custom:mini-media-player’
    entity: media_player.patio_speakers
    group: true
    hide:
    controls: true