Copy paste app

Hi Support Community, is it possible to copy a Rule Machine app to be able to adapt it for another process.

Are you trying to copy the actual Rule Machine app or a rule in RM.

Trying to copy a Rule in Rule Machine.

Yes, you can use the “clone” function in rule machine to create an exact copy of a rule that already exists.

https://docs2.hubitat.com/en/apps/rule-machine/rule-5-0#export-import-or-clone-of-rule-machine-rules

ETA: @bertabcd1234 the image at https://docs2.hubitat.com/en/apps/rule-machine/Export_Import_and_Clone_RM_rule_v2.png might be missing/inaccessible? I’m seeing “not found” when trying to browse to it (safari on an iPhone).

3 Likes

Thank you for pointing me to the documentation. I was searching for copy, duplicate, the term is clone.

When I try the link https://docs2.hubitat.com/en/apps/rule-machine/Export_Import_and_Clone_RM_rule_v2.png I get a response nothing found

I can see the information on the 1st link, however I can not find or see the clone button. I have tried highlighting and perusing various buttons but can not visualise it.

In the Apps tab, expand Rule Machine so you can see all the child rules. In the very right column, there is an :information_source: symbol. Click on that symbol for the rule you want to duplicate, and the Clone button is at the bottom of that page.

4 Likes

Those are the docs from an old version of Rule Machine. I'll probably just remove that image, though apparently there was a screenshot in the past. Thanks!

Cloning is now a platform-level feature. The docs to look at are really these:

Are you looking on the App Status page that @neonturbo (and the correct docs above) describe how to get to?

4 Likes

Thanks for clarifying @bertabcd1234

Thank you I have figured out how to clone. I did clone the Rule Machine app that I want to use but modifying it is as challenging as write it a new.

I see that I mostly use Rule Machine for the locks to be able to distinguish between the lock being locked by the inside “thumb turn” or outside “keypad”. Any chance that these lock unlock distinctions could be offered in Basic Rules seems like it would make life so much easier for non techs.

I managed to get help to get a rule machine working to turn lights ON when unlocked by keypad. I cloned that rule machine to modify to change lock by keypad to turn the lights OFF.

I’m already stuck can’t figure out how to modify the 1st action. Is it simpler to write from scratch.

Haven’t figured out how to change that to say

Click the action on the table to edit it. See: Rule 5.1 | Hubitat Documentation

Or if you are changing the action itself to a completely different type, remove and add a new action in the its place.

1 Like