Rule Helper
In past tutorials we have introduced the concept of Rules on the SmartThings Platform. In this tutorial we will be going more in depth about rule creation and providing a demo app that will allow you to browse examples of existing SmartApps re-created as rules. The Rule Helper also has samples of simple and advanced rule structures.
The sample app was built using the create-react-app project, so you will need node.js
If you don’t have yarn
npm install -g yarn
First, clone the repo to your computer.
git clone https://github.com/jodyalbritton/rule-helper.git
Second, install the project
yarn install
Finally, start the project
yarn start
If the project started, should see a window like this
The sample code has placeholders for the required devices, modes, scenes, etc. that you will need to locate based on your own location. Let’s look at an example
In this example you can see that the IF Block requires at least one Device ID and the Then Block also requires at least one Device ID.
Once you have those, you can follow the directions here for posting your rule to the proper endpoint