Utilities like RMUtils()

I am building an application that takes the rules from the output of RMUtils("5.0"), and brings them into a rich UI.

I am receiving requests to bring in rules created via other native applications (button controllers, basic rules, room lighting, etc.).

My question is; are there other utilities like RMUtils() available for these other applications?

If not, is there a suggested way to "poll" a rulelist created by another application?

EDIT:
By polling, I mean I'd like to receive an array of rule ids along with their friendly names.

1 Like

Bumping this in hopes of some attention.

I am looking for a way to "poll" a rule from RM5.0+ and get some properties from the rule. Such as if the rule is "paused" or "stopped".

In my code, I am using the RMUtils('5.0').. but it only returns the rule id and rule name.
I also tried using the RM HTTP Requests, but again, I can only perform actions.. not query status.

Any way to poll the status of a rule in rule manager?

1 Like

No, there isn't. There is a Condition in Rule 5.1 that returns whether or not a rule is paused.

In response to your original question, there are not equivalents to RMUtils for other built-in apps.

1 Like

Thank you.
That removes one perpetual thorn from my mind!

Could you elaborate slightly more on the "condition"?
I have not seen that in my travels.

Here is a response from RMUtils:

[[323:Garage Button], [245:🌅 Sunrise], [246:🌅 Sunset], [220:🐕 Barking Dog], [211:🔒 Lock Changed], [208:🔒 Lock Truck Doors], [212:🖐️ Motion Detected], [171:🚪 Check Garage Door], [210:🚪 Contact Changed]]

"Garage Button" is currently paused, but I don't see a condition?

Under Manage or Create Conditions, you can select Rule Paused:

Then another pull-down shows up where you can select a rule.

Thanks Bruce. I appreciate your time.
I was hoping there was a way to check the rule programmatically from another app.
Thank you for the clarification.

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