Help with Rule to Control Dimmer

I have a rule below that I am trying to get to turn on a dimmer to 95 when you turn it on (true) and (the part that doesn't work) is get it to dim it down to 10 when (false) and then after a few seconds turn it off. What am I doing wrong? thanks

Here is the log and I am not sure what Parse means. But the log isn't showing what I am trying to get it to do.

dev:6162019-04-04 08:40:29.974 am debugdimmerEvents value: 0

dev:6162019-04-04 08:40:29.962 am debugSwitchMultilevelReport value: 0 ok

dev:6162019-04-04 08:40:29.959 am debugparse description: zw device: 53, command: 2603, payload: 00

dev:6162019-04-04 08:39:51.432 am debugdimmerEvents value: 95

dev:6162019-04-04 08:39:51.431 am debugSwitchMultilevelReport value: 95 ok

dev:6162019-04-04 08:39:51.427 am debugparse description: zw device: 53, command: 2603, payload: 5F

dev:6162019-04-04 08:39:51.369 am debugrefresh() is called

app:13562019-04-04 08:39:51.354 am infoMaster Bath Light Set to 10% When Off at Bedtime is now True

app:13552019-04-04 08:39:51.313 am infoMaster Bath Light from 10% to 95% at Shower Time is now False

dev:6162019-04-04 08:39:51.289 am debugsetLevel value: 95, duration: 0

app:13552019-04-04 08:39:51.215 am infoMaster Bath Light from 10% to 95% at Shower Time: MBB Light switch on

app:13562019-04-04 08:39:51.211 am infoMaster Bath Light Set to 10% When Off at Bedtime: MBB Light switch on

dev:6162019-04-04 08:39:51.198 am debugdimmerEvents value: 95

dev:6162019-04-04 08:39:51.196 am debugSwitchMultilevelReport value: 95 ok

dev:6162019-04-04 08:39:51.038 am debugparse description: zw device: 53, command: 2603, payload: 5F

When you turn on the device it is going to ramp to the rate that it was last on. Are you trying to get it to always be bright during the day? Put a 500 ms delay in at the top of your rule and see if that clears it up.

Yes I was trying at first to get it to go up to 95 during day, evening when turned on and when you turn it off it would go down to 10 and stay (unless you turn it back on) and then after midnight if we get up it would be at 10 because that was where the last off put it at.

Turn it back on??? I don't understand but i don't think this is going to work the way you want it to. When you turn on the dimmer without the setLevel command, it turns on to the old level. That's just the way they work. What you want is button controller that can set the light level based on time of day. Like a pico controlled with Rule Machine.

I see what you are saying and this is hard to explain.

  1. time between 7AM and 11:59PM
  2. turn on light it goes to 95
  3. turn off light it goes down to 10 and then goes off (this is the problem, can't do it)
  4. After midnight if light is turned on then it is at 10 (can't get there because of step 3)

YOU CANT DO THAT!!!!!

Turning the light off turns it off. You can't then fade the same light! Do you understand that? Turning the light off it is then off. So you have nothing left to fade.

You are trying to overcome the limitations of your device and it's not going to work. You can only do this with another control device, like a Pico remote. Then when you press a button you could setLevel, then turn it off. But doing what you said won't work.

I said I can't do it in parenthesis. I was just showing what I was trying to do which now I know I can't.

Oh....ok. I thought when you said can't do it you meant you couldn't figure out why it wasn't working. Not that it wasn't possible.

Wheeew! I am glad we got that straightened out.