Hue-sensors-HASS icon indicating copy to clipboard operation
Hue-sensors-HASS copied to clipboard

honor "unit_system" setting for temperature

Open magnus919 opened this issue 5 years ago • 2 comments

Currently the temperature sensor is providing only Celsius readings (understanding that's probably straight from the sensor). Ideally the "unit_system" setting would be honored so that when that is set to "imperial", the right temperature is displayed without every sensor having to be wrapped in templates.

magnus919 avatar Jul 30 '18 11:07 magnus919

Im not sure if there is a standard way of doing this in Home-Assistant..?

robmarkcole avatar Jul 30 '18 12:07 robmarkcole

If the temperature sensor would be presented as a separate entity, and unit_of_measurement attribute returns either TEMP_CELSIUS or TEMP_FAHRENHEIT, then entity helper should take care of conversion automatically. Depends on #115

yottatsa avatar Feb 11 '19 15:02 yottatsa