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

Wind Direction in N,NNE,NE,ENE,E and so on #35

Closed
beyondunreal79 opened this issue Jul 22, 2023 · 4 comments · Fixed by #38
Closed

Wind Direction in N,NNE,NE,ENE,E and so on #35

beyondunreal79 opened this issue Jul 22, 2023 · 4 comments · Fixed by #38
Assignees
Labels
enhancement New feature or request

Comments

@beyondunreal79
Copy link

beyondunreal79 commented Jul 22, 2023

Could there be a way to give the option to see the current wind direction in cardinal direction or degrees?

Capture2

@beyondunreal79 beyondunreal79 added the enhancement New feature or request label Jul 22, 2023
@tlskinneriv tlskinneriv self-assigned this Jul 22, 2023
@tlskinneriv
Copy link
Owner

Yep, I can definitely add that as another calculated sensor similar to the Solar Radiation in lux. Will get this in the next release.

@tlskinneriv
Copy link
Owner

Also, if you want a quick config for a template sensor for this:

sensor:
  - platform: template
    sensors:
      home_wind_dir_cardinal:
        value_template: >
          {% set direction = ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'] %}
          {% set degree = states('<your_winddir_entity_id>')|float(default=0) %}
          {{ direction[((degree+11.25)/22.5)|int(default=0)] }}

@beyondunreal79
Copy link
Author

Your Awesome!
One other quickie thing. Can the last lightning strike be available in miles as well as KM?

@tlskinneriv
Copy link
Owner

tlskinneriv commented Jul 23, 2023

EDIT: correct issue number

Lightning strike distance units unavailable should have been fixed in v1.1.3 ref issue #32. If you're already on v1.1.3, but aren't seeing the units option for the sensor, you may need to clear your browser/app cache. If you need both units at the same time, I'd recommend using a template sensor for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants