Dim multiple dimmers

Use the smartapp called smart lighting.
It will do exactly what you are wanting.

Smart lighting app cannot group lights together and Control them and set state to on/off/dim. At least I couldn’t find a way. Smart app is for one bulb at a time. Ex. I have 4 lights which need to control using one switch (group of bulbs).

I came across a custom app that may need to be installed called dim with me. Not sure if that need to be used or if there is a way to use smart light app.

Actually it will.

Under the section that ask you what lights you want to control… just choose all of the ones you want to control.
Then under the section that ask what you want to do with them… check the box next on/set level
Then move the little slider over that says also turn off.

then you’re good to go.

1 Like

@bamarayne Thank you. Yes it work with the Smart Lighting App. I was pulling my hair how to get this to work. ST has made things so hard to find I guess. Cheers!! Thank you for the input.

ST have to make the app more simpler. So many features are hidden, and hard to find.

Do I still have to use a “Virtual Dimmer device” if I want to keep the group of bulbs clean, and use the virtual device for my group of bulbs?

(I see that I can use one of the bulbs in the group as a Master Bulb, then I cannot dim that bulb independently.)

Are you also using the Amazon Echo?

In ST:

Create a Virtual device called "Whatever you want"
In SmartLighting create a rule that controls all of the lights you want and uses the virtual switch as the control. So when you turn on the virtual switch it will do what you want with the other bulbs.
You can also use a routine to do this.

Though,
I recommend you load the smartapp “Rule Machine”. While this app is much more complex it will do just about every thing you can imagine. The author of that app is also very responsive and gives you all the help you need.

2 Likes

No I am not using Amazon Echo.

I think I jumped to conclusion little early. Smart Lighting app only set Dimmer to one level - 10%,20%,30%… etc. So I don’t think there is a way to control the amount of dim using Smart Lighting App. So as @quantiletree pointed out earlier in this thread, Smart Light App may not be the solution, if I want to dim group of lights to what ever I want. (I think this is basic functionality to have out of the box in ST). Answer may still be, 1. Virtual Dimmer device & 2. Dim with Me App. Not sure if there any other ST out of the box hidden work around.

However now that I got into exploring the ST more (Have become a hobby now), will give it a try with “Rule Machine”. In fact I was wondering how to implement AND, OR conditions in ST and Rule Engine may be the answer. Thank you for bringing it up.

As you can see I am just getting warmed up, and finding out why lot of things which are simple but not implemented out there :frowning:

Appreciate all the feedback.

You can do this with Rule Machine. It has a feature that allows a group of dimmers to track another dimmer’s level. Every time the “master” dimmer changes level, the others follow.

1 Like

Virtual Dimmer is great. I wanted to have the Virtual Dimmer showing as the main tile for each of my “ROOMS” in the app, and the ability to control group of lights right from that view. Answer was to use the MultiAttribute Tile.

I modified the tiles section of the code to following to achive it. @MichaelS who owns the Virtual Dimmer code may incorporate this as well.

This will allow you to control On / Off / Dim all from one tile. (Note : I tried this and worked and saw no errors on the log. Not sure if there are other improvements that can be made, Also kudos to GE Link Bulb code, that is where I got the Multiattribute tiles from.)

Use it at your own risk, if you like it. :grinning:

tiles(scale: 2) {
	multiAttributeTile(name: "switch", type: "lighting", width: 6, height: 4, canChangeIcon: true, canChangeBackground: true) {
		tileAttribute("device.switch", key: "PRIMARY_CONTROL") {
    			attributeState "off", label: '${name}', action: "switch.on", icon: "st.switches.light.off", backgroundColor: "#ffffff", nextState: "turningOn"
		      	attributeState "on", label: '${name}', action: "switch.off", icon: "st.switches.light.on", backgroundColor: "#79b821", nextState: "turningOff"
              		attributeState "turningOff", label: '${name}', action: "switch.on", icon: "st.switches.light.off", backgroundColor: "#ffffff", nextState: "turningOn"
		      	attributeState "turningOn", label: '${name}', action: "switch.off", icon: "st.switches.light.on", backgroundColor: "#79b821", nextState: "turningOff"
        		}
        		tileAttribute("device.level", key: "SLIDER_CONTROL") {
              		attributeState "level", action:"switch level.setLevel"
        		}
        		tileAttribute("level", key: "SECONDARY_CONTROL") {
              		attributeState "level", label: 'Light dimmed to ${currentValue}%'
        		}    
	}
    
	standardTile("refresh", "device.switch", inactiveLabel: false, decoration: "flat", width: 2, height: 2) {
		state "default", label:"", action:"refresh.refresh", icon:"st.secondary.refresh"
	}

	main "switch"
	details(["switch","refresh", "levelSliderControl"])

}

