xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
3k stars 636 forks source link

Magic Home (v1.4 and v2.0) displaying colors wrongly #345

Closed xoseperez closed 6 years ago

xoseperez commented 6 years ago

Originally reported by: Jannis Lehmann (Bitbucket: Cludch, GitHub: Cludch)


Hello,

today I flashed both my Magic Home RGB (not RGBW) controller to use espurna. One is version 1.4 and the other 2.0.

But both are displaying the colors not correctly. The 1.4 shows only green and the brightness slider somehow makes it blue-ish.

The 2.0 shows for green when selecting blue. Shows red when selecting yellow amd channel 4 controls blue. I tried a few things but was unable to find the issue. Could this be related to the mapped GPIOs or could this even be a hardware failure?

xoseperez commented 6 years ago

Original comment by Jannis Lehmann (Bitbucket: Cludch, GitHub: Cludch):


Not yet, no. Will do as I get home tomorrow. Will try your patch as well.

I tried version 1.11.1 with the 1.4 and 2.0 board. The 2.0 board did not change behavior and the 1.4 board can no longer be turned off, which is either a pinout fault or actually a hardware failure. I will try out the library I supplied earlier.

xoseperez commented 6 years ago

I have added support for AL-LC01 and AL-LC11 (AL-LC06 was already available). The library above seems to support only v1.4 of the devices... have you tested it?

xoseperez commented 6 years ago

Issue #232 was marked as a duplicate of this issue.

xoseperez commented 6 years ago

Thanks, will add those definitions to the firmware!

xoseperez commented 6 years ago

Original comment by Jannis Lehmann (Bitbucket: Cludch, GitHub: Cludch):


I have no multimeter right now, but I will ask around to see if someones has one.

Edit: I found this issue https://github.com/arendst/Sonoff-Tasmota/issues/370 and this project https://github.com/mertenats/Arilux_AL-LC0X , which claims to support als different types.

xoseperez commented 6 years ago

I have just tested this on RGBW versions, so I hope it is related to the GPIOs. Do you have the chance to find out what GPIOs are connected to what channels using a multimeter?

xoseperez commented 6 years ago

@Cludch Any update on this? Yesterday I pushed a commit to the dev branch (4b2a4ffaa40aefc3c2a59c754e6b2ce90def3e9b) with support for MagicHome LedController board revision 2.3 which swaps red and green channels compared to 2.0. Maybe that is the reason for this issue?

jannislehmann commented 6 years ago

Will look into this and report back during the weekend.

jannislehmann commented 6 years ago

I'm sorry, I won't have the time to test this since I removed my stripes and dont have cables soldered to the controller. My guess is that I broke the controller since it didnt work with other software either.

xoseperez commented 6 years ago

Closing it then. Feel free to open it again in the future.