/** * Set hue * * @param int $value * Group value * * @return self This object */ public function setHue($value) { $x = new SetGroupState($this); $y = $x->hue((int) $value); $this->client->sendCommand($y); // Change both hue and color mode state $this->attributes->action->hue = (int) $value; $this->attributes->action->colormode = 'hs'; return $this; }