Closed beyondunreal79 closed 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.
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)] }}
Your Awesome! One other quickie thing. Can the last lightning strike be available in miles as well as KM?
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.
Could there be a way to give the option to see the current wind direction in cardinal direction or degrees?