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

cant get flex horse shoe to work #93

Open
gralfj opened this issue Sep 24, 2024 · 9 comments
Open

cant get flex horse shoe to work #93

gralfj opened this issue Sep 24, 2024 · 9 comments

Comments

@gralfj
Copy link

gralfj commented Sep 24, 2024

i have installed via HACS
then I went to resources manager and added

Sin título

  • type: 'custom:flex-horseshoe-card'
    entities:
    - entity: weather.dark_sky
    attribute: temperature
    decimals: 1
    unit: '°C'
    area: De Maan
    show:
    horseshoe_style: 'lineargradient'
    layout:
    states:
    # Refers to the first entity in the list, ie index 0
    # State value is positioned at (50%,60%) with a large font size
    # The size of the units are automatically calculated at 60% of the
    # state value font size and shifted upwards.
    # The default font color is the theme defined primary-text-color.
    - id: 0
    entity_index: 0
    xpos: 50
    ypos: 60
    styles:
    - font-size: 3.5em;
    areas:
    # Refers to the first entity in the list, ie index 1
    # Area value is positioned at (50%,35%) with font-size 1.5 and
    # an opacity of 80%.
    # The default font color is the theme defined primary-text-color.
    - 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'

resulting in no card type configured when just trying this code

obviously changed the entity to enter one existing in my HAOS

@gralfj
Copy link
Author

gralfj commented Sep 25, 2024

Hi, again, I have read again the manual and maybe I didn´t unrstood the first time.

I just have realized that I can install flex-horseshoe-card directly from HACS.

The point is that I uninstalled the first copy, cleared caches, etc and then proceed to install via HACS, I have to sadly say that the problem is unsolved.

1

in the resources sections, an entry was automatically created

2

the result, is the same

3

@mikejlaurie
Copy link

I have the same problem

@bumperboy
Copy link

I also wanted to test this card but unfortunately I have the same issue as mentioned above

@Mange131
Copy link

Mange131 commented Nov 5, 2024

If flex horseshoe card.js are in www catalog you must Add the following to your configuration.yaml (or via the interface):
lovelace:
...resources:
.......- url: /local/flex-horseshoe-card.js
type: module

(remove the dots)

  1. Verify File's Actual Location:

Check if the flex-horseshoe-card.js file really exists in the /www/ folder. For /local/ to work as a path, the file needs to be in /config/www/. If it is in a different location, move it to /config/www/.

  1. Restart Home Assistant:

After updating the configuration.yaml, don't forget to restart Home Assistant to ensure the changes take effect.
Its worked for me . bit hard to explain am new to this

@roblomq
Copy link

roblomq commented Nov 25, 2024

If you install it through HASS then the flex-horseshoe-card.js is installed in

homeassistant/www/community/flex-horseshoe-card

but when i use this path in the configuration.yml it still doesn't work (error "no card type configured")

@Mange131
Copy link

I don't know. I'm new on this. Here is picture of mine configuration file
Screenshot_20241125-202823~2

@Mange131
Copy link

Mange131 commented Nov 25, 2024

Start with a simple horseshoe card. I had problem to. I used chatgpt for error message. The more advanced horse shoe card its not working for me yet

type: custom:flex-horseshoe-card
entities:

  • entity: sensor.vrum_temperatur
    attribute: temperature
    decimals: 1
    unit: null
    area: Temp ute
    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: -30
        max: 100
        color_stops:
        "10": blue
        "18": red

Screenshot_20241125-205405~2
Screenshot_20241125-204735

@Mange131
Copy link

Mange131 commented Nov 25, 2024

I used a manual card to start with. And use chatgpt for correction of the yaml code

Don't start with this
.- type
Only this
Type

@JGNi
Copy link

JGNi commented Nov 26, 2024

It looks like a dead project. Such a shame.

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