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

Excellent work and such a quick turnaround. Thanks! :beers:

Physical override seems to work at this point - will chime in here if it doesn’t. Thanks for taking my ugly prototype code @bravenel and making it smooth. :smiley:

Physical over ride will work great for setting something like, ā€œturning off wake up mode when i just want to sleep in and be late for work!ā€

…the physcal override as programmed will suspend the rule if a switch in the rule has been manually turned on. I don’t think it’s meaning what you think it means…

That being said, @bravenel, would it be possible to actually have a way (maybe an option page) to actually check off a rule to disable it but not delete it? Maybe in the logic it would force that rule to be false while it’s selected? That would meet @bamarayne’s example of being able to sleep in…

Why not come up with an additional condition? You can use a virtual switch, controlled by a Minimote (or Alexa, or …). Turn on the switch, disables the rule.

Yes, that’s exactly my use case… or, more appropriately, my wife’s use case - to wit: ā€˜If the I*&%&^%^%&^% light goes off again when I’m in the shower and the motion sensor times out, it’s time for a divorce’…:smile:

My answer with this is simply ā€˜turn on the light manually honey, and it will stay on until you turn it off’. Turning it off manually or through the app/automation re-enables the rule evalutation (motion and lux in my case).

I was kinda thinking a checklist might be useful if, say you need to disable rules to test and track down an issue with rules overlapping, etc

Yeah, I was replying to @bamarayne but apparently I hit the wrong Reply button. So much for just getting my ā€œRegularā€ badge. :laughing:

I was doing some testing on my rules, specifically the delayed off feature. So, I have the rule turn on a light when I arrive home and I also want the same light to turn off after 10 minutes, so i added it to the delayed turn off. Do you see an issue with the way I am evaluating the rule? Can I still ā€œtimeā€ the light if I turned it on as part of the rule?

No problem with that way at all. I have a couple rules that do this.

What you described would work great, but for me, the over ride would be fine… I can just tell Alexa to turn on ā€œSleep Inā€ and my wake up rule is disabled until I turn off ā€œSleep Inā€ā€¦ then the routine starts and I get up.

added a screenshot to my original post. Does it look like it makes sense?

I just created a test rule with the same conditions and delay; this time it worked. It’s a bit strange that it did not work in my actual rule. I will look into it again. Thanks everyone.

Grrr. It happened again. I was creating a rule and ST app crashed. Now I have another bogus rule after re-doing everything 3 hours ago :frowning:

All I can say is thank goodness for Bluestacks! :smiley:

I created another thread to try and keep this one about the updates and changes to the app.
The other thread is for dealing with App Logic.

Just for some feedback, I don’t think certain time works for everyone. I have been having trouble running my daily light automation and when I changed it back to 5min time spread, it works correctly. When I left it at 1min and certain time, live logging doesn’t even show the rule even attempt to run.

I too have been seeing issues with time-based rules the last few days. For instance I have a light that I want to turn on at 7:00 PM CST and turn off at 11:00 PM CST with no other conditions. I also have the light turn on at 5:45 AM CST and turn off at 7:15 AM CST with no other conditions. The first rule hasn’t been executing, but the second one has been working. Last night I changed the first rule to turn on at 7:15 PM CST and turn off at 10:45 PM CST, and it worked! I also noticed that one of my mode change rules didn’t execute at 10:30 PM CST, but my evening and morning mode change rules did work, which were based on sunset/sunrise conditions.

It’s just a guess at this point, but perhaps I’m being bit by the hour/half hour bug again. Supposedly it was fixed with a platform update months ago, but I’m going to change any time conditions to be something other than the hour or half hour and find out if things get more stable.

Update posted, Version 1.1.13.

Release notes:

  • Added on/off as choices for ā€œSwitches to turn off after a delayā€ and ā€œSwitches to turn off after a delay, cancellableā€. This allows for a delayed On.
  • Added Basic and Advanced rule input modes. Basic, which is the default, does not prompt for sub-rules. This makes entering simple rules that don’t have parentheses much cleaner. Advanced allows for sub-rules, and is the app as it’s been up until this release. You can find the Advanced option in the More Options section at the bottom of the page.
  • Bug fixes for water sensors and valves.

To update: copy code for Rule from Github https://github.com/bravenel/SmartThings/blob/master/Rule
Paste it into Rule in IDE, overwriting previous version, and Save. Do not publish!

@greg and I discovered that the leakSmart valve, which is a zigbee valve, throws on/off events for opening and closing, not open/closed events. I think I will remove Valve as a condition, because it would confuse someone to think their valve could work that way.

It does respond to device.open() and device.close() commands, so choosing a valve for an Action does work.

This is still an issue for me… maybe I’m the only one seeing this? It seems to be confined to mode changes from Night to Home, and it affects rules randomly. I only have one rule that doesn’t have mode restrictions (motion in my master bedroom closet), and this one is never affected, so it’s definitely something in the rule evaluation based on modes.

I’ll try to dig into the logs tomorrow morning after switching from Night to Home and before I go into Rule Machine to kick the offending rules and force re-evaluation… sigh