Cross posting: Hubitat rules setting LED color/level - red series dimmer

Hello:

I am trying to create a rule in Hubitat RM that turns the LED on my switch to red if the door is unlocked. I want it to stay red until the door is locked again. I have tried two sets of rules - Rule 1 uses the “child” LED device and Rule 2 uses StartNotification command. Both work (sort of) with some issues and I’m trying to see if there is a fix or a better way of doing this.

Default LED status: Color (Param 13?) = Blue, % when on (Param 14?) = 3 (30%), % when off (Param 15?) = 1 or 10%

Rule 1:


Issue with the above rule is that it works fine if the switch is “on”. However, if the switch is “off” and the door is unlocked, the LED level is 10% (LED status from the configuration) and not really visible (it does turn the correct color).

Rule 2:


Issue with this is that if the switch is turned on/off manually while the notification is active (door is unlocked), the switch LED goes back to default settings (like if the notification was stopped). Here is what I saw:

Switch was “off” - LED blue, level 10% :white_check_mark:
Door unlocked (switch still off) - LED red, level 100% :white_check_mark:
Switch on (manual) - LED blue, level 100% :x:
Switch off (manual) - LED blue, level 10% :x:

For actions 3 and 4, I would have expected the LED to remain red at 100% (like it did in action 2).

Any suggestions or alternative approaches would be appreciated. Thanks.

If I recall correctly the notification going away if the switch is turned on/off while active is a known issue, and fixed in the beta firmware releases. @EricM_Inovelli should be able to confirm.

That said, I don’t believe there is a way to stop a notification when the trigger event is resolved - other than the notification timing out or pressing the config button twice.

@rakeshg - As @amdbuilder stated, the notification issue is fixed in the newer firmware. It was over sighted in the initial firmware, but has been fixed and confirmed working. Upgrade to the latest 1.44 firmware to fix the notification from disappearing when turn the switch on/off.

Thanks @amdbuilder and @harjms. Updated to 1.44 and this appears to be fixed!

2 Likes