A lot of tryout and debugging code for figuring out the Hue internals. I
think I get it now... :)