I have 2 rules. One when you turn on a dimmer it fades the light up to 95. I have a second rule that when turned off fades the same dimmer down to 10 and after a 5 second delay it turns it off. This is so when I go into the room at night the light will only go on to 10% and won't blind you.
The problem is when I turn on the light and it is previously set to 10 it won't fade it up to 95, it just goes on and stays at 10. Consequently when I shut off the light and if it was previously set to 95 it goes off but the dim level stays set at 95 and not 10!
Why is the dim level not going down to 10 with Off and why is it not ramping up to 95 when turned On? thanks
Well, when the OFF rule triggers and does the fading, it turns the light back ON (can't fade it when OFF).... Which then triggers the ON rule and sets it back to 95...
You would need to lock out the ON rule when the OFF rule runs for a period of time using the private Boolean on the ON rule, another condition, or other.
At least that is my guess. I could be wrong! Should be able to look at the rule events or the log and see if that is the case.
Ok, I will try that. thanks
I added in the boolean.and turned it on. Here is what I did. It still only comes on at 10 and not 95 so I can't really see what the off does. Is this correct? On rule is called test and off is test1.
I'm thinking I would set the private boolean for the ON rule to false in the FALSE section of the ON rule (may/may not need a short delay on that to ensure the fade to 95 works before setting false).
I would set the private boolean of the ON rule back to true after a delay in the TRUE section of the OFF rule.
Probably need to use the Private Boolean as a condition in the ON rule, too.
I'm not great at this kind of rule, though.
My Fibaro dimmers didn't fade either. It is the Generic Zwave driver that is the problem. Get it working manually before you start with the rules.
Is the Generic Z-wave Smart Dimmer have the same problem? I can manually set the dimmer to 95 on and off and I can set the dimmer to 10 on and off so the bulb is working ok.
I will give that a shot also. thanks
Ok, did I get this right?
Still the same just now after testing. I removed boolean from condition and tried again and still the same.
- Private Boolean should be TRUE in the ON conditions, not false.
- Private Boolean should be set to FALSE with delay in the "Actions for True" in the ON rule, not in the "Actions for False"
I think the rest looks right to me on quick glance.
I think that makes sense.
One more thing you might need to think about is what it should do (if anything) if turned OFF outside of the time window (7:03am - 11:59PM), as then the Private Boolean for the ON rule would never get turned back on.
Maybe a 3rd rule that runs at 12:05 AM to turn the Private Boolean back on? Might be an easier way, just thinking out loud.
Or maybe take the Private Boolean false out of the OFF rule altogether, make a 3rd rule where that is all it does - switch OFF=true delay 10s Private Boolean true on ON rule (no time restriction).
How would manually turning the lights on or off affect this?
Shouldn't matter. Since it is ON/OFF rule, it will work regardless who is turning it on.
Still no go. After midnight I want the light to come on to 10 if someone has to get up so I don't want the 95 to play a part in the on position just 10. Any other thoughts? Could it be the driver?
Could be.
Maybe start by pausing your existing rules, and making a simple rule activated by virtual switch that does the on/fade and see if it works. Then you at least know if the driver works at all...
Set a simple lighting rule to turn on and set to 95 and it works fine. It is the 10% one that I can't get to work correctly. It wants to go up to 95 then back to 10 which I can understand. But I want it to just come on to 10% after midnight without going up to 95 and then back down to 10. Kind of defeats the purpose.
So I was trying to come up with a way to set it to 10 before midnight so it is at the right level after midnight. Too bad you can't set the dim level without the bulb coming on.
It would be nice if they could add "turn Off and Set Level" to the simple lighting! Or I guess it would read "Set Level and Turn Off".
I use the Generic. I can dim, on,off whatever. I cannot get any fade functions to work.
I am using the Generic Smart Dimmer and I too can get it all to work except for the fade as you said.
The devices don't work that way. You if you turn them on they come on to their last brightness. So, if that was 95, that's what it comes on to. If you issue a setLevel without turning the switch on, you will get a mixed result. Most Smart bulbs will come on at the level they were previously at and then either ramp up or down to the level requested. Dimmers will usually come on to the level of the setLevel command. So, stop ordering the device to turn on before setting the level. Just set the level.