Phue\Group::setEffect PHP Method

setEffect() public method

Set effect
public setEffect ( string $mode = SetLightState::EFFECT_NONE ) : self
$mode string Effect mode
return self This object
    public function setEffect($mode = SetLightState::EFFECT_NONE)
    {
        $x = new SetGroupState($this);
        $y = $x->effect($mode);
        $this->client->sendCommand($y);
        $this->attributes->action->effect = $mode;
        return $this;
    }