platinum-weather-card icon indicating copy to clipboard operation
platinum-weather-card copied to clipboard

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

Open d-walsh opened this issue 2 years ago • 3 comments

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.

d-walsh avatar Oct 23 '22 16:10 d-walsh

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).

Makin-Things avatar Oct 27 '22 01:10 Makin-Things

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.

brucehvn avatar Dec 30 '23 21:12 brucehvn