# FAQ Dimming and turning on/off multiple lights as a group (SmartThings Classic)

**URL:** <https://community.smartthings.com/t/faq-dimming-and-turning-on-off-multiple-lights-as-a-group-smartthings-classic/49059>\
**Category:** FAQ\
**Created:** [May 30, 2016, 1:02am UTC](https://community.smartthings.com/t/faq-dimming-and-turning-on-off-multiple-lights-as-a-group-smartthings-classic/49059 "2016-05-30T01:02:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [May 30, 2016, 1:08am UTC](https://community.smartthings.com/t/faq-dimming-and-turning-on-off-multiple-lights-as-a-group-smartthings-classic/49059/3 "2016-05-30T01:08:40Z")

</div>

The capability is there, it’s just very hard to find. Assuming you want them all to dim to the same level, the easiest way is to use the standard smart lighting feature.

[https://support.smartthings.com/hc/en-gb/articles/205380404-Smart-Lights](https://support.smartthings.com/hc/en-gb/articles/205380404-Smart-Lights)

You first pick the lights you want to control:

 ![](https://global.discourse-cdn.com/smartthings/original/3X/6/3/634b96e3cae0d4625d3e642bbc035702e78918d4.png)

And then you will get to say whether you want them to go on, off, or to a set level.

 ![](https://global.discourse-cdn.com/smartthings/original/3X/4/8/485dff9295881206dadf431a28b69c74ed954cf2.png)

And after that you get to say that you want that to happen when some other light does the same thing. So lights B&C turn on when light A turns on.

Many people will use a virtual light for the master light (light A in the previous example) because then they can set different rules for different conditions, essentially gives the freedom to put lights into more than one group.

And once you get to that point, you may want to use custom code, which is what is referred to in the thread previously referenced. There are a number of smart apps including “Dim and dimmer” “dim with me” and several more which give you all kinds of group features.

If you haven’t use custom code before, it’s not that difficult. You’re basically going to copy someone else’s existing code and paste it into your accounts library.

The following FAQ is an overview of how custom code works in smart things.

> [@\[OBSOLETE\] FAQ: An Overview of Using Custom Code in SmartThings (SmartThings Classic, Groovy Code)](https://community.smartthings.com/t/faq-an-overview-of-using-custom-code-in-smartthings/16772):
>
> The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud. As of May 2023, you can no longer add new Groovy DTH‘s or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, I’m afraid the Groovy information is no longer usable. All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use “Edge Drivers,” written in the LUA programming language. Here’s the official announcement on those: The process for using a custom Edge Driver in the new …

But again, if you just want to group the lights in one room together so they go on at the same time and off at the same time you can just use the standard smart lighting feature. You’ll only need the custom smart apps if you want advanced features not available in the standard smart lighting rules, like setting different bulbs to different dim levels or different colors.

---

_[View the full topic](https://community.smartthings.com/t/faq-dimming-and-turning-on-off-multiple-lights-as-a-group-smartthings-classic/49059)._
