[UPDATED] Rule Machine with Triggers

I’ve read it. The triggers are working but i keep getting errors on anything I do in rules.

EDIT: just tested the trigger i made… maybe im doing it wrong…I selected a mtion sensor when active to turn on a light…not working

I’m having the same problem where I cannot delete nor create new rules without an error.
This happened after updating the codes… and I have several rules.

Try republishing ‘Rule Machine’ I think that is what fixed it for me when I was having the same issues.

ok, that fixed most rules except for one.
I cannot open the rule on the mobile app.

https://graph.api.smartthings.com/installedSmartApp/showModal/07e1b974-de17-4de8-8ac0-3175416e6b81

@creativityrules Have you tried deleting the rule in the IDE? I was able to do that for some of them but still got stuck on others. Worth trying. Its under My Locations/smartapps. Press edit on top right corner then scroll down and try to delete it.

If that still doesnt work what I had to do to fix my problem was reload old code for Rule Machine and Rule. Once I did that, I was able to go in and delete the old rule that I was having trouble with. Then I reloaded the new code for both and was able to continue forward.

My wife had flipped the switch on the light I was testing. So the rules are working for me. Still having the same issues when using triggers. Error codes when I try to delete, edit, or create

And this is why I’m installing a whole lot of smart switches!

Did you follow the instructions in the first post of this thread? It tells you how to update, and install Rule Machine, Rule and Trigr.

I believe I did. This is the first custom app I’ve installed so I shouldn’t need to update anything I wouldn’t think. I only published the one and saved the other 2. It installed correctly as far as I can tell. I’m gonna try deleting and reinstalling them all

THANK YOU!!
THANK YOU!!
THANK YOU!!

Are you taking donations? I am more than happy to kick!

My standard answer: pay it forward! :grinning:

2 Likes

@bravenel I ran into a problem earlier.

I set up a virtual switch labeled “climate control off/auto”.
I set up a rule that when the switch was on the thermostats modes would change to “auto”.
When the switch goes off, the thermostats would change to “off”

When I look at the thermostat recently tab, it shows that the app has sent a change mode command to the thermostat, but it does not change states.

I’m using two Honeywell 8320 z-wave thermostats.

1 Like

Bruce,

I just want to thank you for the wonderful application. Have been using your rule machine for the last couple of weeks now.

This has been the missing link with Smartthings.

My question is whether it’s possible to initiate another Smart app based on results of Rule Machine? In in particular in particular I’d like to get the smartthings security manager the notify me with security notifications when specific conditions of the rule machine.

I’m converting to v2 hub today and will be transferring all my smart apps possible into Rule Machine. See any issues with 90% Rule Machine use instead of Smartthings smartapps?

Again, thanks for the awesome app.

With Smart Lighting you should get local execution, which for now you cannot get with Rule Machine. That’s worth using Smart Lighting for…

Rules and Triggers can cause a Rule to be evaluated, but there is not a way to cause another app to run, except by using a virtual switch or something that the other app could trigger off of.

@bravenel,
Thanks for the response Bruce.

Do you use your rule machine to do most other applications? In other words does it make sense for me to primarily use the Rule Machine except for those exceptions like Smart Lighting? It can get confusing with multiple things conflicting with each other via multiple smartapps - seems to make sense having all your rules in one place.

Yes, I use Rule Machine for most, but not all, of my automations. I use a custom lighting app, that uses more contextual information that is possible with either Smart Lighting or Rule Machine. I have somewhere around 45 Rule Machine automations.

There is a new release of Rule Machine: see this post:

What app is that?

I have some hue lights, some Cree bulbs, and some GE link bulbs & I have to use different apps for those. Would be nice to use one lighting app.

It’s called Motion Lighting, and it’s on Github here: https://github.com/bravenel/Rule-Trigger/blob/master/smartapps/bravenel/motion-lighting.src/motion-lighting.groovy

It supports Cree bulbs (they are dimmers). It does not support color bulbs. It’s main feature is that it allows you to specify different dimmer levels for each mode, all for lights that are motion controlled.

Sounds interesting. One last question? If you had it to do over again would you move to hub version 2 or still be on version 1? I have about 40 devices but have a few more I’d like to install. Are you comfortable with the level of stability given it’s not perfect?