Skip to content

Changing HSV not working #4

@pekempy

Description

@pekempy

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions