# How to make under-cabinet lights come on and off with the ceiling lights?

**URL:** <https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272>\
**Category:** Factual Questions\
**Created:** [August 25, 2018, 9:09pm UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272 "2018-08-25T21:09:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Napier](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Napier](https://boards.straightdope.com/u/Napier)\
**Post date:** [August 25, 2018, 9:09pm UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/1 "2018-08-25T21:09:03Z")

</div>

I have nice ceiling lighting in a room, in 2’ by 4’ fluorescent drop ceiling fixtures retrofitted to LEDs. But I have large low shelves over workbenches that cast a bit of shadow and want to add lighting under those, such as 2’ long LED strip units.

How can I make these come on and off when the main ceiling lights are turned on and off? I’m not sure it would be practical to add an outlet that is switched by the lighting circuit. I wish there was something like a photocell light control, but one which worked in the reverse sense relative to what people use for automatic outdoor lighting. I want the control to go on when it sees light, and off when it doesn’t. Of course I would place it somewhere the big ceiling lights illuminated brightly and the new under shelf lights hardly at all.

Any solutions?

Thanks!

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [August 25, 2018, 9:12pm UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/2 "2018-08-25T21:12:52Z")

</div>

Use a little photocell-activated switch. Just position the photocell so that it doesn’t see the under-cabinet lights.

---

<div class="post-metadata">

**Author:** ![scr4](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@scr4](https://boards.straightdope.com/u/scr4)\
**Post date:** [August 25, 2018, 9:26pm UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/3 "2018-08-25T21:26:16Z")

</div>

Wouldn’t that cause the under-cabinet light to stay on during the day?

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [August 25, 2018, 9:34pm UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/4 "2018-08-25T21:34:58Z")

</div>

> [@scr4](#):
>
> Wouldn’t that cause the under-cabinet light to stay on during the day?

It depends.  
If the room gets a lot of natural light, than, yes.  
Even in those cases, it should be possible to put the photocell at the end of a straw, and point it at the overhead light, which should make it selective enough.

Or, if the overhead lights are LED, you could probably use their natural strobing to detect if they were on, but that makes the photocell circuit more complicated.

---

<div class="post-metadata">

**Author:** ![Napier](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Napier](https://boards.straightdope.com/u/Napier)\
**Post date:** [August 25, 2018, 10:01pm UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/5 "2018-08-25T22:01:13Z")

</div>

> [@beowulff](#):
>
> Use a little photocell-activated switch. Just position the photocell so that it doesn’t see the under-cabinet lights.

That’s what I’m asking for. I want a photocell-activated switch that turns ON when it DOES see light. All the ones I’ve found work in the reverse direction.

Do you know of a photocell-activated switch that turns ON with LIGHT?

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [August 25, 2018, 10:10pm UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/6 "2018-08-25T22:10:08Z")

</div>

> [@Napier](#):
>
> That’s what I’m asking for. I want a photocell-activated switch that turns ON when it DOES see light. All the ones I’ve found work in the reverse direction.
> 
> Do you know of a photocell-activated switch that turns ON with LIGHT?

Can you solder?  
It’s a fairly simple circuit.

Or, if you would a suitable day/night switch, just add a SPDT relay to it, and use the Normally Open contacts.

---

<div class="post-metadata">

**Author:** ![Tim\_T-Bonham.net](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@Tim\_T-Bonham.net](https://boards.straightdope.com/u/Tim_T-Bonham.net)\
**Post date:** [August 26, 2018, 12:33am UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/7 "2018-08-26T00:33:49Z")

</div>

> [@Napier](#):
>
> I’m not sure it would be practical to add an outlet that is switched by the lighting circuit.

That is the correct & code-compliant way to do this. (And might be simplest in the long run. Remember that the lifetime of home electrical wiring is measured in decades.)

You could connect such an outlet to either the ceiling lights, or to the wall switch for the lighting circuit. One of those should be feasible.

---

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [August 26, 2018, 12:45am UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/8 "2018-08-26T00:45:33Z")

</div>

Another way: You could either replace the ceiling light switch with a smart switch or the ceiling lights with smart bulbs, and connect your undercabinet light strip to a smart outlet. You can program it so when one turns on both do, but you need to check to make sure that this programming will work with the hardware you chose, also the method you want to use to turn them on and off.

---

<div class="post-metadata">

**Author:** ![Driver8](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@Driver8](https://boards.straightdope.com/u/Driver8)\
**Post date:** [August 26, 2018, 3:39am UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/9 "2018-08-26T03:39:21Z")

</div>

> [@Tim\_T-Bonham.net](#):
>
> That is the correct & code-compliant way to do this. (And might be simplest in the long run. Remember that the lifetime of home electrical wiring is measured in decades.)
> 
> You could connect such an outlet to either the ceiling lights, or to the wall switch for the lighting circuit. One of those should be feasible.

I’m going to second this. It exactly aligns with the functionality you want, without introducing potentially annoying quirks (i.e. they turn on if the room happened to be bright enough without the overhead). The whole “main switch triggers the overhead lights which triggers the light sensitive shelf lighting” seems a bit Rube Goldberg like.

---

<div class="post-metadata">

**Author:** ![Napier](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Napier](https://boards.straightdope.com/u/Napier)\
**Post date:** [August 26, 2018, 11:21am UTC](https://boards.straightdope.com/t/how-to-make-under-cabinet-lights-come-on-and-off-with-the-ceiling-lights/820272/10 "2018-08-26T11:21:41Z")

</div>

> [@Tim\_T-Bonham.net](#):
>
> That is the correct & code-compliant way to do this. (And might be simplest in the long run. Remember that the lifetime of home electrical wiring is measured in decades.)
> 
> You could connect such an outlet to either the ceiling lights, or to the wall switch for the lighting circuit. One of those should be feasible.

> [@Driver8](#):
>
> I’m going to second this. It exactly aligns with the functionality you want, without introducing potentially annoying quirks (i.e. they turn on if the room happened to be bright enough without the overhead). The whole “main switch triggers the overhead lights which triggers the light sensitive shelf lighting” seems a bit Rube Goldberg like.

OK, you have convinced me. I actually thought it might be against code to have a switch control both built in lighting and a receptacle. If this is correct and code compliant, it is clearly worth trying hard to do. I do like that wiring lasts decades, unlike the various home automation things I’ve tried and thrown away over the years. And I do like that this is not a quirky solution. Thank you!
