public function setBrightness($level = SetLightState::BRIGHTNESS_MAX) { $x = new SetGroupState($this); $y = $x->brightness((int) $level); $this->client->sendCommand($y); $this->attributes->action->bri = (int) $level; return $this; }