I just installed a physical Lutron Diva and I'm wondering if the dimmer can still send an on (physical) command when I press the on button, even when the light is already on.
My use case is that the light is controlled via a custom attribute (boolean). When this is true, the light is turned on and remains on for 2 min (via Room Lighting app). I'd like to keep the light on, if I hit the switch (physically) on again. I was easily able to do this with the Pico Remotes I used to use before because that was an actual button event that would be registered on the hub.
The Lutron Diva doesn't register another On, when clicked while the light is already on. It does however turn the light to 100%.
But it doesn't seem like I can disable turning off after a level change in Room Lighting.
It can't. Lutron dimmers and switches only send the initial command (physical or digital). They cannot send an on command when already on and an off command when already off. With Lutron dimmers, a second on command will set brightness to 100% as you noticed.
As such, depending on your room lighting setup, it might be possible to still have this work. Have Room Lighting turn on your lights at some level below 100%. If you want to disable the automatic turnoff, you could then select the "prevent turnoff on level change". Since the dimmer would be changing level (even if it went from 99% to 100%), it might work. Then, the only way to turn if off would be to manually hit the off on the dimmer.
I have used this option in my other room lighting automations that are motion controlled. I thought this option was only available for motion controlled lighting (at least as the toggle in this screenshot suggests).
Show your full Room Lighting setup including the Means to Activate and Turn Off. The toggle might still work.
If not, it becomes tricky. You could play with a couple different options in the limiting turning off (rather than disable): (1) custom attribute of the dimmer being 100% or (2) creating a virtual switch that turns on when the dimmer is at 100% and off when the dimmer turns off.
Adding this
made it so that even when I turn off the light with the switch, the Room Lighting stays Active, so the next turn on event doesn't work, because it think it's already active.
I thought this one would work, for sure. But I'm having trouble getting Rule Machine to change the Hub Variable that I created for this.
I ended up solving my situation by creating another Hub Variable and making a connector (see docs here) that is set to act as a motion sensor.
I created the following rule in RM to control the virtual motion sensor:
This allowed me to use the Prevent motion inactive from Turning Off after a level change setting in Room Lighting. I like this set up better because I don't have a variable that tracks an arbitrary number comparison (e.g. >30%), which should make this rule easier to maintain in the future (in case I want to change the level it turns on at).
Thanks for setting me off in the right direction @JB10!
I do wish limiting after a level change wasn't limited to just motion inactive events.