I had the same problem. I bought a mains rated push-button switch which
operates push-off. I fitted this into a small plastic box, and mounted the
box such that the door presses the switch button when the door is closed.
This has the advantage - IMSMC unlike the Ikea switch which is co-mounted
with the lamp - that the lamp can be fitted anywhere in the cupboard. With a
suitably rated switch and some suppression even a fluorescent or PLE can be
used. I ran a supply from a nearby circuit and fed it to the configuration
through a switched fused spur outlet so that I could make the circuit safe
in the event of need of maintenance.
HomeOwnersHub.com is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.