public function setXY($x, $y)
{
$_x = new SetLightState($this);
$_y = $_x->xy((double) $x, (double) $y);
$this->client->sendCommand($_y);
// Change both internal xy and colormode state
$this->attributes->state->xy = array($x, $y);
$this->attributes->state->colormode = 'xy';
return $this;
}