Welcome! I’m only about three weeks in and you are right the learning curve is HUGE!! Here’s a few links that got me started. Hope they help you. From reading your description, you should be able to do what you want in the ST app, but Rule Machine seems to be where most go for their specific problems. So my advice is read, read, read, and don’t be afraid to ask questions. Have fun!
[image]Rule Machine
Rule Machine User Guide
Rule Machine is a powerful automating tool for SmartThings.
The Rule Machine User Guide has four sections below:
Conditions and Trigger Events
Actions
Expert Features: Custom Commands
Restrictions
Conditions and Trigger Events
Rules and Triggers respond to events on the selected devices. In the case of a Rule, it evaluates its rule upon any event affecting its Conditions. In the case of a Trigger, it is fired whenever the selected event occurs.
Devices with the following capabilities may be Conditions or Trigger Events: [with noted exceptions]
Acceleration
"active" or "inactive"
Battery
value
Button [Only available as Trigger Event]
"number": "pressed"or "held"
Contact:
"open" or "closed"
Certain Time [Only…
I am posting this here as I don’t want to hijack the main thread. I would like to use this app, but have never installed a custom app before… but after lots of reading and research I thought I had it. It now shows up on my phone, under my Apps, I clicked on it, and it now is under SmartApps… I click on it, and see "Rules| and below that “Create New Rule”…When I click on the > to move to the next step, my phone crashes. I also tried it on my tablet and got the same thing. I have un installed everything once and am still getting the same response… any suggestions? Thanks
I’m creating this thread as a place to find assistance in programming the logic of the Rule Machine App. @bravenel - I see you doing a lot of updates every day and posting them in the [Release] thread, I figure this will help to keep it clean and not get hijacked… as much…
I’ll start!
I’ve set up some rules for my front porch lights. I haven’t figured out how to do with any less than “4” separate rules. I’d like to simplify this as much as possible.
What I want:
Lights come on 20 minutes prior to sunset, go off at 11 pm, and be set to 30%
When either my wife or I come home between sunset and 11pm, even if the other is already there, the lights go from 30% to 99% for 10 minutes. After 10 minutes they go back to 30%.
If it is after 11 pm and before sunrise, I want the lights t…
Before we get into the creation process, we need to talk about the meanings of certain fields, & rules within program. And before I start, I would like to thank Bruce R. & Mike M. for creating this SmartApp. It takes a great deal of time to create/improve an App like this & they do so free of charge.
Ok let’s start! There are several different ways to write a rule, trigger, conditional trigger, or action & this by no means is a complete instruction booklet or am I an expert, if you are looking for that please look here. Rule machine - as per the app developer, this app is no longer available for new installs, distribution, or support
**
Action
**:
The primary function of this is to speed up the command creating process by building actions, which you can use across several different …
The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud.
As of May 2023, you can no longer add new Groovy DTH‘s or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, I’m afraid the Groovy information is no longer usable.
All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use “Edge Drivers,” written in the LUA programming language. Here’s the official announcement on those:
The process for using a custom Edge Driver in the new …
(March 2018: All of the following applies only to the SmartThings Classic app. If you purchased your hub after March 1, 2018 and are using the new “SmartThings (Samsung Connect)” app, creating rules works differently.)
You’ve got your hub. You’ve got some devices. Now how do you schedule what happens when?
SmartThings doesn’t have a rules engine/scheduler, so there’s no one tutorial for how to do this. But it’s an open platform, and there are about 12 different ways to set up various kinds of schedules. Some require custom code, some don’t.
A “scheduler” in this context is anything that causes a networked device to perform an action, even if it’s just to toggle on or off immediately. (Network engineering definition, forgive me. )
(Note: as of April 2017, the original author of …
2 Likes