ST DTH vs HE Driver Codes

Yeah, uh, no . . . . :rofl: :rofl: :rofl:

1 Like

If you set the color temperature of the (Light LED) child device to something (2700K-6500K ) it should turn the LED to white.

WebCore should have something like setColorTemperature for the child device.

image

image

webCore has several options:

Use SetColor and Preset and pick from the colors
Use SetColor and Value and select a hex value color
Use SetColor(hsl) and then manually set the Hue, Saturation and Level

Unfortunately when set on the child Light LED object, the colors you wind up with on the LED bar arent whats coded in webCore. Ive tried all three with different colors, but none get the switch to display the proper color.

Based on @JFGs ST logs, it looks like webCore is getting the proper data to ST, but something is jacked between ST and the switch.

1 Like

I tested setColor and setColorTemperature in webcore and the colors were pretty accurate for me.

Set Color
image

Set Color Temperature (for a white LED)
image

If you want more precision on the color you could take the desired hue from a hue wheel and use it with the hsl version of setColor.

image

image

1 Like

Hi @EricM_Inovelli,

I, too, had no issue with colors other than White (when i use White the color displayed is Red). I will use the set color temperature to statement, instead, to set the color White in webCore. Thank you for your help.

JF

2 Likes