question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: light card color temperature slider does not show coldest temperatures

See original GitHub issue

Current Behavior

When light has color temperature capability, HA displays the slider going from coldest to warmest temp as a blue to orange gradient. Mushroom card shows the slider going from white to orange. screenshot of both sliders

In your original implementation, the cold temp was correctly shown (and still on the readme example image), but later a PR #48 removed this to set to white as the coldest temp. While I did see there was a technical reason, I do believe this is actually kind of a UI issue.

Couple of reason:

  • The most obvious is that by having white as coldest light: you don’t know what color you are setting! Quite a few HA integrations have spent some time aligning the scales so that the white HA is really the white of the light. Using the mushroom card, I cannot exactly see where is the actual white lamp.
  • When you bring up the HA more info panel for that light, the scale shows to from blue to orange, so having a white to orange scale in mushroom card is inconsistent and will throw user off balance as it is not expected. (I did thought there was an issue with my setup until I dig through the code of the mushroom card…)
  • I would argue that having the light icon to match the color temp slider is less of a priority for good design than having consistent slider scale with HA and being able to set colors properly

Expected Behavior

Having the same color temperature slider as HA in the mushroom card.

Steps To Reproduce

No response

Environment

- OS: 
- Node:
- Version:
- Hassio: 2022.5.4

Anything else?

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bdracocommented, May 20, 2022

if hass.states[entity_id].attributes.color_mode === "color_temp" is true its in color temp mode.

You probably don’t want to adjust the color temp slider based on the brightness value of the light as it will be quite confusing when its all pale grey.

1reaction
alessandroiascommented, May 19, 2022

I’ve opened an issue into the homeassistant’s repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Temperature slider is inconsistent with icon color · Issue #12727
I have tried a different browser to see if it is related to my browser. ... [Bug]: light card color temperature slider does...
Read more >
color temperature - original temperature confused with ...
Setting a slider to 3000K should indeed make the middle image "whiter", not warmer, since the original temperature was wrong (the camera should' ......
Read more >
What Every Videographer Should Know About The Color ...
If the white balance in your footage is off, the most likely cause is that the color temperature hasn't been accounted for correctly....
Read more >
Chapter 8 - Flight Instruments - FAA
not compensate for nonstandard temperature. Since cold air is denser than warm air, when operating in temperatures that are colder than standard, ...
Read more >
Heat Treatment for Bedbug Mitigation in Fire Sprinklered ...
Exposing an “ordinary temperature” sprinkler to temperatures in excess of 100°F during pest control procedures is inconsistent with both the requirements of the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found