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.

Properly show state for xy, ct color modes

See original GitHub issue

Describe the bug

We currently set the state as a static xy or ct depending on the bulb type instead of setting it to whatever mode the light is currently in. We would first need to figure out a way to get the light mode, ct or xy, from HASS then display that accordingly. A problematic issue is that I do not see any data from HASS that tells me if the device is in ct or xy/rgb mode.

https://github.com/hass-emulated-hue/core/blob/cd9a5eb6357fd1bfea402592fd3f24817c492bc8/emulated_hue/api.py#L702

Steps to Reproduce

Expected behavior

Keeping a static xy/color mode confuses apps like Hue Essentials into showing weird info.

Logs

Hardware Info:

  • Architecture (Ex: x86, ARM):
  • Addon version (Ex: stable or dev):
    • Value of “tag_commit_or_branch” if using dev:
  • OS (Ex: Windows 10, Ubuntu Buster):
  • Hardware (Ex: PC, Raspberry Pi 1/2/3/Zero):

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marcelveldtcommented, Jan 15, 2021

While I agree with you that all implementations should handle it like this, this isn’t the case. For example esphome lights will return all possible values, regardless of what mode the light is actually in.

Schermafbeelding 2021-01-16 om 00 55 31
0reactions
alexyao2015commented, Oct 6, 2021

fixed in #196

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zigbee RGB bulbs XY only no HS, can't change colours - Issues
In the Philips Hue app I can group all 3 lights and change their colours together, so if I select Red they all...
Read more >
Understanding Color - X-Rite
This Guide to Understanding Color is a handy educational tool and how-to guide for all things ... 7 shows the continuum of color...
Read more >
Circadian Lighting [Custom Component]
Circadian Lighting lets you have set lights using color temperature, RGB, XY, or just brightness - all within the same switch.
Read more >
Image Processing with Python - Data Carpentry
Colour images can be transformed to grayscale using skimage.color.rgb2gray() or, in many cases, be read as grayscale directly by passing the argument mode="L" ......
Read more >
Understanding the Colour Gamut of an LCD Monitor - Eizo
In the following xy chromaticity diagram, the area shaped like an upside-down "U" surrounded by dotted lines indicates the range of colours visible...
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