kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
285 stars 33 forks source link

Wind speed #21

Closed alexpod93 closed 4 years ago

alexpod93 commented 4 years ago

Hello! Is it possible to change wind speed from "km/h" to "m/s"?

kalkih commented 4 years ago

Hello, km/h and mph seems to be the standard measurement of wind speed in HA. You can however override the wind_speed information of this card with your own sensor, so you could provide it with a sensor where you got the unit of measurement and speed in m/s.

- type: custom:simple-weather-card
  entity: weather.smhi_home
  custom:
    - wind_speed: sensor.wind_in_ms

Thanks!

alexpod93 commented 4 years ago

I already got wind sensor in m/s, but it shows in weather card as km/h. Example: sensor shows “3 m/s”, weather card shows “3 km/h”. When I looked through the code of weather card, I thought that measure km/h is fixed as only possible measure in card whatever third party sensors shows. Am I right?