I've been think about a reed switch as it doesn't rely on outside light but I'm not sure if the magnet will be close enough to activate it. Because the doors overlap the magnet would be about 70mm away. I might buy it anyway to try.
I'll try the cylinder cup idea. Simplest solutions are normally the best.
I tried have conditional values to turn the light on and off but this led to rave like effects where the lights would randomly turn on/off and not turn on/off depending on the room light.
The IR sensor would be great but a little more costly I'd guess.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I've been think about a reed switch as it doesn't rely on outside light but I'm not sure if the magnet will be close enough to activate it. Because the doors overlap the magnet would be about 70mm away. I might buy it anyway to try.
I'll try the cylinder cup idea. Simplest solutions are normally the best.
I tried have conditional values to turn the light on and off but this led to rave like effects where the lights would randomly turn on/off and not turn on/off depending on the room light.
The IR sensor would be great but a little more costly I'd guess.
I'll let you know how each option goes.