Setting Dimmer Level without turning on


Is there any way to set dimmer levels without turning on the light? I have a piston that sets my bathroom lights to 10% after a certain hour, however the lights first turn on at 100% and then dim down to 10%. The initial bright light is enough to eliminate the benefit of this piston. The same question also applies to other attributes such as color, etc. Would be nice to set the value before the light is turned on so it turns on with the correct settings.

GE Dimmer set default max level

the light needs to support setting the level when the light is off and only some lights support that.

try the fade tasks. so instead of this:

with bathroom light
   turn on
   set level to 10%

try this:

with bathroom light
   fade level to 10% in 0 seconds

works just a little quicker for me.


Do Cree bulbs support it?


I do not believe so.


I use the Leviton Vizia RF+ dimmers. I’ll try it out and report back! Thanks!

BTW, is there some place where all the available commands (set level, fade, etc) are described?


sure. dont believe so.

tagging @webCoRE_Minions in case someone else knows of such doc.


The devices capability reference on the ST site lists and explains all the default/native commands that are available.


Thanks @ahndee! It looks like webCore supports more capabilities though. I did not find fade (unless CTRL-F failed me) and setLevel seems to have a rate feature that I do not believe webCore supports. It actually appears that ST’s setLevel is closer in functionality to webCore’s fade.


What exact commands are supported depends on the device type handler in use. And yes, I believe that the fade() command is a webCoRe addition.


as @ahndee posted fade() is a webcore addition which combines 2 device commands in to a single virtual command. these device commands are toggle on and set level which often go together.


@bangali - what you say implies that if I setLevel without TurnOn, then I should be able to set the desired dimmer level without turning on the light IF the device itself supports it… which is what I’d like to do. I believe my Leviton Vizia RF+ dimmers actually turn on the light when I use setLevel but I need to double check that.

I am hoping that, as you said earlier, fade will be faster for me too but having the cloud being part of the mix I suspect I will still get blinded with the light coming on at full brightness during the night (my bathroom has 7 x 60W equivalent LED bulbs… 420W of light which I believe is close to 6000 lumens)


that depends on the device’s capabilities. many lights dont support setlevel when they are off.

theres actually a fairly easy solution to this with webcore: :slight_smile:

every day at 10:00pm
   with bathroom light
      capture attribute switch
      fade level to 10% in 0 seconds
      restore attribute switch
end every

this assumes off course, these led bulbs store the last level they were set to, which most bulbs that i have seen do.


Thanks for this! I need to see how long the light stays on if fade were to turn it one at 10pm. Hopefully it is fast enough not to bother my baby daughter that would be bathed in light if it happens with the door open.


sure thing. if its a baby dealio i would use a gradual routine. here is a simple version, just use your own times and levels:

every hour at 00 mins past the hour
   with bathroom light
      capture attribute switch
      fade level to (($hour24 >= 22 || $hour24 <= 6) ? 10 : ($hour24 < 9 ? 30 : 
                                     ($hour24 < 19 ? 100 : ($hour24 < 20 ? 80 : 
                                     ($hour24 < 21 ? 50 : 30))))) in 0 seconds
      restore attribute switch
end every


Where can I learn more about “capture attribute” and “restore attribute?”

I’m trying to achieve the same outcome as the OP, but rather than smart lights, I have GE/Jasco smart dimmer switches. I’m trying to learn whether or not those actions add anything to my scenario.



best way would be to try it.

what the above does is capture the switch state. set the level to a new level. restore the previously captured switch state so the switch goes to on or off whatever setting it was before the set level.

this should work for any light or switch that supports the set level command.

note that the capture and restore tasks allow capturing and restoring other attributes besides the switch.


I know this thread is old news now, but…
I just looked over the device handler for my GE motion dimmer (26933) and found that it supports SetDefaultLevel(), which sets the brightness without turning on the light. Genius! Perhaps this helps someone in the community going forward.


Anyone know this for LIFX? I ran into a situation where I manually turned off my LIFX and my piston turned it back on because it happened to be in the period of time where it was fading to zero over a period of time. As mentioned above, I believe the fade to creates an “on” function first, which would explain why this happened. I could always split my pistons into two separate ones (the on portion earlier in the day and the off portion later in the evening - the latter having and “if on” portion to prevent my issue from happening) but I thought I would find any easier way, because as of now, my piston for on and off are all within one…


Unfortunately I have not solved my problem yet. The piston turns on the lights at their last level (100%) and then turns them down to the dim level I want at night over the next 1 or 2 seconds. It is ok but not ideal. I have Leviton Vizia RF+ dimmers which do not seem to support changing level while off. I have not tried to turn on, dim, and turn back off as I suspect this will result in annoying light turning on for several seconds at my preset time each day potentially waking up my baby girl. As it is now, I get the max light for a second or so just the first time I turn the lights on when past the trigger point. The low to high dimming in the morning is not a problem because it just appears as a slow ramp up of the dimmer.


I couldn’t find a way to do it either so I just use ‘set level’ instead of turning on and then setting the level.