Phue\Light::setAlert PHP Method

setAlert() public method

Set light alert
public setAlert ( string $mode = SetLightState::ALERT_LONG_SELECT ) : self
$mode string Alert mode
return self This object
    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;
    }