Lovelace Windrose Card

Thanks Auke. I thought I was keeping up with the changes. :flushed:

I have fixed the depreciated options but I think the real fix was changing the matching strategy to “full-time”. This particular location only updates every 10 minutes at most (both direction and speed), often a lot less, and I think that was what was skewing the output when using “direction-first”.

type: custom:windrose-card
title: Wind Rose
data_period:
  log_measurement_counts: false
  period_selector:
    location: bottom
    active_color: white
    active_bg_color: var(--secondary-text-color)
    buttons:
      - hours: 4
        title: 4 hr
      - hours: 8
        title: 8 hr
      - hours: 24
        title: 24 hr
        active: true
      - hours: 168
        title: 7 days
max_width: 400
refresh_interval: 300
windspeed_bar_location: bottom
wind_direction_entity:
  entity: sensor.casey_wind_direction
  direction_unit: letters
  use_statistics: false
  direction_compensation: 0
windspeed_entities:
  - entity: sensor.casey_wind_speed
    name: " "
    speed_unit: knots
    output_speed_unit: knots
    speed_range_beaufort: false
    use_statistics: false
    windspeed_bar_full: true
speed_ranges:
  - from_value: 0
    color: "#93abca"
  - from_value: 5
    color: "#039BE5"
  - from_value: 10
    color: "#63e686"
  - from_value: 15
    color: "#0da035"
  - from_value: 25
    color: "#e0b400"
  - from_value: 35
    color: "#ff8000"
  - from_value: 45
    color: "#e45e65"
  - from_value: 60
    color: "#ff4754"
  - from_value: 80
    color: "#b200ff"
background_image: /local/background/casey.png
windrose_draw_north_offset: 0
direction_labels:
  cardinal_direction_letters: NESW
matching_strategy: full-time
current_direction:
  show_arrow: true
  arrow_size: 40
center_calm_percentage: true

I’m now seeing what I expect:

1 Like

Released version 1.19.0

Finally implemented a feature requested back in 2023. It was a big one, needed a lot of code changes.
If you encounter bugs, please let know by reporting a github issue.

Feature:

  • Show current wind speed arrow on the legend bars, implements #49
    Add this config to a windspeed entity block:
    current_speed_arrow: true

Fixes:

  • When not showing all speed ranges in the legend bar (windspeed_bar_full: false), render_relative_scale did not work.
  • Refactored bar render code.

2 Likes

This is great, I just implemented it! Is there any way to have a setting to tell it to appear on the other side of the bar so that it does not sometimes cover the label?

Example (I would love it if the arrows were on the other side of the bar pointing upwards!):

Released version 1.19.1

And the first bugfix already.

Fixes:

  • The second windspeedbar used the wrong speed unit converter.

@KruseLuds
Can you open a feature request on GitHub?

Sure but I will be opening two unfortunately. Ever since 1.19.0, the graph in the middle is always zero… I did clear my browser cache… I have to go back to 24 hours to see anything at all in the graph (?) I also did check and my weather station is reporting wind during that period…

Let me say however, trhis thing you have created is DIGGITY BOMB!

Here they both are:

1 Like