First thing you need to do is manually install Rule and Rule Machine per his instructions here. Do not connect to the Repository until this has been accomplished.
How to Install or Update Rule Machine
There are two SmartApps on Github. The first is called Rule Machine. You should install this in the IDE and Publish For Me. The second app is called Rule. This you should also install in the IDE, and Publish for Me. Rule Machine is a parent-child app, where you can create as many rules or triggers as you want, each an instance of Rule.
After you install Rule Machine and Rule as described above, then you can install Rule Machine in your mobile app. It can be found in the Marketplace, under SmartApps, My Apps. When you install it, the first thing you should do is click on Done in the upper right hand corner. After that, Rule Machine will appear in the list of your installed SmartApps.
Basically open the IDE go to SmartApps>New SmartApp>From Code and cut and past the code from his links in his post.
Since I am not a programmer, this is all Greek to me. I was able to finally get the Rule Machine installed, I believe… but now when I try to “select actions for …” on my Android, it tells me that I am “not authorized to perform the requested operation”
All I am trying to do now is just create a single rule for a single door sensor to text me if it’s opened. Trying to crawl before I walk.
Sounds to me like you didnt publish it in the IDE. After installing it you have to publish it. Button up above the code.
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
8
Read the thread on the how to install rule machine. Then read it again. Then, the third time you read it, follow the directions. Then, go back and read it again and follow all of the directions.
There is only so many ways to read directions by a NON-Programmer
In the IDE, select My Smart Apps
Select +New SmartApp
Enter Rule Machine for Name (only way I could get it to work, not written in the instructions
Enter bravenel in the Namespace (only way I could get it to work, not written in the instructions
Enter bravenel in the Author (only way I could get it to work, not written in the instructions
Enter a description - done
Select a category - Convenience - done
Select Create
Publish for Me - done
Do the same thing for the “Rule” (I did not publish for me as I have seen it listed both ways and if I remember correctly, bravenel says not to publish for me
Select + NewSmartApp
Select the Code tab
Paste in the Rule Machine code from bravenel
Publish for me
View My SmartThings Apps and now I see 3 entries, the 2 I created and now a new one from the code I pasted in and published
On my phone, add in a new smart app and select the Rule from step 13
Navigate through setting up a simple when contact is open, do something… and it then says I am not authorized to perform the requested operation
Now, based on these detailed instructions, what am I missing?
Rick
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
10
Go too your smart apps, scroll down and tap on my smart apps.
Tap on rule machine. It opens, tap done.
Now go to your smart apps tab, tap on rule machine.
When I go into Marketplace/SmartApps/My Apps on my phone, I see 2 things, 1 called Rule (Rule) which came from bravenel (i can tell based on the icon) and 1 called Rule Machine (My House Rules) which is the one I originally setup in step 3 above.
When I try to configure the Rule, it allows me to set the Name of the Rule, the Conditions and when I try to select the actions for True (when door is open) it tells me I am not authorized to perform the requested operation
When I try to configure the Rule Machine, it only lets me set the Name and the specific modes, nothing else
I really appreciate the help, just not sure what I am doing wrong
Rick
I think yours previous steps (3 to 9) are not needed. You might want to delete them from IDE and re-do it…
1) In the IDE, select My Smart Apps
2) Select +New SmartApp
3) Select "From Code" tab
4) Paste in the "Rule Machine" code from bravenel
5) Click "Create"
6) Click "Save" and "Publish for me"
Repeat above steps for Rule.
You have old (very old) versions of rule and rule machine, these are the two with the gray icons, these need to be deleted from the ide. Click the paper and pencil icon on the left, then delete both of then.
Then you need to install the current version of rule machine to match the version of rule that you already have installed.
Well the rule machine I am using is v1.7.3 and is dated Feb 2016. Where will the new code come from?
And to review the reply from dchau11, if steps 3-9 are not needed, how is the rule machine code brought into in the IDE? Did I not follow the instructions correctly?
dchau11 message about about not needing steps 3-9 was the fix.
I was trying to create the rule/machine twice, once by manually entering the data and then by adding in the code and publishing it from gravenel. All that did was mess me up down the line on my phone.
Bottom line, RTFM as bamarayne pointed out. First simple rule created, now to test it out
Thanks a ton for all the patients and nudging me when I was being a bonehead