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

Rule Machine is no longer available.

Rule Machine User Guide
After Sunset Routine?
Rule Machine install help
Smart Lights - Feature Requests
Show your Rule Machine automations
Rule Machine Version 1.8 Released
How to do "If This and This then That"?
Smart Things is UNRELIABLE
Rule Machine Feature Requests
Any idea to automate off every 10 min for Caseta light?
Ceiling fan controller?
[UPDATED] Rule Machine with Triggers
Reliable Presence SmartApp
Schlage first class citizen?
Help => Auto Open/Close Keen Vents based off of Temp Sensor
New to HA Looking For Opinions
Nest Thermostat
How complicated can you make routines?
Door Locks Fully Supported by ST's
SMS Sending via Simulated Buttons - UK Hive Integration
Blink multiple light switches when door is left open
Any suggestions on which app does this toggle on/off for me
New user... who (me) must be an idiot
Actions based upon who is present?
Fun with Rules!
Current Sensing Module
My Routine based on Sunset Routinely Fails
Aeon Doorbell Type Beta
Turning on a smart plug during a certain time frame and controlling it via temp readings along with a Nest
Notify me of kids arrival/departure, but only when I'm not home
Starting out
Color Temp as a "Change Color" function?
Gear S2 app
Turn on light when ariving then turn off after minutes uless already on
Smart App Not Triggering
Smart Lighting Working Inconsistently
SmartThings starting to feel like Homeseer?
Hello, Home HomeKit (and Siri!) control via homebridge
Turn Light Off After X Amount Of Time Unless Triggered
Arrival and Intrusion Alarm Occur Simaltaneously
Modes are really "states" ... can we add tags, or ...?
New user, want a routine/app, how?
Do Routines Work?
MimoLite Garage Door Controller
Home Automation is almost like a Rube Goldberg machine…
How to Set Thermostat Based on Both Switch and Sensor
Turn lights on with proximity/sunset, then off after 20 minutes, without power allowance?
Ability to turn off lights after x minutes of no motion is missing
Oh Look ST Automation takes a holiday too! Aww.. cute
Icon shortcut to turn a group on
Rule Builder iOS app
Notify if door is left open after a period of time?
Garage Door openers and phone sensors
When smart home monitor is armed turn on light
Monition sensors and lights issue
Left it Open app for multi Doors?
Trigger heater on and off at certain temp using sensor
Turn OFF outlet using Dry the Wet Spot?
Frustrated by the state of things
Smart Home Monitor - Feature Requests
Newbie - Trigger/Rule Machine install help needed
[RELEASE] Holmes Smart Humidifier With WeMo
Light/plug in indicator my alarm is still active
Modes/Routines should be Mode/Environment/Event
Stringing events together?
Notifications without push alert
Recurring Schedule
Everspring Water detector Battery condition
New to SmartThings - Soo many problems
Rule Machine Errors
Dimming with ZWave Remote?
Hello Home Advanced Rules
V2 Issue with "turn on and set level" not actually setting dim level (crazy workaround inside!)
Creatinga custom action on trigger
Suggest a Device
Lock when I leave unlock when i arrive
Auto Away Parameters
Smart home monitor entry using rule machine
Heat tape (cable) control
How to turn electric blanket off after preset interval of time?
Basic notification vs intrusion
Multiple SMS text messages
Rename Button Controller
Remotec Z-Thermostat (configuration with Z-Wave Commands)
[BETA RELEASE] enumerate (device command exploration tool)
Garage Lights with Motion and Door Contacts
Turn a light off if on more that 10 minutes
I want a rules engine, not apps
Looking for a way to monitor/notify me when a water/wet sensor is dry
Iris Smart Button
I don't understand the SmartThings/SmartApps ecosystem -- thoughts and feedback after several weeks
Switched from WEMO app....what I'm finding
Fireplace on, thermostat change
Virtual Switch that follows the state of Physical Switch
Virtual Switch + Simple Dimmer Smart App
Amazon Echo DOES Voice Notifications!
Aeon Minimote to Dim/Brighten GE Lights?
Entirely disable switch for a period of time?
Critial switch schedule
ST motion capture when SHM is Disarmed?
Dim multiple dimmers
[UPDATED] Rule Machine with Triggers
Brighten light with motion then dim after motion stops
Goodnight Home with lights off delay
Smart app to set multiple light on / off / dim conditions
Feature requests
Local Processing in Hub V2
Time frame: Between xx:xx - xx-xx (time)
Repeated alerts until moisture sensor no longer detects moisture
Help setting up House
How can I do this: dog sets off alarms at night
Root Cause of most of my ST issues
Looking for SmartApp to Control Color of OSRAM Lightify Tunable Bulb
Temporary Override for Smart Lighting smartapp
Request for Help - Run A/C If Humidity is Too High
Ecobee Fan control
Z-Wave Smart Fan Control Custom Device Type
Sequential turn-on script
How to close Linear GD00Z-4 garage door opener after "X" amount of minutes open?
Simple Rule Builder works better than ST itself
Moisture sensor as a humidity sensor linked to a plug for a dehumidifier
Smart lighting problems
Home modes vs Routines vs SmartApp Rules or am I confused?
Time-Based garage door closing?
Problem integrating vibration sensor (for Dryer Done alert)
Laundry Monitor by person
Smart Lights - Add conditions
Activities Between Time Frames
Once a Day SmartApp
GE In-Wall Outlet 12721 is being finicky
Voice Control to set alarm for blind person
[BETA RELEASE] TV Timer for Parental "Smart" Control
Smart Laundry Monitor
Aeon Labs Minimote with SmartThings?
Switch Questions
Virtual Switch For Bright When Dark and or bright after sunset
Help with my rule
Can I have more then one instance of "Switch Activates Home Phrase"?
[UPDATED] Rule Machine with Triggers
Virtual Device Manager - Create Virtual Devices Without the IDE
Question on timing the power off/on cycle
Any way to power on a group at one time?
FAQ: Github Integration How to Add and Update from Repositories
Automatic mode changes not working on everybody left
Assistance with Temp Trigger Only During Certain Times
New user with questions &observations
Can I control subscribed device?
App to repeatedly trigger a routine?
My first automation
Smart Home Monitor - Feature Requests
Maybe I don't need Rule Machine after all
Smartthings motion settings
Time based events failing?
Rule Machine is giving me an error has occured
Rule Machine - Get peer assistance here with setting up rules
Writing code
Thermostat (HVAC) Fan to Control Ceiling Fan
Finally happy with SmartThings
Looking for a zwave device to play multiple sounds
Motion detecting objects, not mammals
Any SmartThings experts willing to help for a fee?
Are Sonos and Echo ($180 or more) the only audio speaker options? I just want a cheap "doorbell" speaker
Diffuser that Works with SmartThings outlet
What are top uses for ST and it's automation?
Aeon siren as door chime
Are Sonos and Echo ($180 or more) the only audio speaker options? I just want a cheap "doorbell" speaker
Basic Instructions on how to create your first rule in Rule Machine
11 device limit per routine
Harmony Home Control
Trigger condition-less smartApp?
Rule Machine - Get peer assistance here with setting up rules
Nest with Fibaro Sensor
Workaround for the time based issue
Using Minimote buttons for Thermostat
Hello Home when someone arrives... and someone is already home
Error when adding Routine
SmartThings Motion Sensors
Presence sensor smartapp
How do I setup/download rule machine?
How to create a master virtual switch?
Rule Machine - Get peer assistance here with setting up rules
Problems Getting Set to Armed/Away Routine to Work Consisting
Need your help Scene override
How do you change the color temperature of Osram Lightify lamps using Echo?
Disarm alarm when door is unlocked and rearm when locked
Sonos and Hue
Sonos Notify with dual triggers
A little help with my first SmartApp please
Is there an app to start fan only of my AC unit?
New to SmartThings -- question about Scenes
Suggested Ideas for Smart Things Mobile App and Smart Apps: VPL Interface and Smart Apps Rules Backup
UPDATE: Recent SmartThings User Experience & Platform Performance
Using iPhone AND Presence senors to improve Triggers?
Combining multiple lightbulbs to act as 1
Where to start - Checking the status of two or more "things" before triggering an action
Presence + Sunset = Switch On
IFTT trigger with conditions
"Has Barkley been fed" with more options
Set Limit on Thermostat for Vacation Rental Property
Why does the IDE only show Rule machine
Thermostat Fan Recirculate
Help in running custom command after removing rule machine
[Support WITHDRAWN] GCal-Search: Google Calendar Event contact sensor/switch
Auto garage door panel open routine setting off intrusion alert
Minimote doesn't respond to first button press
Rule Machine Expert Features [deprecated]
[DEPRECATED] Trigger Happy!
IFTTT and SmartThings (UK accounts)
Old thread: please delete
[DEPRECATED] Trigger Happy!
Not sure what I need (UK)
[OBSOLETE 1.1.6 5/25/16] Big Talker - Talk when events occur
[DEPRECATED] Trigger Happy!
Android as a Speech/Alarm Device released! And Updated!
Android as a Speech/Alarm Device released! And Updated!
Rule Machine Expert Features [deprecated]
Rule Machine Expert Features [deprecated]
[DEPRECATED] Trigger Happy!
Lights on after sunset when presence detected then off after 5 min
Routines not triggering and/or are partially executing
[DEPRECATED] Trigger Happy!
How to turn off a switch based on flood sensor input
SmartTiles Dashboard v5.5: Added UK :uk:, 5 × Dashboards, and more! Nov 6, 2015
[WITHDRAWN] MyQ LiftMaster/Chamberlain
[WITHDRAWN] MyQ LiftMaster/Chamberlain
[DEPRECATED] Blink Camera Device Handler with Motion Sensor, Live Video Streaming, Integration with SmartThings/SHM, Temperature, Signals and Push Notifications
[RELEASE] Lock User Unlock/Lock Door Notifications and Actions
[RELEASE] Foscam Camera Device Handler Universal DTH with Motion Detection - SD (FI89xx), HD Ambarella FI98xx, FI99xx, Cx, Gx, Rx, Ex, Zx, Fosbaby
FAQ: How to Add a New Location Mode, or Manually Change from One Location Mode to Another (Classic App)
Rule Machine app installation availability
[UPDATED] Rule Machine with Triggers
"Notify me when" duplicate alerts
How I got ST working reliably for me
How to monitor specific sensors based on presence
New to HA Looking For Opinions
App that toggles a switch on/off when something is opened?
Set automatic timer with Smart Power Outlet
Rule Machine Question: Cancel delayed action on truth change
Smart Lights mode restriction failure
Smart Lighting set level command not working
Change modes by location?
Smart Home Monitor Custom Rules aren't sending "Light Level" commands?
Best Way to Do if A and B Then C
SmartApp to automatically change bulb between colors
Smart Light Routine Can't Dim Below 10%
Run, if light/audio is not on

