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:
Installed HACS
Installed the Repository and download the card.
Mini Media pllayer has shown up in /config/www/community/mini-media-player
Restarted Home Ass.
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+
tom_l
August 31, 2020, 8:08am
3
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.
tom_l
August 31, 2020, 9:30am
5
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?
tom_l
October 14, 2020, 7:12am
9
@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:
tom_l
October 14, 2020, 8:15am
11
scoobee81:
But it’s working
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?
tom_l
October 14, 2020, 8:47am
13
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:
sudman
(Arjun)
December 21, 2020, 10:32pm
18
Do you know how i can fix my issue as well. Here is what i am looking for:
This is the code / error
I know the setup was correct as it is allowing me to create 2 other cards:
sparkydave
(🇦🇺 Dave)
December 21, 2020, 10:37pm
19
If you want them all tightly packed like your first image then use:
group: true
sudman
(Arjun)
December 21, 2020, 10:43pm
20
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?
sparkydave
(🇦🇺 Dave)
December 21, 2020, 11:18pm
21
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’
sudman
(Arjun)
December 22, 2020, 1:34am
22
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