public function dim($percent)
    {
        if($percent < 0){
            $percent = 0;
        } else if($percent > 100){
            $percent = 100;
        }

        $level = round((255*$percent)/100);

        return $this->bridge->setDeviceStatus($this->deviceId, null, $level);
    }
public function dim($percent)
    {
        if($percent < 0){
            $percent = 0;
        } else if($percent > 100){
            $percent = 100;
        }

        $level = round((255*$percent)/100);

        return $this->bridge->setDeviceStatus($this->deviceId, null, $level);
    }
public function dim ( $ percent ) { if ( $ percent < 0 ) { $ percent = 0 ; } else if ( $ percent > 100 ) { $ percent = 100 ; } $ level = round ( ( 255 * $ percent ) / 100 ) ; return $ this -> bridge -> setDeviceStatus ( $ this -> deviceId , null , $ level ) ; }
Dims Wemo bulb to specified percentage

@param $percent integer

@return mixed
Dims Wemo bulb to specified percentage