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

[Feature Request] Ability to show different units to what is configured in HA settings #65

Open d-walsh opened 1 year ago

d-walsh commented 1 year ago

Is your feature request related to a problem? Please describe. I need to use US units in HA because I live in the US and all my sensors and AC controls are in Fahrenheit but I come from a country that uses Metric units so when I look at outside weather I want to have temperature in Celsius.

Describe the solution you'd like I would like a setting to be added to be able to set the Temperature values in this Weather Card to show in Celsius even though my HA config is in Fahrenheit. Essentially decoupling the display units from the HA units.

Describe alternatives you've considered There are none.

Additional context Add any other context or screenshots about the feature request here.

Makin-Things commented 1 year ago

I have no intention of implementing any unit conversion in the actual card. The HA devs are currently changing the unit conversions work (Temperature is already done, other unit type are coming at some point). For any temperature sensor you should be able to configure the unit to use on the actual sensor. I am not sure how this is all going to play out yet as it is not well documented (or at least I can't find anything useful).

brucehvn commented 8 months ago

I have a similar issue. I live in the US, but my wife prefers temperatures in Celsius. I already have sensors that do the conversion, so all I need in the card is to use the unit of measurement from the sensor in the display. Right now it shows all the temperatures in Celsius, but still follows the temperatures with "F" instead of "C". So we don't need the card to do any conversions, just display the unit of measure that's configured for the sensor. Years ago, I did this once with a previous incarnation of this card when it was maintained by another user, but I never submitted it as a pull request. What I did then was have what you would call a "global setting" that would force a particular temperature unit of measure, but since it's available with the sensor itself, I think it's better to just use that.

Z3r0shin commented 1 day ago

I am also experiencing some issues with this. Even official integrations that are from metric using countries (I live in Canada) that do not output their sensors in anything else than metric are being shown in F in the card. No matter if its a weather entity temperature sensor that has been specifically coded to be in C or any other alternative method for it to show in C, it just shows temp in F.