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

Customer elements doesn't exist #97

Open
glemag opened this issue Nov 14, 2024 · 11 comments
Open

Customer elements doesn't exist #97

glemag opened this issue Nov 14, 2024 · 11 comments

Comments

@glemag
Copy link

glemag commented Nov 14, 2024

After last updated card crashed, tried to reinstall - no luck

Core
2024.11.1
Supervisor
2024.11.2
Operating System
13.2
2024-11-14_17-57-54

@Marmoulak
Copy link

same problem after upgrade to Core 2014.12.1. I have remove it and download it again but did not help.
Core 2024.12.1
Supervisor 2024.11.4
Operating System 14.0
Frontend 20241127.6

@Kratax
Copy link

Kratax commented Dec 8, 2024

I have the same issue with HA 2024.11.3, seems it stopped working... re-download not working

@Duncan1106
Copy link

I had the same issue with this and another custom card. Here’s what I did to resolve it:

  1. Removed it in HACS so that it was no longer installed.

  2. Rebooted the system.

  3. Re-added it, and it worked again.

Hopefully, this helps someone!

I'm running:
Core: 2024.12.1
Supervisor: 2024.11.4
Operating System: 14.0
Frontend: 20241127.6

@Kratax
Copy link

Kratax commented Dec 8, 2024

Worked as well, thanks!

@Marmoulak
Copy link

its working again. Thanks @Duncan1106

@Miloux99
Copy link

Miloux99 commented Jan 8, 2025

I have 2025.1 installed.
I'm unable to get this card on the dashboard.
Errormessage is Custom element doesn't exist: flexible-horseshoe-card.
Has anybody a hint?

@Duncan1106
Copy link

@Miloux99 have you tried my method from above?

@boulete31
Copy link

boulete31 commented Jan 8, 2025

same here, trick above doesn't work.

Capture d’écran 2025-01-08 à 14 39 25

@Duncan1106
Copy link

@boulete31
It appears your error is different from ours.
Your code seems to function I've tested it on my system:

type: custom:flex-horseshoe-card
entities:
    - entity: sensor.kaffee_temperature
      decimals: 1
      unit: °C
      area: De Maan
show:
    horseshoe_style: 'lineargradient'
layout:
    states:
     - id: 0
       entity_index: 0
       xpos: 50
       ypos: 60
       styles:
        - font-size: 3.5em;
    areas:
     - id: 0
       entity_index: 0
       xpos: 50
       ypos: 35
       styles:
        - font-size: 1.5em;
        - opacity: 0.8;
horseshoe_scale:
    min: 10
    max: 40
color_stops:
    10 : 'red'
    18 : 'blue'

I don't know what you could do differently. I'm not very good with this card...

At the bottom you have another error, maybe your attribute is typed wrong or something like that? Maybe you want to access the state of the entity directly and not an attribute of it? If so remove line 4:

attribute: temperature

If your adding it via Manual card remove the " - " before the type and move the type at the very beginning of the line. If I copy it directly out I get the same error as yours, but if the type is at the very beginning it does function properly, also move the lines: show, layout, horseshoe_scale and color_stops at the very beginning of each corresponding line.

If all of the above isn't helping:
Try to clear your browser cache or of the Homeassistant app and completely reboot the Homeassistant system, if that's not helping I don't know what to do.

@boulete31
Copy link

@Duncan1106 Thank you !

I feel so stupid :) It was the "-" 🙈

Time to customize now.

@boulete31
Copy link

Works great !
Capture d’écran 2025-01-08 à 18 35 05

`type: custom:flex-horseshoe-card
entities:

  • entity: sensor.t01_salon_temperature
    attribute: temperature
    area: null
    decimals: 1
    name: salon
    unit: c
  • entity: sensor.t01_salon_humidity
    attribute: humidity
    decimals: 0
    unit: "%"
    icon: mdi:water-percent
  • entity: sensor.t01_salon_battery
    attribute: pressure
    decimals: 0
    unit: "%"
    icon: mdi:battery-charging-outline
    show:
    horseshoe_style: colorstop
    layout:
    hlines:
    • id: 0
      xpos: 50
      ypos: 42
      length: 40
      styles:
      • stroke: var(--primary-text-color);
      • stroke-width: 2;
      • stroke-linecap: round;
      • opacity: 0.7;
        states:
    • id: 0
      entity_index: 0
      xpos: 50
      ypos: 40
      styles:
      • font-size: 3.5em;
    • id: 1
      entity_index: 1
      xpos: 47
      ypos: 57
      styles:
      • text-anchor: start;
      • font-size: 1.5em;
    • id: 2
      entity_index: 2
      xpos: 49
      ypos: 72
      styles:
      • text-anchor: start;
      • font-size: 1em;
      • opacity: 0.7;
        icons:
    • id: 0
      entity_index: 1
      xpos: 47
      ypos: 57
      align: end
      size: 1
    • id: 1
      entity_index: 2
      xpos: 51
      ypos: 72
      styles:
      • text-anchor: start;
      • font-size: 0.7em;
      • opacity: 0.7;
        align: end
        size: 1
        names:
    • id: 0
      entity_index: 0
      xpos: 50
      ypos: 95
      horseshoe_scale:
      min: 0
      max: 30
      color_stops:
      "1": blue
      "16": orange
      "22": red
      `

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

6 participants