kalkih / simple-weather-card

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

Wind Speed is always suffixed km/h #63

Open micaelp opened 1 year ago

micaelp commented 1 year ago

You can change the measured value in HA and the number displayed is right, but the unit is hard coded as km/h capture

chumbazoid commented 1 year ago

Same for Pressure, units are always shown as hPa.

mrtnnwmn commented 9 months ago

The custom function should allow for the UoM to be edited/omitted from a custom attribute, or perhaps even for fully custom attributes.

Example:

# Custom units
custom:
  - precipitation_probability
    entity: sensor.minutecast # If not specified, standard entity will be used
    unit: ' ' # If not specified, standard units will be used

# Fully custom attribute
custom:
  - name: minutecast 
    entity: sensor.minutecast
    unit: ' '

secondary_info:
  - minutecast