public function setAlert($mode = SetLightState::ALERT_LONG_SELECT) { $x = new SetLightState($this); $y = $x->alert($mode); $this->client->sendCommand($y); $this->attributes->state->alert = $mode; return $this; }