Question:
Is it ok to install outlet covers that the LED light is meant to go on when it’s dark if sometimes the light also will wind up going on when you pass it and block the light in the room during the day momentarily?
Answer:
It is problematic because it is inside your property and made for you to benefit from it. I would suggest that you put a different light in that area, (another night light that is lit all the time) so that when you walk past, it won’t turn on.
Have a good Shabbos
Sources: