public function setEffect($mode = SetLightState::EFFECT_NONE) { $x = new SetLightState($this); $y = $x->effect($mode); $this->client->sendCommand($y); $this->attributes->state->effect = $mode; return $this; }