Exemplo n.º 1
0
Arquivo: Group.php Projeto: sqmk/phue
 /**
  * Set saturation
  *
  * @param int $value
  *            Saturation value
  *
  * @return self This object
  */
 public function setSaturation($value)
 {
     $x = new SetGroupState($this);
     $y = $x->saturation((int) $value);
     $this->client->sendCommand($y);
     // Change both saturation and color mode state
     $this->attributes->action->sat = (int) $value;
     $this->attributes->action->colormode = 'hs';
     return $this;
 }