Good afternoon,

I'm looking to run a rule that will dim my lights by a percentage. Adjust dimmer is a fixed value, correct? Is there an easier way than running a rule to first determine their dimmer value, then do some math, then dim by that %?

Thanks

No, "Adjust Dimmer Level" will do percent, which it sounds like is what you want. So if it's at 75% and you put in `5`, it will go to 80 (you can do `-5` to get to 70%). The "Set Dimmer Level" action is the one that will do the specific percent, so `70` to get to 70%.

1 Like

Ah yes, I see what you mean, and I see my explanation wasn't very clear.

See these examples to get at what I'm after.

1. If the light is at 90% and I ask it to dim by 10% of the current value (9%) it would dim to 81%
2. If the light is at 80% and I ask it to dim by 25% of the current value (20%) it would dim to 60%
3. If the light is at 50% and I ask it to dim up by 50% of the current value (25%) it would increase to 75%

On a related note, Adjust Dimmer will turn on the switch, correct?

I see. Yes, you would have to use variable math to get that outcome. If you haven't tried it this way with a real device, however, I might suggest seeing if you think the nuance is worth it before going through the work. (I never have, but I have done things like "dim by 10%, or just go to 1% if it's already below 10-ish").

And you are correct that the lights will turn on. Or at least they normally do. Some drivers implement a "Use level prestaging" preference, and if that is enabled, it won't--you'll need an explicit "On" command. This is not the default behavior, and it also hopefully will become less common in favor of the now-standard "Preset Level" command something drivers have begun implementing instead (so the preference is no longer there, and no one has to worry that the behavior of a standard "Set Level" command might be unexpected).

1 Like