示例#1
0
文件: Group.php 项目: sqmk/phue
 /**
  * Set XY
  *
  * @param float $x
  *            X value
  * @param float $y
  *            Y value
  *
  * @return self This object
  */
 public function setXY($x, $y)
 {
     $_x = new SetGroupState($this);
     $_y = $_x->xy((double) $x, (double) $y);
     $this->client->sendCommand($_y);
     // Change both internal xy and colormode state
     $this->attributes->action->xy = array($x, $y);
     $this->attributes->action->colormode = 'xy';
     return $this;
 }