I am building an interface for light management in a home automation system. I managed to control standard on/off and dimmable light for various providers with little proble
I know this is a fairly old question, but I'm looking at the RGB->RGBW algorithm and found this article which - whilst not the answer - may help?
http://web.archive.org/web/20101008153429/http://www.nouvoyance.com:80/files/pdf/Adding-a-White.pdf
In this, they suggest one conversion for RGB->RGBW is simply to create the W from min(R, G, B).
The reverse of this (for your scenario) would simply be to throw away the W.