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.

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.



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.
It's an RGB strip
- night red
Between 22:00 and 06:30 a drawer gets dim red instead of white.
- sweep
The light runs out from the middle of the column instead of snapping on.
- nudge
A drawer left open breathes amber for its last 30 seconds before the light goes off at five minutes.
- 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.
- celebrate
Ten seconds of rainbow bloom, fireworks, a rainbow chase and a gold finish.
- carol
56 seconds in time with Last Christmas, played on the Echo.
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.

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
| Item | Notes | Cost |
|---|---|---|
| Espressif ESP32-C6-DevKitC-1 | Zigbee radio. Genuine, as range varies on clones. | £11.63 |
| WS2814 RGBW COB strip, 24 V | 21 pixels used, seven per column. | £12.39 |
| Mean Well GST60A24, 24 V 2.5 A | The only mains part, so a known brand. | £26.56 |
| 14 MC-38 door contacts | One per drawer, normally closed. | £8.09 |
| Traco TSR 1-2450 | 24 V to 5 V. | £5.87 |
| SN74AHCT125, five | 3.3 V data to 5 V. | £1.51 |
| Time 8-core alarm cable, 25 m | A pair of cores per drawer. | £12.49 |
| Carrier board | My own design, available here. | £15 |
| Everything else | Terminals, fuse, box, leads, small parts. | £34.88 |
About £128 in all.
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.



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.
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.





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.



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