To be clear, this is code I got from Bruce, who said he got it from SmartThings, so while I appreciate the credit, this is what the community is all about…sharing what is out there!

This is an interesting change and may incorporate it once I give it a full test. At the end of the day it is an interface change, but seems to follow SmartThings new devices.

**Edit…I did test this and it is mostly a cosmetic change, but does align with the new SmartThings conventions for other switches so I updated it. I also added in the large information tile for percentage as that is what the "real’ dimmers have …it also helps us with bad eyes that can’t see the percentage in the smaller text :)…Great suggestion @Boruguru ! I have included your name in the text of the update. The only line, however, that you needed to change was the details button…since levelSliderControl was no longer there, it doesn’t need to be listed. Otherwise, great addition

1 Like

I installed Rule Machine. It looks Great, with all the rules and conditions that I can think of.

However trying to mimic, Master Dimmer Follow to Other Dimmers, cannot figure it out. And I Have some questions ;

Do I define my Master dimmer under “Triggers?”

If I select Triggers,

Then it ask for Capability, Dimmers and Comarison and Dimmer Level. Look like inappropriate for my case.

Look like For my case where I need to Dim other bulbs to follow a master bulb, there seems to be no place to define it.

Can you help, define how to set it up.

Also I created some test rules to Dim. Now Rules Engine wont let me edit them. It say “You are not authorized to perform the requested operation”. No idea what is happening. (I used Android app)

To track a dimmer, it has to have a subscription (so that it reports level). That can either be a trigger event, or a condition of a rule. The one thing it can’t be is a condition of a triggered rule, because those conditions are just tested, not subscribed to.

If it’s a condition of a rule, that condition may or may not be part of the rule, up to you and your use case. In any event, assuming it’s subscribed to, then the action for the other dimmers is “track event dimmer” on. What happens is that when the tracked dimmer (or dimmers) change level, that causes a rule evaluation, and the actions will look at the tracked dimmer’s level.

Hopefully, this will move you closer to understanding how to set it up. If not, ask more…

The “you are not authorized” is an Android mobile app bug. Usually you can just ignore it, and keep plugging along.

Great, if that helped. I debated to have the % tile or not and thought it is duplicate information. But now that you have incorporated it, it look good. I tried your new code and works…

Food for thought : But worth giving this idea a try. As you can see there is space for 3 tiles. 1. % 2. Refresh 3. Can you have a temperature tile. Ex. Temperature from a temp. sensor that you choose from a list of available temp sensors?. Point is that you can have most of the information that you need for a particular Room in this tile. Idea was to use this in a Room Header area, where you can turn on off lights, dim them and also see the temperature of that room. Not sure if adding a temperature from other device can be used here, as this tile is for a device type.

I would have to look into that, but that would turn this device from a more ‘generic’ usage to a more specific version. Not sure everyone would care about temperature in a dimmer. Further, I am not sure you can reference another device from the device you are setting up…will have to look into it.

Also, I created a wiki page for the installation of the virtual dimmer: http://thingsthataresmart.wiki/index.php?title=Virtual_Dimmer

1 Like

Bruce,

I get stuck when it ask to fill in this screen. (It is asking for a comparison Dimmer and don’t get the logic on what to compare. Without filling in the comparison information it won’t let me complete the screen.

I would agree on that. Keep it generic and simple is the way to go. Creating a view for a room should be up to a dashboard view, which we hope would get from ST in a future day. Thanks…

Thank YOU for the suggestion…and motivating me to create the Wiki entry!

Compare the level of the selected dimmer to a number or to another dimmer device.

So, depending on what you’re trying to do, you could use a comparison that’s always true, like < 100. You’re probably creating the condition just so you can track the dimmer level. But, you have to be careful, because a rule only does things when truth changes.

So, perhaps a trigger would work? Trigger event is dimmer level, again < 100. So any change in dimmer level is going to fire this. Action is set dimmer level, track event dimmer. Track event dimmer means to set those dimmers to the current level of the dimmer that fired the trigger.

You can use this with a group of dimmers if you want, where any one of them can change all of them.

1 Like

Wiki looks perfect. Looking good…

Thank you, could not figure out that I have to provide a always true condition for compare clause. Got it to work. There were some pitfalls in Action section as well. But got it to working by now.

1 Like

AWESOME this worked perfectly for my 2 living room dimmers which are on separate switches for my ceiling fan lights which i could turn one on and the other comes on but could not get them to dim together, the dim with me didnt work either this one works perfectly as i wanted, not only does it dim both by dimming one in the app if i dim one at the wall dimmer it also dims the other with it. Bravo.