Compass card update :-(

hello.
today i updated to the new version of the compass card, and that’s where the problems started. in the release notes it says that i have to replace type: with image: under the indicator sensors. the thing is, with most of my compass cards that worked, but my wind indicators stubbornly refuse to accept the new config, and i can’t find out why. what am i doing wrong? why would it work with some compass cards but not with others?

i keep getting this error message:

Compass Card: invalid yaml configuration. At path: indicator_sensors.0.indicator.image -- Expected the value to satisfy a union of `enums | string | string`, but received: "arrow"

Paste your full YAML section for the wind direction indication. I had to change mine as well, Had to remove the offset because of an error “null” when it wants a number. Added the other direction indicators for east, south, west. Now everyting is working as it should

The card has seen a lot of changes (me as a part culprit) and it would be nice to raise issues in its github so things can be tracked centrally, forums tend to loose focus.

A key new feature is config validation but in certain cases this raises (clearly) confusing things… From the text itself I would not know right now as well what to do.
When requesting to update, it does show changes and there are a few breaking changes that you should have read.

Release v3.0.0 · tomvanswam/compass-card

If still not clear, please raise here (too): Issues · tomvanswam/compass-card

Instead of arrow, you should use arrow_inward or arrow_outward.

Arrow is not a valid indicator option.

this is my code, I cant figure it out what to do:

  - type: custom:compass-card
    indicator_sensors:
      - sensor: sensor.hp3500pro_v1_6_9_wind_direction
    value_sensors:
      - sensor: sensor.hp3500pro_v1_6_9_wind_speed
    style:
      left: "-5.5%"
      top: 38%
      transform: scale(0.60,0.60)
      width: 19%
      "--ha-card-border-width": 0px
      "--ha-card-background": rgba(255, 255, 240, 0)

You need to add some to that yaml, you must add 2 lines for each sensor, the indicator and the image, see the section:

An indicator config must be provided and specifically below that:

This has to be expanded to

1 Like

I tried to add code but still not working:

  - type: custom:compass-card
    indicator_sensors:
      - sensor: sensor.hp3500pro_v1_6_9_wind_direction
    indicator:
      image: arrow_inward
    value_sensors:
      - sensor: sensor.hp3500pro_v1_6_9_wind_speed
    style:
      left: "-5.5%"
      top: 38%
      transform: scale(0.60,0.60)
      width: 19%
      "--ha-card-border-width": 0px
      "--ha-card-background": rgba(255, 255, 240, 0)

style is not an option for the card so it fails right now, see here
YAML validation in 3.0.0 to strict with picture elements card · Issue #1168 · tomvanswam/compass-card

Are you using the compass card in a picture element card? If so, this is a known issue. We’re testing a prerelease version now that will fix this.

You also formatted wrong: