Hello,
I want to personnalise my lovelace UI with some custom cards that I downloaded with HACS.
In my configuration.yalm, I have:
lovelace:
mode: yaml
resources:
- url: /hacsfiles/logbook-card/logbook-card.js
type: module
- url: /hacsfiles/bignumber-card/bignumber-card.js
type: module
In my ui-lovelace.yalm:
title: Maison
views:
- badges:
- entity: person.maxime
- entity: sun.sun
cards:
- entities:
- entity: sensor.toulouse_next_rain
- entity: sensor.toulouse_rain_chance
- entity: sensor.toulouse_weather
type: glance
- entities:
type: custom:logbook-card
desc: true
entity: sun.sun
hiddenState:
- above_horizon
title: Day history
path: default_view
title: Home
In the lovelace view, the regular cards show up nicely but the custom cards is red with the following message:
No card type configured.
entities:
type: 'custom:logbook-card'
desc: true
entity: sun.sun
hiddenState:
- above_horizon
title: Day history
I don’t know where is my error…
Thank for your help.
Maxime
Edit : I’m using Home Assistante with HASSIO on Raspberry Pi 3. HA version 0.107.6
2 Likes
OK, I just find my mistake. It was an identation problem in ui-lovelace.yalm
this is better:
title: Maison
views:
- badges:
- entity: person.maxime
- entity: sun.sun
cards:
- entities:
- entity: sensor.toulouse_next_rain
- entity: sensor.toulouse_rain_chance
- entity: sensor.toulouse_weather
type: glance
- entities:
type: 'custom:logbook-card'
desc: true
entity: sun.sun
hiddenState:
- above_horizon
title: Day history
path: default_view
title: Home
2 Likes
exeljb
(Joe)
June 20, 2020, 3:38am
3
This helped me figure out what I was doing wrong.
I was using the UI to add a manual card, I thought I just needed to copy/paste the example code from the GitHub readme’s but was getting that same ‘no card type configured’ errors. I had to delete all the indents and get the code to line up right up against the left side of the UI’s text box.
I was pasting in the code like this:
- type: "custom:button-card"
entity: switch.ac
icon: mdi:air-conditioner
color: rgb(28, 128, 199)
When it should’ve been like this…
type: "custom:button-card"
entity: switch.ac
icon: mdi:air-conditioner
color: rgb(28, 128, 199)
it’s crazy what a couple extra spaces mess up!
15 Likes
I made the same mistake wasting 1 hours
Thank you for posting the solution
PeetsHome
(Peter)
November 29, 2020, 6:04pm
6
I had the same, but if i do it right the example is OK but i can not press the save button
ausfas
(Ausfas)
September 12, 2021, 11:16am
7
Don’t know why not a single HACS frontend dev mentions this, I wasted two hours on this, finally your post helped
1 Like
Same here, starting to test with custom cards, crazy with official documentation not working …
Official lovelace-custom-card → Referencing your new card
Your post save my day! Thank you!
1 Like
klanecko
(Branko)
January 11, 2022, 5:32pm
9
Thanks for this post Great job
uisgeb
(Frank I Parsons)
September 17, 2022, 3:17pm
10
+1 with the others. Saved my sanity!
AndSx
(Andries82)
February 11, 2023, 2:34pm
11
Spending hours on this stupid mistake…
Thanks for this answer! I found this after a couple of hours pulling my hair out, one ‘-’ in the wrong place ruins everything!