color working
This commit is contained in:
@@ -44,7 +44,7 @@ namespace HueUWP
|
||||
{
|
||||
if(l.IsOn)
|
||||
{
|
||||
var json = await nwh.SetLightInfo(l.ID, $"{{\"bri\": {l.Brightness},\"hue\": {l.Hue},\"sat\": {l.Saturation}}}");
|
||||
var json = await nwh.SetLightInfo(l.ID, $"{{\"bri\": {l.Brightness},\"hue\": {l.Hue*255},\"sat\": {l.Saturation}}}");
|
||||
Debug.WriteLine(json);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace HueUWP
|
||||
this.Hue = h; this.Saturation = s; this.Brightness = v;
|
||||
api.SetLightValues(this);
|
||||
Debug.WriteLine(r + "-" + g + "-" + b);
|
||||
Debug.WriteLine(h + "-" + s + "-" + v);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user