Pantry lighting that turns on with the door
For a small pantry, door-triggered lighting can be a sensible first automation. Keep the scope to a suitable light and a clear door state, and retain a manual way to leave the light on while sorting shelves.

Match the door movement
A contact sensor needs suitable mounting surfaces and alignment. Check the door’s full travel, seals and nearby shelves so the two parts remain positioned correctly and do not collide with stored goods when the door closes.
Select a complete branch
An Aqara Door and Window Sensor requires its compatible hub. Pair it with a supported lighting route and confirm the intended automation rather than assuming a contact sensor can directly power a strip or bulb.
Keep sorting practical
Ask for an open-door demonstration and a manual hold setting. If the family sometimes closes the door while working inside, the design should account for that habit instead of relying on the door alone to judge whether lighting is wanted.
Before you buy
- Check sensor alignment
- Identify the controlled light
- Provide manual hold