I've never been diagnosed, but I am pretty sure I am OCD.
Obsessive-compulsive disorder (
OCD) is a psychiatric disorder, more specifically, an
anxiety disorder. OCD is manifested in a variety of forms, but is most commonly characterized by a subject's obsessive (repetitive, distressing, intrusive) thoughts and related compulsions (tasks or rituals) which attempt to neutralize the obsessions.
-wikipedia
I get both of those. I do have those kinds of thoughts, and I will compulsively close doors and turn off lights, etc.