Drawer Illumination Subsystemprojects/drawer illumination subsystemBuild

Drawer Illumination Subsystem: Because turning on the main light is just too simple

Adding per-drawer open detection and addressable lighting to my new dressing area.

November 2026 · 3 min read
Grey drawer fronts with brass handles under an oak top; a hand reaches for a drawer in the left column
One drawer, one column
why

A week or so ago I finished installing a new dressing area in the bedroom. I was very pleased with it, but there was one problem.

There simply wasn't enough Zigbee, electronics, complication or lighting involved. It had been a very carpentry-style project, so we had to change that.

Project poster titled Drawer Illumination Subsystem, a Zigbee-connected, reed-switch-instrumented, per-column addressable lighting platform for locating socks. A dark render of the drawers with one open and its column lit. The problem: it is hard to see into a drawer in the dark. The obvious fix, struck through: turn the big light on. The solution: nine steps, from removing the oak worktop to opening the drawer and finding socks.
The planDrawn before anything was boughtScale: excessiveWhole sheet ↗
The plan, before anything was bought. A few details changed on the way.
The plan
Blender render of the dressing area at dusk: drawers open and shut in different columns, and the strip under the top lights only above the columns with a drawer open
A column lights while any of its drawers is open, and goes off a second after the last one shuts.
The reality
Drawers open in the middle and right columns, with the light on under the top

It's one strip across the whole top, but each pixel can be lit on its own, so the board lights just the seven above the open drawer's column. It's a COB strip, so the light is one even line rather than a row of dots.

what else it unlocked

It's an RGB strip

  1. night red

    Between 22:00 and 06:30 a drawer gets dim red instead of white.

  2. sweep

    The light runs out from the middle of the column instead of snapping on.

  3. nudge

    A drawer left open breathes amber for its last 30 seconds before the light goes off at five minutes.

  4. sunrise

    Deep red to warm white over the 15 minutes before I get up, then birdsong from the bedroom Echo. Opening a drawer ends it.

  5. celebrate

    Ten seconds of rainbow bloom, fireworks, a rainbow chase and a gold finish.

  6. carol

    56 seconds in time with Last Christmas, played on the Echo.

the alarm

Drawer alarm

A switch in Home Assistant arms the drawers. Open one and the strip flashes red and blue while the bedroom Echo sounds an alarm.

The whole dressing area from across the room, one drawer open and the strip flashing blue
Sound on.
the build

How it fits together

Everything runs from one board in a box under the left unit. Each drawer has a contact that tells the board when it opens, and the board lights that column's part of the strip.

The board also talks to Home Assistant over Zigbee: it reports every drawer, and takes the sunrise, the light shows and the alarm.

parts

Parts

ItemNotesCost
Espressif ESP32-C6-DevKitC-1Zigbee radio. Genuine, as range varies on clones.£11.63
WS2814 RGBW COB strip, 24 V21 pixels used, seven per column.£12.39
Mean Well GST60A24, 24 V 2.5 AThe only mains part, so a known brand.£26.56
14 MC-38 door contactsOne per drawer, normally closed.£8.09
Traco TSR 1-245024 V to 5 V.£5.87
SN74AHCT125, five3.3 V data to 5 V.£1.51
Time 8-core alarm cable, 25 mA pair of cores per drawer.£12.49
Carrier boardMy own design, available here.£15
Everything elseTerminals, fuse, box, leads, small parts.£34.88

About £128 in all.

the board

One small board

An ESP32-C6 on a carrier board I drew in KiCad, with plugs for the three columns, the strip and the 24 V supply. You can buy the bare board.

Render of the carrier board: three six-way plugs for the left, middle and right columns, a three-way plug for the strip, the 24 V input, a fuse, the 5 V converter and two long sockets for the ESP32-C6
The C6 plugs into the two long sockets.
The carrier board on a cutting mat with the ESP32-C6 plugged in, three door contacts wired to its left-column plug and the 24 V lead on its fuse
First light on the bench, with three contacts on the left column.
The board wired up inside its black box: the three column plugs, the strip plug and the 24 V input all connected
Wired up in its box.
What fought back

It wouldn't join Zigbee. The C6 shares one radio between Wi-Fi and Zigbee, and Wi-Fi was hogging it. Wi-Fi now stays off until it has joined.

the drawers

A contact on every drawer

Each drawer has a wired door contact, fixed upright to the inside of the carcase side, 12 mm back from the front edge. Its magnet sits on the back of the drawer front, facing it. Shut, the magnet holds the contact closed; open the drawer a couple of centimetres and it opens.

The contact's tail runs back along the top of the drawer's space to a soldered join with that drawer's own pair of cores. The four pairs run down the back corner into one 8-core cable per column, which drops through the base into the plinth and on to the board.

One column's side panel from inside with the drawers out: four contacts at the front edge, each tail running back to a join, the four core pairs running down the back corner into the sheathed 8-core, which goes down through the base
One columnSide panel from insideDo not scaleOpen full size ↗
One column from inside, with the drawers out. Front on the right.
From above: the contact on the side panel and the magnet on the back of the drawer front, a few millimetres apart when shut
PlanContact and magnet from aboveDo not scaleOpen full size ↗
Shut, the magnet sits a few millimetres from the contact. Opening pulls it straight away.
Inside a carcase with the drawers out: a brown door contact fixed at the top front of the side panel, its tail hanging down over the drawer runners
A contact in place, before its tail was clipped back.
The white 8-core cable's cores screwed into a green six-way plug, held in a hand
The left column's 8-core in its plug.
The board's six-way plug for the left column: the four second cores twisted into 0 V, then white, yellow, green and blue into pins 1 to 4, top drawer first
Left column8-core into J1Do not scaleOpen full size ↗
At the board: one core from each pair to its own pin, the other four twisted into 0 V.
the top

Rout the top

The strip lives in a groove routed into the underside of the top: one pass with a 12 mm bit, 4 mm deep and 28 mm from the front edge, so the top drawers still clear it. A second groove takes the cable back to the gap behind the drawers.

A plunge router with a fence running along the edge of the oak top, outside
Routing the light groove.
The underside of the top with the routed groove, and the strip laid along the front edge to check where it ends
Checking where the strip ends before cutting it.
Section through the front of the top: the strip in its groove 28 mm back from the front edge, 51 mm of overhang, lighting down onto the drawer front
SectionThrough the front edgeDo not scaleOpen full size ↗
The strip sits just inside its groove, so the top drawers pass a few millimetres below it.

The strip is held in with dabs of Stixall, and its lead is extended with pond flex to get round the corner.

Labelled photo of the underside of the top at the wall end, showing where the strip starts next to the feed groove
Start.
Labelled photo of the far end of the strip, showing the cut mark after pixel 21
End, cut at pixel 21.