public void SetColor(TrustColorRgb color) { var value = new TrustXyValue(color.ToXyz().ToYxy()); var result = value.ToValue(); var command = TrustCommand.SimpleCommand(Home.Mac, Home.AesKey, Convert.ToInt32(Id), 5, result); TrustHttp.SendCommand(Home.Mac, Hub.Email, Hub.Password, command); }
public void TurnOff() { var command = TrustCommand.SimpleCommand(Home.Mac, Home.AesKey, Convert.ToInt32(Id), 3, 0); TrustHttp.SendCommand(Home.Mac, Hub.Email, Hub.Password, command); }