Lovelace Windrose Card

hello how I can add gust sensor?


type: custom:windrose-card
title: Wind direction
data_period:
  hours_to_show: 6
windspeed_bar_full: true
wind_direction_entity:
  entity: sensor.gw1100a_wind_direction
windspeed_entities:
  - entity: sensor.gw1100a_wind_speed
    name: Velocità
output_speed_unit: kph
refresh_interval: 60
center_calm_percentage: true
windspeed_bar_location: right
speed_range_step: 5
speed_range_max: 45
speed_range_beaufort: false
cardinal_direction_letters: NESO
show_current_direction_arrow: true
speed_ranges:
  - from_value: 0
    color: rgb(0,255,0)
  - from_value: 5
    color: yellow
  - from_value: 10
    color: hsl(200, 100%, 60%)
  - from_value: 20
    color: orange
  - from_value: 40
    color: red

Like this:

wind_direction_entity:
  entity: sensor.gw1100a_wind_direction
windspeed_entities:
  - entity: sensor.gw1100a_wind_speed
    name: Velocità
  - entity: sensor.gw1100a_wind_gust
    name: Velocità gust
output_speed_unit: kph

Can cardinal_direction_letters be changed to display more than one letter per compass point? Perhaps the input text can be delimited or made into an array, like cardinal_direction_letters: “N,E,S,W”?

I would like to be able to customise the names of the points to use the card to represent the direction of the solar wind, measured in two directions with a positive or negative sign.

For example cardinal_direction_letters: “Bz+,By+,Bz-,By-”, so there’s still four labels but they have more than one character.

I had did request before. Can you make a feature request on GitHub? (add an issue)

https://github.com/aukedejong/lovelace-windrose-card/issues

That’s how I track feature requests.

Release 1.8.0 is finally ready, little later than planned.

Features:

  • Auto rotate windrose on compass sensor, useful on for example a boat.
  • Current wind direction arrow now pointing inwards. #71
    Had multiple requests for this. The arrow is now pointing to where the wind is flowing too.

Bug fixes:

  • Current wind direction arrow disappearing sometimes. Could not reproduce it after refactoring the code. #72

thank you!

another think,
why is the scale from 1 to 12 and not up to 50?
what is wrong with my code?


type: custom:windrose-card
title: Wind direction
data_period:
  hours_to_show: 6
windspeed_bar_full: true
wind_direction_entity:
  entity: sensor.gw1100a_wind_direction
windspeed_entities:
  - entity: sensor.gw1100a_wind_speed
    name: Velocità
  - entity: sensor.gw1100a_wind_gust
    name: Raffiche
output_speed_unit: kph
refresh_interval: 60
center_calm_percentage: true
windspeed_bar_location: bottom
speed_range_step: 5
speed_range_max: 50
speed_range_beaufort: true
cardinal_direction_letters: NESO
show_current_direction_arrow: true
speed_ranges:
  - from_value: 0
    color: rgb(0,255,0)
  - from_value: 5
    color: yellow
  - from_value: 10
    color: hsl(200, 100%, 60%)
  - from_value: 20
    color: orange
  - from_value: 40
    color: red

Change this to false.

1 Like

if you look carefully, in my code it is already true

Which is why I said:

i.e. NOT true.

ok changed, but i want like this:

image

step of 5 while now with the value in false it became like this:
image

If you want steps of 5km/h you need to specify that here:

speed_ranges:
  - from_value: 0
    color: rgb(0,255,0)
  - from_value: 5
    color: yellow
  - from_value: 10
    color: hsl(200, 100%, 60%)
  - from_value: 20
    color: orange
  - from_value: 40
    color: red

At the moment your steps are 0, 5, 10, 20, and 40.

1 Like

Here are my colours:

speed_ranges:
  - from_value: 0
    color: '#93abca'
  - from_value: 5
    color: '#039BE5'
  - from_value: 10
    color: '#63e686'
  - from_value: 15
    color: '#0da035'
  - from_value: 20
    color: '#e0b400'
  - from_value: 25
    color: '#ff8000'
  - from_value: 30
    color: '#e45e65'
  - from_value: 35
    color: '#ff4754'
  - from_value: 40
    color: '#b200ff'
2 Likes

You are the best!

thank you sir.

sorry, but maybe the gust range should be set differently otherwise you can’t understand the graph.

how do you change the range and colors of the gust only?

image

There is only one set of colours for both.

Released version 1.8.1

  • Fix: when current wind direction is VRB (variable), use direction 0. #73
    Need to think about how to handle none direction states like CALM en VRB (variable)
  • Fix: error in readme.md #74
2 Likes

Is there anyway to just get the current wind speed in the middle as opposed to the percentage of calm>?

Currently not possible, but you can open a feature request on Github.
Just add an issue in the lovelace-windrose-card repo.

1 Like

after update HA version not working

image

Looks like it renders correctly.
Maybe history data is gone?
I had the same issue after an update. Had to do with added support of a new unit type, if I remember correctly.

You can check the history in the History tab in Home Assistant.