Hello,
I am trying to make a DTH for a “Mi Light Bulb”; this is based on the simulated RGBW Bulb, and sends an AutoRemote command to an android tablet running Tasker for execution.
I am currently stuck on integrating the colors… The documentation says colors are split into 255 HEX segments (0x00 to 0xFF) which seem to fade between each other, but examples are only given in increments of 16:
Violet,0x00,#EE82EE
RoyalBlue,0x10,#4169E1
LightSkyBlue, 0x20,#87CEFA
Aqua,0x30,#00FFFF
AquaMarine, 0x40,#7FFFD4
SeaGreen,0x50,#2E8B57
Green,0x60,#008000
LimeGreen,0x70,#32CD32
Yellow,0x80,#FFFF00
Goldenrod,0x90,#DAA520
Orange,0xA0,#FFA500
Red,0xB0,#FF0000
Pink,0xC0,#FFC0CB
Fuchsia, 0xD0,#FF00FF
Orchid,0xE0,#DA70D6
Lavender,0xF0,#E6E6FA
The simulated bulb returns a value in “ColorIndicator”, which is
1&HUE%&if(SAT%<100,0&SAT%,100)
Does anyone know of a way to work out the ColorIndicators of the 255 segments?
Any assistance you can offer is greatly apprecited.