Phue\Group::setBrightness PHP Method

setBrightness() public method

Set brightness
public setBrightness ( integer $level = SetLightState::BRIGHTNESS_MAX ) : self
$level integer Brightness level
return self This object
    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;
    }