[RELEASE] Rule Machine Rules 'In Use By' app

This little app examines the Rule Machine rules on a hub and creates 2 tables to quickly identify the rules that a specific rule calls or all of the rules that reference an individual rule. The original idea grew from the feature request at: Feature Request: Add Rule Machine "In Use By" List

App is available in HPM (AKA Rule References Rule) or via a direct import from https://raw.githubusercontent.com/thebearmay/hubitat/main/apps/ruleRruleList.groovy.

15 Likes

@thebearmay, what a great idea, thx.

One extension idea that I would think (haha) is conceptually feasible: just as one can query RM for broken rules, could this same data not be used to find out if there are broken references? e.g., rule A called the actions of rule B, which was subsequently deleted

Sort of already covered by the way it works - you should see an id in parens without a name in both tables:

1 Like

Search for Rule References Rule in Hubitat Package Mgr.

3 Likes

Does "(*)" in the Rule ID field indicate Private Boolean usage?

Looks like it's a shorthand for self referencing - latest version should filter those out.

2 Likes

Room Lighting apps don't show up by name. I was trying to fix the connection to (2351) as it appeared to be the same as a couple of apps that had their pause and resume references removed. When I clicked on it it opened the rule as opposed as no longer available on the hub.

Feature request:
Would it be possible to have the table in report format, similar to your Device Details Display app?

@thebearmay It appears this isn't listing the RM5-like button rules that reference other rules.

THANK YOU for this! It's something I have quietly wanted for over a year now. I've always been afraid to remove a rule for fear of breaking other rules.

Update: And I found a few!

Once the printing of multiple pages to PDF is resolved by the platform, this app will provide a great way to physically document the rules and their interconnections.

2 Likes

@thebearmay sorry to ask, does this app works?

I am running 0.0.11 and it doesn’t work as expected.

I get a “*” that is not supposed to show.

I think "*" means the rule references itself, like setting it's own Private Boolean or cancelling it's own actions

1 Like

Ok, thanks

1 Like

Hi, @thebearmay I just installed. I have an issue reading the report as I can't seem to scroll to the information. I tend to use long rule names due to the inability to group or categorize rules and I think is throwing this off? I am on Mac in Safari. Perhaps I am doing something wrong? Thanks for making this available.