esphome / esphome/feature-requests

Use Kelvin as the preferred color temperature unit

Open
#2,186 12 comments 1 reaction 0 assignees View on GitHub
component: light
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**
When communicating with Home Assistant through the `api` component, communication should be done in kelvin rather than mireds.

**Please describe your use case for this integration and alternatives you've tried:**
The maximum temperature of my device is 6500 kelvin, but I can only set it as high as 6493 kelvin due to unit conversion.
![Screenshot from 2023-03-20 20-23-45](https://user-images.githubusercontent.com/92653912/226519145-5e2057ea-e184-462b-a6ab-a967a98ff33f.png)

The same issue occurs for the lower bounds. The minimum for this device is 2700, however I can only set it as low as 2702 kelvin.
![Screenshot from 2023-03-20 20-24-16](https://user-images.githubusercontent.com/92653912/226520085-9aff92fd-e0f2-4434-8c67-433c3c6399c0.png)

In addition, there's this frustrating visual effect when setting the temperature as a result of unit conversion.
[Screencast from 03-20-2023 08:24:30 PM.webm](https://user-images.githubusercontent.com/92653912/226520472-c3c00698-6bfe-4e76-8acc-7937f6941631.webm)

There are no alternatives to be tried other than simply not using ESPHome since mireds are the only unit used in communication with Home Assistant.

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.