Obviously no way we can make a diagnosis without seeing and examining you. the most common thing that would cause this is an infection of an eyelid gland (stye, hordeolem, Meibomian abscess). At home treatment would be limited to warm compresses but better would be exam by Eye MD ophthalmologist, non-MD optometrist or your family MD.