The rule I posted does what I want (See below). It dims the light to 10 at bedtime (while keeping it off) then dims it to 100 at sunrise (while keeping it off). So when I get up at night and turn on the light it's at a brightness of 10, easier on the eyes. But during the day it's at 100. Currently I'm using Patio Light for testing.
If the rule now does what you want, I guess we’re all set then.
Are you trying to set the level so that if it is later triggered by a motion event it turns on at that new level?
If that's the case then why not just move the level logic to the motion rule?
trigger: motion active
if time is between (sunrise - 30) and 10pm
   dim light to 100
else
   dim light to 10
end if
Thanks. but no motion involved. Just setting the light to 10 shortly after bedtime, and back to 100 at sunrise. I was using the patio light for testing. This rule is actually for my bedroom lamp once I get the new smart bulb. Right now I'm using a Kasa outlet.
Fair enough. I understand the patio light was for testing. I'm just confused about the on/off behavior. I thought you might be using motion control also. It doesn't matter, if it does what you want then fantastic. 
My take is that it is a way of "pre-staging" the level, so that the next time it is turned on it will come on at level 10, but meanwhile, it should be off during the level 10 time period.
Some dimmer drivers allow for pre-staging directly if the device supports it.
If the device and it's driver supports setParameters, you can push out the values without using dim or off. Wall smart switches do. Bulbs? not so sure. This example turns off LEDs on the device at night.


