Well, maybe. I don't understand the argument that you are "doing work" when a light automatically comes on for you in the first place. I can see arguing that opening a refrigerator is work, or that it isn't, but I can't see coming to a different conclusion if a light comes on when you open it. I would have made a crappy rabbi.