You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
When the light color is changed quickly, for instance using a color wheel, the color is not shown instantaneously in a smooth way but looks very laggy, however if I use the color wheel in the native Home or Hue apps it works as expected. I use the following procedure to change the light color:
let lightState = PHSLightState()
lightState.alert = .none
lightState.effect = .none
lightState.transitionTime = 1 as NSNumber
let color = PHSColor.create(withRed: Int32(newColor.redComponent * 255.0), green: Int32(newColor.greenComponent * 255.0), blue: Int32(newColor.blueComponent * 255.0))
lightState.setXYWith(color)
light.update(lightState, allowedConnectionTypes: .local) {}