Rule Machine screen shots:


thanks I think you still need parends
how would you do

(a or b) and c

two separate rules I suppose

a and c

b and c

1 Like

This is cool!! :smile: Great job!

One suggestion. This would be great as a parent/child relational smartapp.

But seriously dude, good work!


Nicely done, Bruce…This is awesome use of smart app. :star: :star: :star: :star: :star:


That would be a single rule, just as you wrote: (a OR b) AND c. You would just define conditions a, b, and c, and then define the rule as you wrote it.

The app does allow parenthesized sub-rules to any depth.

1 Like

Outstanding work @bravenel!


Top notch, Bruce! Can’t wait to try this out.

Bruce, quick question, not sure if it’s just me, but submitOnChange for howMany doesn’t seem to do its job. If I input a number, it doesn’t refresh to display the “sub-sections”. Not sure how to get around it, though…If I click “done”, I get the “not authorized” error, but then if I go back in the “Select Conditions,” the howMany sub-sections are displayed…

1 Like

That’s weird! It works fine for me. It should throw up the number of conditions you specify. Which mobile app are you using? I’m testing on iOS, and I don’t have an Android to test on.

Turn on Live Logging and see if it’s throwing an error.

Ah, that’s the problem. Things are different between platforms. I ran into this several of times lately, where code works smooth on IOS but fails on Android…

