Lovelace Windrose Card

That’s another card (without title) stacked below the windrose card.

Version 1.5.0 released.
Added support for Beaufort windspeed scale.

If you change the entities speed unit in HA, history data is not changed.
The windrose uses history data, so the card gets values with mixed unit types. This can cause errors in the browsers console.

1 Like

hey is it possible to use 4 hall sensors for this card
i have wind directions from 4 hall sensors that can output 8 directions

You need to make a template sensor to combine the four hall sensors into a single direction sensor. Start a new topic for help with this.

1 Like

Hi Rob, is it possible to sent me the custom:config-template-card beacause i cannot make it work. I’m trying to do same thing to my boat to tilt the compass according to the direction. Thank you.

I love this card.
What was my wish: show the current (most recent) wind direction as a radial line in the rose. This helps to determine the direction in real time.

I haven’t played around with the card to see what options there are for current vane direction.

This is some concept ideas I would have for it.
Current direction only:


Current and previous (minutes) direction:

Is it possible to change the names of the cardinal compass points on the rose? Using the card to represent the clock angle of the solar wind I would like to use either numeric 0/90/180/270 degrees or free text such as +Bz/+By/-Bz/+By as the labels for the four directions.

1 Like

Would it be possible to either add a period selector or make the period option templatable?
I would like to have the period selectable by end-users…

I’m currently working on SVG rendering, for better scalability.

Preview:
On the left SVG, on the right the older canvas rendering.

It’s not completely tested yet.
Hopefully it will fix the growing problem some users experience.

I’ll expect to release the new version next week.

And maybe after I’ll implement some feature requests.

6 Likes

Version 1.6.0 released.

Switch to vector graphics. (SVG) Latest

The complete card is now rendered using scalable vector graphics (SVG).
This should result in a sharper image and better scalability.

Also the margin and sizes within the card are changed. This can result an in larger card, so maybe you need to reorder the cards on your dashboard.

In the previous post you can compare old vs new.

This was a big change, so there could be bugs. Please let me know.

2 Likes

I’m getting a download error (toast notification bottom left):

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/hacs/repositories/plugin.py:165
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 17:12:54 (4 occurrences)
Last logged: 17:16:20

[139724638290848] Error handling message: Unknown error (unknown_error) Tom L from 10.1.1.2 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/hacs/websocket/repository.py", line 234, in hacs_repository_download
    await repository.async_download_repository(ref=msg.get("version"))
  File "/config/custom_components/hacs/repositories/base.py", line 1436, in async_download_repository
    await self.async_install(version=ref)
  File "/config/custom_components/hacs/repositories/base.py", line 890, in async_install
    await self._async_post_install()
  File "/config/custom_components/hacs/repositories/base.py", line 909, in _async_post_install
    await self.async_post_installation()
  File "/config/custom_components/hacs/repositories/plugin.py", line 65, in async_post_installation
    await self.update_dashboard_resources()
  File "/config/custom_components/hacs/repositories/plugin.py", line 208, in update_dashboard_resources
    url = self.generate_dashboard_resource_url()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/repositories/plugin.py", line 165, in generate_dashboard_resource_url
    if "/" in filename:
       ^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

My mistake, should be working now.

3 Likes

Yes it is. Thank you for your continued work on this.

The slightly larger size didn’t even mess up my dashboard :partying_face:

2 Likes

Awesome. Working for me. I will try some smaller card sizes as that was one of my original requirements. Thank you

Version 1.6.1 released.

Quick fix for dashboards using sections view type.

New feature coming soon, showing current wind direction. Something Mark_M suggested in a post above.

2 Likes

Version 1.6.2 released, sorry.
Version 1.6.1 had a bug.

Quick fix for dashboards using sections view type.

1 Like

Hhhhhmmmmmm. Seems a bit too eager for space. Only just started using sections, so excuse my ignorance

The card is square. In a square a height = width.

1 Like

Released version 1.7.0

New feature:

  • Show current wind direction with a red arrow. Color can be configured.
    Set show_current_direction_arrow property to true. Default is false.

Fixes:

  • Removed max_width from readme. Not needed anymore. Fixes #69
  • cardinal_direction_letters config fixed.
  • Don’t rotate the cardinal direction letters, when north offset is set. Fixes #7
  • On refresh triggeered by the timer, the new windrose was drawn over the old one. Now the SVG is cleared.
  • Now uses automatic color (black or white) depending on backgroundcolor for center calm percentage and the bar percentages. Can be overriden with the color config parameters. (experimental) Fixes #47
4 Likes