Rule Builder iOS app

Thanks for this! SmartRules was one of the few things that was nudging me closer to the non-jailbroken path, now I get to keep the best of both worlds!


You can thank one of your fellow jailbreakers that convinced me to make the effort to lower that requirement :smile:

1 Like

I ran into a minor issue last night. I was headed to bed and wanted to put the house into night mode via my watch. As my finger came down on the “Night” icon, it suddenly changed places with my “Open my noisy garage door that’s right below my sleeping wife” icon.

This triggered a slow-mo scene where my brain fired an “ABORT! ABORT!”, but the finger just didn’t get the message in time, and the damage was done. Fortunately, she doesn’t remember waking up and giving me a nasty look. =)

Haha. I can definitely imagine my brain telling my finger to abort to no avail (I can also imagine the dirty look from my wife)! Sorry about that. Enabling ordering of the rules is a priority for version 1.4, so that should take care of this issue for you. Hopefully they don’t move around too much until then.

Sounds great. Thanks! Now that I know it’s a potential issue, I can just wait a few extra seconds to make sure everything’s loaded. Just surprised us a bit last night is all. Keep up the good work!

1.3.1 is live and everything should be working great. Let me know what you think! Thanks!

1 Like

I finally had a chance to start really digging in and I’m REALLY liking this. It’s so much more convenient to be able to have all of the “triggered” rules in one place instead of buried within each individual device.

A few questions/suggestions:

  • I saw above where you mentioned an after sunset rule assumed before sunrise and vice-versa. If I created a rule that had both “after sunset” and “before sunrise” as conditions, should it still work?

  • Are folders or groups on the to-do list to better organize/manage rules? I’d like to be able to put all of my QuickTap rules in one folder, everything for the nursery in another, etc. I see myself ending up with a few dozen rules and that would keep the top-level list much more manageable.

  • Is there a way to export our ruleset? I assume they’re stored in the state table within the smartapp, but I’d like to be able to:

  • Take a backup of my config (and for bonus points, be able to restore it!)

  • Have a human-readable list of my rules

  • Is the SMS source number (mine came from 844-647) always going to be the same? I’m using it to alert when our toddler makes a covert escape from his room at night, so I’ve assigned a delightfully obnoxious text tone to that number.

  • I have seen some QuickTaps on my watch not work but haven’t been able to come up with any common thread. If there’s anything I can do to help troubleshoot or be a guinea pig, just let me know.

Keep up the great work!

One more thing I thought of last night. How about letting us add some “variables”. A couple of things that this could be useful for off the top of my head:

  • Phone numbers: If I could set “Brian’s Phone Number” in one place and then use that in all of my SMS actions, that’d mean only having to change it in one place should my number change.

  • Times: I’ve got devices that behave differently before and after our toddler’s bedtime. As he gets older, that time will change. It would be very convenient to update this in one place and have all of those rules adjust. Time ranges would be useful here as well.


I really love the ideas of global variables that can be actively changed. This is a great idea.

1 Like

It might just be me but I would love the following features:

  • Have multiple IF this happens statements instead of just any of these happen. So I can set multiple triggers
  • Split up the While True statements so I can multiple While All’s with While Any’s in the same rule

+1 the Global Variables #btk
Thanks for all of your hard work because I really love this app but it’s just not ready for more complicated rules (maybe it is and i’m just missing it :smile:)

1 Like

Is anyone else having issues with rules not firing when they should? It looks like most of my rules aren’t working any more. Support wants me to recreate all of them, which would be a chore. And I know the issue is not the app since everything worked and suddenly stopped working. It was a backend change on ST’s side that seemingly broke things. I also have several other Smartapps that don’t work anymore as well.

@obycode - might it be possible to offer, in the future, a way to “resubmit” the rules so they reschedule themselves when things in ST break like this? (Did that make any sense?)

Are the rules that aren’t working triggering on times or event subscriptions?

I believe Brice told me if you save a rule (even without making any changes to it) it will delete the rule and then recreate in the Smartapp. I hope I remember that correctly, Brice (@obycode) can you confirm? If so I wonder if that would help instead of recreating them all from scratch.

I hope this isn’t a global problem and that they don’t have to be recreated. I have over 60 rules right now and I do not want to recreate them all.

Yup, that’s right. If you go into the rule and then save it, even without any changes, it will resend it to the SmartApp. I’m also curious about what kind of rules are having issues. Mine are still working well. Anyone else seeing issues?

1 Like

Every now and then I get the forever spinning wheel. About 30 minutes ago I tried to remove my Life360 presence sensor which was added to SmartRules so I unchecked it but it still showed as a SmartApp within ST. I checked it again then unchecked it but no luck removing it from SmartRules. SmartRules still shows as a SmartApp attached to the Life360 presence sensor. Those are the two issues I’ve seen since the last upgrade.

I vote pretty much for all the additions recently posted especially the backup since I just accidentally deleted a rule but not sure which rule it was. Opened the rule while scrolling and finger slid across the delete button.

Thanks for this app @obycode . I’ve replaced all my rules and alerts from Smartthings into this app.

Using this app made me realized how unorganized and chaotic it was setting up simple rules in Smartthings. There are at least 3 different ways for motion detectors to send a push notification, for example. (And finding them all to stop them is maddening!)

The only remaining rules I have left for Smartthings to manage involve the Thermostat. Are there plans to add this functionality in the future?

Also, add more icons :wink: I have so many rules that I ran out. And that’s not a bad problem to have!

Thanks Brian, I’m really glad the app is helping you out. Making things easy and clear is our goal! Thermostat support is definitely coming soon. I’m still trying to figure out the best way to add more icons… It’s a known issue, but we haven’t come up with the best solution for it yet. It is definitely on the drawing board though.

1 Like

Is triggering a rule from a momentary switch on the roadmap? I’ve got some virtual switches that I’d like to trigger some things in smartrules.

1 Like

A momentary switch can’t trigger anything, because it doesn’t have any attributes, only a command, push. That’s why they only show up in the actions section. What you’re looking for is a button. If you give your virtual switch the button capability, then it can be used as a trigger.

See here for info about the button capability and here for the momentary.

It looks like my virtual momentary switch triggers events and has capability “Switch”. Here’s the code I’m using: