Rule machine - as per the app developer, this app is no longer available for new installs, distribution, or support

Pretty good. I like that. I’ve designed a couple of rules that have that built into the logic. It’s also the way I write the rule logic… It’s a little different than most lol.

But that’s a good idea.

Are you able to choose the time limit when making the rule? Or is it hard coded?

I am a programmer. Rule number 0 of programming: never hard code. :smiley:

Although I should rename the property name to “Limit triggering to once every these minutes”. The way it works is, it retrieves the list of events for that particular element for the set number of minutes and goes through it to ensure the same attribute did not change within that time frame. I also want to add a rule rate limit where the whole rule/trigger won’t happen again within so many minutes. Comes in handy a lot of times :slight_smile:

3 Likes

That is four different kinds of awesome! Now, I just need to learn the programming side of this app so I can do that too. I can make a rule scenario to do almost anything… I actually haven’t found a scenario I couldn’t get to work yet! (Yes that’s a challenge to y’all)!

This is definitely a very handy feature.
But don’t forget about the four timer limitation on each rule imposed by the platform.

I am not adding/using any timer. I am using a function to retrieve event list for the last X minutes. All synchronous code.

That makes sense… Is it a cancellable event? For example, you come home and your etchings home stiff runs, but has a 15 minute limit. But you forgot the eggs and turn around to run to the store. You get back in ten minutes and the garage doesn’t open this time.

Is it possible to have it cancel that limiter and dessert if the action that started it changed states within that time period?

Okay this is weird. Replied and got a 500 error - then tried again and it said the body was too similar to something I already posted. How come?!

Not sure I follow you. For example, went to Dunkin Donuts this morning and when I came back, the rule did not run because I haven’t been out for more than 10 minutes. It simply ignores a trigger if the underlying device has changed states within the set number of minutes.

So you’re saying you came home, garage opened, but forgot to buy eggs, go back, get eggs and when you come back you want to somehow “cancel” the trigger ignoring algorithm so that the garage door still opens. Did I get it right? If so, what would cancel it? A button on the device in ST app? How do you see this working? Again, I made the change to overcome ST’s issues with presence. When me and my wife go out and come back at the same time, ST has the tendency of showing one home minutes after the other, giving us enough time to go inside the house and close the garage door, at which point the garage would self open again.

And rule number 0 of programming (I know, same number): Anything is possible, given the right programmer :smiley:

Oh I agree about the presence issues and how they are minutes apart. That’s why I went to life360. It’s been great ever since.

I’m guessing that since the program is watching the state value of the setup, instead of using a timer, that there could be a way that if the imitating trigger device changes states during that time limit that it could delete the stored data and reset the algorithm, but ONLY the iniating trigger device.

While that would be useful, but it defeats the purpose of why you wrote that code in the first place. If the presence sensor that initiates the rule start bouncing back and forth, you are right back to the beginning… The Garage Door Is bouncing up and down.

I guess that the best thing would be to just do it like you already have.

Unfortunately, due to the limitations of the platform there is only so much that can be programmed around.

Hmmmmm… I’ve done basically this same thing, but had to program the logic to do it… Which means a scenario usually has an extra couple of rules in it…

I like your way better!

Just wanted to add this news article…

3 Likes

This is being discussed here: Uproar

3 Likes

Here’s the scenario that led to this solution. My daughter walks home from the bus station. The street is bent and curved in such a way that her walk to home takes her into the home circle, then as she reaches a corner she comes out of the circle and then back into the circle. This, corroborated with her slow walk (anyone noticed how slow kids walk these days?) made the garage door open, then close (a different rule closing the garage door if everyone left - which she just “did”), then open the door again as she approaches and enters the circle again. So the cancel part of it - I didn’t need it. But that doesn’t mean it cannot be added and made a parameter along with the quiet time I already have. I have also moved the home circle further back so that she only enters it once. This was Mr_Lucky’s suggestion and it worked.

And in my initial scenario above, it’s not the same sensor that triggers the problem. There are two individual presence “sensors” (do read mobile phones). I am looking at the device history individually, so none of them “bounced”, they just happened minutes apart even though we came with the same car. To fix this, I am using a rate limit on the trigger itself, as opposed to individual trigger capabilities.

Oh yeah, I remember you asking about a solution, and based on the circumstances there was not a reliable solution that meet your needs. You said you were going to write one.

I offered over that one trying to figure it out… But I’ll be totally honest… I got lost in the plethora of everything.

Great job on your solution.

I just went to install Rule Machine today and it appears to be…withdrawn? Does anyone know what happened to this? I had to do a fresh install of everything on my hub, and really need to get Rule Machine back.

A sad day for ST

Everything you need to read is in this thread over here:

TL;DR version: ST platform is messed up and Rule Machine was withdrawn due to that

Well that’s some bad news. Know of any alternative to Rule Machine? I’m pretty new to Smartthings, and want something that I can write more complicated rules with.

No one is allowed to redistribute it, but through the magic of Google Cache you can still find it.

https://support.google.com/websearch/answer/1687222?hl=en

Search for “Rule-Trigger github” and then “Rule-machine github” and use the cached pages for them.

2 Likes

@obycode’s SmartRules.

3 Likes

Ok so you got me pretty excited about the possibility of this happening here. I did the searches like you said, but can only find the rule-machine app, not the rule one. Any idea’s? I really appreciate you helping.

I’m thinking we should respect Bruce’s request as best as possible if we ever want him back

8 Likes