Makin-Things / platinum-weather-card

This is a fully customisable weather card for Home Assistant with a graphical configuration.
MIT License
139 stars 33 forks source link

Units #61

Open SVH-Powel opened 1 year ago

SVH-Powel commented 1 year ago

It would be nice if this card could use the units configured for the weather entity in HA instead of using hardcoded units like km/h for windspeed

image

image

It is in fact 2m/s, not 2km/h image

https://developers.home-assistant.io/docs/core/entity/weather/#unit-conversion

tommyjlong commented 1 year ago

Just tried out this card, and amazingly works pretty well! The only exception is that the air pressure is showing in units of mbar instead of inches of mercury. The weather component I use has an attribute: pressure_unit: inHg