Wardrobe Motion Lights: A DIY Closet Lighting Build Step by Step
Closet lighting is the single most underrated smart home upgrade. A six-pound LED strip plus a PIR sensor turns a dark wardrobe into a walk-in showroom that lights up the moment you open the door. The motion-activated DIY setup takes one evening, no electrician, and the system runs for years on a coin cell battery.
I added wardrobe lighting to our flat after the third morning of grabbing what I thought was a navy shirt and turning out to be black once daylight hit. Six GBP of LED strip later, the problem vanished forever and I started wondering why this wasn't standard in every flat I'd ever rented.
What You'll Build
The end result is a wardrobe that lights up automatically when the door opens, stays on while you're rummaging, and turns off after a delay when motion stops. The LED strip lives inside the wardrobe on the top edge of the doorframe pointing down at the clothes. The PIR sensor sits on the hinge or door edge. Power comes from a 12V plug-in driver via a thin cable routed from the nearest outlet.
Total parts list for one wardrobe:
- 12V warm-white LED strip, 1-2 metres, CRI 90+: 8 GBP
- 12V 1A plug-in driver: 6 GBP
- Wireless PIR motion sensor, Zigbee or Bluetooth: 12 GBP
- Smart plug for cycling the driver from automations: 12 GBP
- Cable clips and channel for tidy routing: 3 GBP
Total: about 41 GBP. Drop the smart plug and you can run the automation entirely through the wireless PIR, lowering the cost to 29 GBP. Skip the PIR and use a door contact sensor instead for around the same price.
Pick Warm White LEDs, Not Cool Daylight
The single decision that determines whether the install works is the LED colour temperature and CRI. Cold daylight LEDs at 6500K make black and navy shirts look identical. Warm white LEDs at 2700-3000K with CRI 90+ render colours accurately enough to tell the difference at a glance.
The cheap LED strips sold on Amazon often have CRI 80 or unrated. They look bright but render fabrics poorly -- reds turn dull, blues turn grey, and the "warm white" sometimes has a green tint that makes skin look ill. Pay the extra 4-5 GBP for a strip with the CRI explicitly stated as 90 or higher.
Brand recommendations: Govee H6172 Pro is a solid mid-range option. Nanoleaf Essentials Lightstrip works well if you already have a Hue setup. For pure budget I've had good results with the generic Tunable White COB strips from Amazon UK at around 12 GBP per metre with CRI 95 quoted. Avoid the "RGB rainbow" strips for wardrobe use -- they always default to harsh cool white when set to "white" mode.
Step One: Mount the LED Strip
The strip wants to point down at the clothes from the top edge of the wardrobe interior. The exact mounting depends on the wardrobe construction.
For wardrobes with a flat top panel inside, stick the strip directly to the underside of the panel parallel to the doorframe, about 30mm in from the front edge. The 3M VHB tape on quality strips holds well to dust-free wood. Clean the surface with isopropyl alcohol first; otherwise the tape lasts about a month before peeling.
For wardrobes with sloped or shelved interiors, mount the strip inside the door itself on the top inside edge. This works even better because the strip moves with the door, lighting the clothes from a more useful angle. Use the same 3M VHB tape and the same alcohol prep.
For wardrobes with sliding doors, mount the strip to the top inside of the wardrobe frame just behind where the door sits when closed. The strip stays put and lights the inside whenever the door slides open.
Route the strip's power cable along an inconspicuous edge to where it exits the wardrobe. The thinnest route is usually behind the hinge column for swing doors or through the gap between top frame and ceiling for sliding doors.
Step Two: Add the PIR Sensor or Contact Sensor
The wireless trigger is what makes the lighting feel magic. Two options:
PIR motion sensor fires when anyone moves inside the wardrobe. A small Aqara P1 PIR (about 12 GBP) or Hue Outdoor Motion Sensor (35 GBP for two) mounts on the door hinge facing inward. The sensor sees movement when the door opens and you start reaching for clothes. It also fires when you stand close to the wardrobe with the door open, keeping the lights on until you step away.
Door contact sensor fires when the door opens regardless of motion inside. A small Aqara contact sensor (6 GBP) or Sonoff SNZB-04 (8 GBP) mounts on the door edge with the magnet on the wardrobe frame. Slightly faster than PIR (no warm-up time) but does not keep lights on if the door stays open while you're still browsing. Best combined with PIR for the most reliable behaviour.
For a single wardrobe in a one-bedroom flat I use a contact sensor only -- the door open is the only signal needed and you're rarely browsing with the door closed. For a walk-in closet I'd add both contact (door open) and PIR (continued presence) for the smoothest experience.
Step Three: Wire the Driver to a Smart Plug
The 12V LED driver is the small black brick that converts mains voltage to the low-voltage power the LED strip needs. Plug it into a smart plug, plug the smart plug into the nearest wall socket, and the rest of the system controls the strip by switching the smart plug.
Quality smart plug options: Sonoff S26R2, Athom Mini Smart Plug, Aqara Smart Plug. Costs around 10-15 GBP each, all support local control through Home Assistant via Zigbee or Wi-Fi. Avoid cloud-only smart plugs for this use because the lights need to fire within 500ms of door open, and cloud round-trips add unwanted latency.
Route the low-voltage cable from the driver to the LED strip. Cable channels (4 GBP for 2 metres) hide the run from socket to wardrobe edge. The cable then enters the wardrobe through a small drilled hole or the natural gap between back panel and wall.
Step Four: Write the Home Assistant Automation
The automation fires the smart plug when the contact sensor opens and turns it off after motion stops. The structure in YAML:
alias: Wardrobe lights
trigger:
- platform: state
entity_id: binary_sensor.wardrobe_door
to: 'on'
action:
- service: switch.turn_on
target:
entity_id: switch.wardrobe_led_plug
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.wardrobe_door
to: 'off'
for:
seconds: 60
- service: switch.turn_off
target:
entity_id: switch.wardrobe_led_plug
That automation fires on door open, leaves the lights on until the door closes for at least 60 seconds, then switches off. The 60-second hold prevents the lights from cycling if you close and reopen the door quickly while choosing an outfit.
For a contact-plus-PIR combination, the trigger becomes either sensor going active, and the off condition requires both sensors to be inactive for 60 seconds. Slightly more complex YAML but smoother real-world behaviour.
Battery Life and Maintenance
A quality Zigbee PIR or contact sensor in a wardrobe environment runs 2-4 years on a single CR2032 or CR2450 coin cell. Wardrobes are low-traffic compared to hallways, so the sensor wakes up only a few times per day. The actual battery drain is dominated by the network-keepalive, not the motion detection.
Replace coin cells during the annual home maintenance cycle even if the indicator still shows green. A dead sensor in the middle of a winter morning is more annoying than the 50p cost of a fresh battery every January. Write the install date on the back of the sensor with permanent marker so you know when the cell went in.
The LED strip itself rates around 50,000 hours of operation, which at typical wardrobe use of 30 minutes per day works out to about 270 years before half-brightness fade. The strip will fail mechanically (cable connection, tape adhesion, water damage from a leaking radiator) long before the LEDs themselves dim. Treat as a permanent install.
Variations Worth Trying
A few upgrades I've added to different wardrobe installs over the years.
The first is dual-zone lighting -- one warm-white strip for everyday use plus a colder accent strip controlled separately for finding specific items. The accent strip only fires when you specifically ask via voice command. Adds about 10 GBP but solves the "where's the white shirt" problem in a dimly lit warm-white setup.
The second is a colour-changing strip for special wardrobes (a bar cabinet, a display shelf inside the closet, a small museum case for jewellery). The Govee strip can change colour through voice commands or routines tied to time of day. Mostly cosmetic but pleasant.
The third is a smart sensor on the wardrobe humidity. A small Aqara temperature/humidity sensor inside reports back to Home Assistant; if humidity climbs above 60% (a sign of damp clothing put away too soon, or a leak in adjacent plumbing) a notification fires. Adds about 15 GBP and has caught two real moisture issues for me before they damaged anything.
The Home Assistant automation documentation covers each of these patterns in more depth. The minimum install above gets 95% of the benefit. The variations add nice-to-have features once the basic system has proven itself worthwhile, which usually happens within the first week of daily use.
Wardrobe lighting is the upgrade I recommend first to anyone visiting a new flat asking "what should I add to be smart-home". Visible value within a day, low cost, easy install, and no maintenance for years. Almost nothing else in the smart home toolkit performs that well.