bruhautomation / ESP-MQTT-JSON-Digital-LEDs

(OBSOLETE) ESP8266 MQTT JSON Digital LEDs for Home Assistant
https://youtu.be/9KI36GTgwuQ
Apache License 2.0
513 stars 267 forks source link

Led colours incorrect #70

Open scottsuine opened 6 years ago

scottsuine commented 6 years ago

Hi Have got this up and running using ws2812b leds. Effects work great and control though Hassio is perfect. One issue. When I select Solid effect and pick a colour from the picker, Red makes lights red, Green makes them blue, and Blue makes them green and all in between colours are mixed up. The mqtt message sent to the ESP8266 is correct, sending this manually gets red correct but blue and green are reversed. SO Hassio is sending the correct values, it is the code that is not interpreting them correctly. I have tried changed the value in the COLOR_ORDER const from RGB, GRB, BRG, GBR but this doesn’t change anything. - Colours are still wrong. Is there some other place to fix this issue in the code. I am using the latest Fast led code.

Thanks Scott

Joeboyc2 commented 6 years ago

Hi Scott,

I had a similar issue, it was driving my nuts, but then I found a really simple script that helped me work out which code to use.

https://github.com/FastLED/FastLED/wiki/Rgb-calibration

It's one of the examples that ships with the fast led library.

Upload that to your controller and you'll soon know which order you need to address the leds in

scottsuine commented 6 years ago

Thanks that sorted it. All Good now thanks