Could be that the contacts in the switch have gotten loose and cant hold the switch in the up position. The answer is yes.
![The Best Smart Light Switches For 2020 Digital Trends](https://icdn2.digitaltrends.com/image/digitaltrends/best-smart-light-switches-philips-hue-dimmer-close-2.jpg)
The Best Smart Light Switches For 2020 Digital Trends
Light switch turns off by itself. For example you can use a finger to. The light fixture then cools down and after a few minutes it will come back on. It takes 2 failures for the light to turn on. A manual mains switch with a coil inside that will flip it to the off position following the application of 5v for 50ms. When the switch falls down it breaks the circuit and turns off the light. This one by wemo will calibrate itself to any type of light bulb.
It is most likely just the switch that needs replacing and not a more involved electrical problem. After your car has failed to pass those 3 test it takes 40 passes in order for the light to turn itself off. Unlike a latching relay the coil cannot set it to the on position. If the switch is off and light is on its probably a bad switch. The switch also has some interesting design touches that place it ahead of the competition. When some car system fails to pass a test the check engine light turns on.
When the switch falls down it breaks the circuit and turns off the light. What is happening is the recessed can lights have a high temp safety switch mounted into the top of the enclosure which will turn the light off if it gets too hot. If the switch is flipped on the either you or your wife have a sleep walking problem memory problem ghosts or one of those crazy people living in your closetattic. How about a mains switch that turns itself completely off. Could be that the contacts in the switch have gotten loose and cant hold the switch in the up position. This is especially true with light fixtures that use incandescent light bulbs.
Omron has released such a thing.