public function setLights(array $lights)
{
$lightIds = array();
foreach ($lights as $light) {
$lightIds[] = (string) $light;
}
$x = new SetGroupAttributes($this);
$y = $x->lights($lightIds);
$this->client->sendCommand($y);
$this->attributes->lights = $lightIds;
return $this;
}