Rule that turns switch On then Off then On

I installed some recessed lighting that has a night light feature. It’s an amber LED ring around the rim of the fixture that is activated when (from off) the switch is turned on, then quickly turned off and back on again. Looking for a way to automate this to include it in scenes and other automations I’ve already created. I’m still a bit new to Hubitat. I converted from Smartthings a couple of months ago. So forgive me if there is an obvious solution. Thanks for any help.

I would create a virtual switch with the appropriate name.

Then create a Rule in RM that is triggered by a change in that switch's state that would look like that!

If Virtual switch is on then
     ON recessed light
     delay x
     OFF recessed light
     delay x
     ON recessed light
ELSE
     recessed light OFF
END IF

Might need to have an another IF inside the first condition if the light is already ON?

1 Like

Great idea. Thanks

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.