I did…:

java.lang.NullPointerException: Cannot get property ‘value’ on null object @ line 466

Line 466
if(thisCapab.value == “Time of day”) result = "Time between " + timeIntervalLabel()

It would throw that error if you didn’t define any Conditions, which you couldn’t do if you didn’t have the fields to input conditions into. :confused:

If you can’t get past the Number of Conditions input, my suggestion would be to uninstall that instance of the app, and try again. If that still fails, then we need to understand why Android can’t process submitOnChange properly.

@slagle, have you seen this before? This being Android mobile app not handling submitOnChange: true?

Yup, did it several times. It gets even worse if you try to modify the number of conditions. I tried to change from 2 to 3 and the app got stuck running circles. The only way to delete it was to go in IDE…

So, it would appear that this doesn’t work at all on Android? Very odd, and disappointing. The app is totally dependent on submitOnChange: true working, because everything it does is dynamically built, especially the rule itself. The app uses recursion both to build the rule and to evaluate it.

No, no, it works! But not as smooth, so people may assume it doesn’t, if they are greeted with errors :slight_smile:

Did you get the input fields for the Conditions?

Very nice!

Just in case anyone stumbles on this and hasn’t used custom code in SmartThings before, here’s the FAQ for how you go about installing something like this to your own account:

FAQ: An Overview of Using Custom Code in SmartThings

1 Like

Submit on change should work on android. This would be new if it doesn’t

1 Like

I’m seeing this behavior on Android as well, but it can be worked around by deleting/recreating the rules. Sub-optimal, but doable at this point.

Great stuff @bravenel! Now, my only other feature request would be ‘timer conditions’, so that I could replace some of the Smart Lighting app conditions for ‘wait x minutes after motion stops’ before firing the lights off rule.

Thanks for doing this app - it get’s closer to what I want to do with my system, and seems to be more stable in execution than some of the stock apps right now. :slight_smile: