Phue\Light::setHue PHP Method

setHue() public method

Set hue
public setHue ( integer $value ) : self
$value integer Hue value
return self This object
    public function setHue($value)
    {
        $x = new SetLightState($this);
        $y = $x->hue((int) $value);
        $this->client->sendCommand($y);
        // Change both hue and color mode state
        $this->attributes->state->hue = (int) $value;
        $this->attributes->state->colormode = 'hs';
        return $this;
    }