Duplicating Rules in Rule Machine?

Is there an easy way to duplicate a rule in Rule Machine, such as when I want to copy a very elaborate rule only to make some minor changes, keeping both it and the original?

1 Like

Yes, check out the "Clone" (or export and import) function on the App Status page: App Status - Hubitat Documentation

Be sure to make sure the rule you want to work is un-paused or started and the other one is paused or stopped. This is the default behavior after a clone (I think it's the new one that's paused, but you'll see) to avoid having duplicate rules running--but still something to look at.

2 Likes

You can also copy the actions of a rule, or some subset of them, using the Copy Actions button on the Actions page, and then turning on Export Clipboard. Those actions can be pulled into another rule with Import Clipboard, followed by Paste Actions.

4 Likes

Hello where is this button to copy part of the code?? Lot of thanks.

On the Actions page, second row of pull-downs, center:

Hello, after update the hub i see more options but the tittle dosnt show see my capture. I don't know why!... Is on chrome pc.

Are you using a screen reader (for accessibility purposes)? If not, go to Settings and turn the screen reader option at the top of the page off. Looks like it's on for some reason

2 Likes

Yea, it works :slight_smile:
Thanks.

My limited experience copying rule actions results in the pasted actions being out of sequence.

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