tlskinneriv / awnet_local

Enables local support for Ambient Weather personal weather stations.
28 stars 5 forks source link

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

Closed beyondunreal79 closed 1 year ago

beyondunreal79 commented 1 year ago

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

Capture2

tlskinneriv commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

tlskinneriv commented 1 year ago

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.