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.

Unsupported color mode rgb

See original GitHub issue

Hi, I’m trying to make LUT files for my Yeelight bulbs. The integration supports color_temp, hs, and rgb modes. I tried making the rgb.csv table with a format of bri,r,g,b,watt, but fell flat when powercalc realised it doesn’t know what this rgb business is about. 😅

2021-07-13 14:34:30 DEBUG (MainThread) [custom_components.powercalc.strategy_lut] Loading data file: /home/ha-arcana/.homeassistant/custom_components/powercalc/data/yeelight/YLDP06YL/color_temp.csv.gz
2021-07-13 14:34:30 DEBUG (MainThread) [custom_components.powercalc.strategy_lut] Loading data file: /home/ha-arcana/.homeassistant/custom_components/powercalc/data/yeelight/YLDP06YL/hs.csv.gz
2021-07-13 14:34:30 DEBUG (MainThread) [custom_components.powercalc.strategy_lut] Loading data file: /home/ha-arcana/.homeassistant/custom_components/powercalc/data/yeelight/YLDP06YL/rgb.csv.gz
2021-07-13 14:34:30 ERROR (MainThread) [custom_components.powercalc.sensor] Skipping sensor setup light.arcana_shelves: Unsupported color mode rgb

If you can add RGB, I should be able to get this to work. Perhaps having some logic to convert HS table values into RGB would a useful way to do it? Once LUTs are working for this bulb, I can add mine into the repository.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gdreelincommented, Aug 25, 2021

@bramstroker oh ok thanks! Love you username…lol

1reaction
bramstrokercommented, Jul 13, 2021

So I guess if any of those modes are available for an entity, avoid loading rgb.csv.gz etc, and instead just use the HS LUT, no problems? 🤔

Yes that also seems the easiest solution to me. I can have a look into this next friday.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unsupported color mode CMYK (2019) - gimpusers.com
As you found Gimp does not support cyan-magenta-yellow-black (cmyk) colour space. Gimp is a red-green-blue (RGB) bitmap editor.
Read more >
Fix PSD File Error Unsupported Color Mode CMYK - Yodot
Method 1: Open the PSD file in Adobe Photoshop and convert its color mode to RGB mode. · Method 2: Make use of...
Read more >
Unsupported color Mode - Adobe Support Community
When I try to open my original .ai I am getting a "Unsupported color mode or depth. Only RGB, CMYK,grayscale and Bitmap are...
Read more >
Error Loading PSD File Unsupported Color Mode CMYK
Go to mode and choose option RGB. These simple tricks often help you open PSD files with CMYK color mode in GIMP application....
Read more >
Unsupported color conversion request - Google Groups
You can try converting to RBG color-space via ImageMagick (convert) or any other image-editor tool. convert -colorspace RGB 05.jpg 05_RGB.jpg. cwebp -q 75 ......
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