-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Prior to running any command this is what I get running tplight details [ip]
"light_state": {
"on_off": 1,
"mode": "normal",
"hue": 261,
"saturation": 43,
"color_temp": 0,
"brightness": 45
We can see the HSV is 261, 43, 45 here.
After running the following code:
smartBulb.HSV.Hue = 222;
smartBulb.HSV.Saturation = 78;
smartBulb.HSV.Value = 91;
(Which is #3369e8 hex code converted into HSV), if I check the details of the bulb again it's still the same colour
"light_state": {
"on_off": 1,
"mode": "normal",
"hue": 261,
"saturation": 43,
"color_temp": 0,
"brightness": 45
Am I using the command wrong to change values? here's the method
var smartBulb = new TPLinkSmartDevices.Devices.TPLinkSmartBulb(bulbIP);
smartBulb.HSV.Hue = hue;
smartBulb.HSV.Saturation = sat;
smartBulb.HSV.Value = val;
(hue, sat, val are rounded integers passed in after converting hex to hsv)