Tip: Stuck/Delayed Actions - Repeat Loop

Not sure if this will help anyone else, but figured I’d post it just in case as it had me banging my head against a wall until I figured it out.

Problem: I had a slow to respond, sometimes non-responsive GE Enbrighten Z-Wave dimmer that wasn’t completing the called actions or did so with severe latency.

I’m sure there is a more straightforward or improved way to accomplish this, but I was new to HE (I still consider myself new as I’m learning so much everyday) and wanted to have something automatically run to make sure the actions actually took place in a timely manner.

Function: Turn on the light when my front or side doors open. Turn off the light when front and side doors have been closed for a period of time.

Solution: Create a variable to pass through the specific dimmer level, then repeat the action until the light matched the desired dimmer level.

Here was the trigger code (I later found ways to use this as well with Room Lighting).

Here is the Repeat Loop code (there was no trigger so this was only called by other rules and apps).

I added the iterations count as I was curious how many times it would take to make the updates, rarely was it less than 4.

Fast forward to now, as you can see I’ve renamed the device to “_old” as I swapped it for a Lutron dimmer and am cleaning up the old, no-longer-needed virtual devices and rules. P.S. These Lutron dimmers are absolutely amazing, and you would probably be saving a headache in the future just going with them from the start.

In any case, hope this helps at least one person. Drop me a reply if you have any questions (or suggestions, as I’m always trying to learn).

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