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

**URL:** <https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730>\
**Category:** Community Created SmartApps\
**Created:** [November 11, 2015, 4:50pm UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730 "2015-11-11T16:50:13Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![2l82try1](https://avatars.discourse-cdn.com/v4/letter/2/74df32/32.png) [@2l82try1](https://community.smartthings.com/u/2l82try1)\
**Post date:** [November 12, 2015, 3:18am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/41 "2015-11-12T03:18:07Z")

</div>

How were you able to save the rule? Whenever I try to click done after inputting everything I get “an enexpected error occured” or “you are not authorized to perform the requested operation”

This smartapp looks awesome and I cant wait to start using it but go figure another android problem to stop me.

---

<div class="post-metadata">

**Author:** ![an39511](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@an39511](https://community.smartthings.com/u/an39511)\
**Post date:** [November 12, 2015, 3:19am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/42 "2015-11-12T03:19:57Z")

</div>

Very nice work. Thank you!

---

<div class="post-metadata">

**Author:** ![SBDOBRESCU](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/sbdobrescu/32/30067_2.png) [@SBDOBRESCU](https://community.smartthings.com/u/SBDOBRESCU)\
**Post date:** [November 12, 2015, 3:23am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/43 "2015-11-12T03:23:17Z")

</div>

Go back and grab the app again from the original link. @bravenel made some changes that should eliminate that problem, I assume you are on Android…

---

<div class="post-metadata">

**Author:** ![Toasty](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Toasty](https://community.smartthings.com/u/Toasty)\
**Post date:** [November 12, 2015, 3:23am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/44 "2015-11-12T03:23:25Z")

</div>

The message is specific to the how many conditions are set. When you choose the number of conditions, click Done. you’ll be brought back to the previous menu level, and you’ll see the error message. tap and go back into the conditions menu, and you’ll now see the settings for the number of conditions you set.

---

<div class="post-metadata">

**Author:** ![SBDOBRESCU](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/sbdobrescu/32/30067_2.png) [@SBDOBRESCU](https://community.smartthings.com/u/SBDOBRESCU)\
**Post date:** [November 12, 2015, 3:25am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/45 "2015-11-12T03:25:54Z")

</div>

That has been fixed, if you grab the most recent code. You should see the number of conditions listed on first page. And then you click to define your conditions. No errors anymore…

---

<div class="post-metadata">

**Author:** ![Toasty](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Toasty](https://community.smartthings.com/u/Toasty)\
**Post date:** [November 12, 2015, 3:32am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/46 "2015-11-12T03:32:40Z")

</div>

Yep, see it now. Though if you set number of conditions, and then skip past setting those conditions, you’ll still get the unauthorized error. (probably just the only error it knows to set)

---

<div class="post-metadata">

**Author:** ![2l82try1](https://avatars.discourse-cdn.com/v4/letter/2/74df32/32.png) [@2l82try1](https://community.smartthings.com/u/2l82try1)\
**Post date:** [November 12, 2015, 3:46am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/47 "2015-11-12T03:46:30Z")

</div>

Not sure what Im doing wrong then. I just deleted the smartapp through the IDE, clicked the first link at the top and re copied and pasted the updated code saved and published. The first screen I get when I open the smartapp shows me all the available settings. I choose the how many conditions first and then immediately set those conditions followed by the setting the rule name and switches to turn on when true. When I click done I still get “an unexpected error has occurred”. This is on my note 3 with 5.0

---

<div class="post-metadata">

**Author:** ![Toasty](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Toasty](https://community.smartthings.com/u/Toasty)\
**Post date:** [November 12, 2015, 3:59am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/48 "2015-11-12T03:59:11Z")

</div>

Hmm. I just walked through a new rule to test it out, and it’s working for me. without any errors anymore. I assume you went into Define the Rule and set the conditions and the AND/OR/Done options?

---

<div class="post-metadata">

**Author:** ![Mike\_Maxwell](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mike_maxwell/32/18673_2.png) [@Mike\_Maxwell](https://community.smartthings.com/u/Mike_Maxwell)\
**Post date:** [November 12, 2015, 3:59am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/49 "2015-11-12T03:59:14Z")

</div>

I crapped out a timer device a few hours ago, that you can use with this app to introduce delays between events.  
The time delay is handled within the virtual device itself.  
The delay can be set via preferences or a call setLevel and the device will turn on, then off after the delay period has completed.  
A pushed event is also generated when the device turns off.  
So you have a switch that you can turn on (via another app or whatever) that turns off after the specified interval and also behaves like a delayed pushbutton…

> <https://github.com/MikeMaxwell/SmartThingsPublic/blob/master/devicetypes/mikemaxwell/momentary-timer-button.src/momentary-timer-button.groovy>

---

<div class="post-metadata">

**Author:** ![2l82try1](https://avatars.discourse-cdn.com/v4/letter/2/74df32/32.png) [@2l82try1](https://community.smartthings.com/u/2l82try1)\
**Post date:** [November 12, 2015, 4:10am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/50 "2015-11-12T04:10:33Z")

</div>

Ha I was too worried about the error that I completely forgot to define the rule. Thx I appreciate the help. All good now.

---

<div class="post-metadata">

**Author:** ![Toasty](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Toasty](https://community.smartthings.com/u/Toasty)\
**Post date:** [November 12, 2015, 4:19am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/51 "2015-11-12T04:19:40Z")

</div>

Now If I could just figure out how to add this functionality into a default simulated switch device type, I’d be golden. Could set that specific switch to turn on in a rule and it would turn itself off.

---

<div class="post-metadata">

**Author:** ![Toasty](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Toasty](https://community.smartthings.com/u/Toasty)\
**Post date:** [November 12, 2015, 4:37am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/52 "2015-11-12T04:37:04Z")

</div>

Suggestion - currently hard coded is the “Switch to turn on when true” and “Switch to turn off when false” It would be super helpful to have the opposite available as well, “Switch to turn off when true” and “switch to turn on when false”

---

<div class="post-metadata">

**Author:** ![Mike\_Maxwell](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mike_maxwell/32/18673_2.png) [@Mike\_Maxwell](https://community.smartthings.com/u/Mike_Maxwell)\
**Post date:** [November 12, 2015, 4:46am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/53 "2015-11-12T04:46:45Z")

</div>

Ummm… that’s exacly what the above device does…  
It works as an auto off switch, and a delayed momentary button. And set level was hijacked to allow for setting the delay from standard smart apps…

---

<div class="post-metadata">

**Author:** ![bravenel](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bravenel/32/13223_2.png) [@bravenel](https://community.smartthings.com/u/bravenel)\
**Post date:** [November 12, 2015, 4:52am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/54 "2015-11-12T04:52:38Z")

</div>

> [@Toasty](#):
>
> currently hard coded is the “Switch to turn on when true” and “Switch to turn off when false” It would be super helpful to have the opposite available as well

I hear you. I’m going to fix that tomorrow, to give you several choices instead of two.

---

<div class="post-metadata">

**Author:** ![ashutosh1982](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ashutosh1982/32/15210_2.png) [@ashutosh1982](https://community.smartthings.com/u/ashutosh1982)\
**Post date:** [November 12, 2015, 5:47am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/55 "2015-11-12T05:47:08Z")

</div>

@bravenel great Job on this one! Inam gonna try this out…

---

<div class="post-metadata">

**Author:** ![Toasty](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Toasty](https://community.smartthings.com/u/Toasty)\
**Post date:** [November 12, 2015, 6:03am UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/56 "2015-11-12T06:03:53Z")

</div>

I guess I am missing something. I installed it, and can set it’s timer… but how is it going to turn off any other device? seems this timer feature would need to be built into a virtual switch device or something?

---

<div class="post-metadata">

**Author:** ![Mike\_Maxwell](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mike_maxwell/32/18673_2.png) [@Mike\_Maxwell](https://community.smartthings.com/u/Mike_Maxwell)\
**Post date:** [November 12, 2015, 1:22pm UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/57 "2015-11-12T13:22:13Z")

</div>

edit the device, the settings are there. This is a virtual switch.  
You can also set the timer by including it in another smart app as a dimmer, setting the dimmer level will start the timer with the level being used for the delay minutes.  
Being a device, it isn’t capable of directly controlling another device, you always need a smart app for that.  
It was designed to be used thus:  
Smart app A activates button timer using on or setLevel, button timer runs, smart app B triggers from button off or button 1 pressed event of the button timer.  
Admittedly the concept is foreign, but this device allows timed events to be simply introduced into @bravenels rule machine.

---

<div class="post-metadata">

**Author:** ![Toasty](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Toasty](https://community.smartthings.com/u/Toasty)\
**Post date:** [November 12, 2015, 3:40pm UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/58 "2015-11-12T15:40:38Z")

</div>

I think I get it… but it’s not going to work like I expected. If I set up a rule to turn on the light in my garage when the garage door opens, I also set this timer device switch ON. Then, set up another rule to turn off the light in garage when the timer device is OFF… then whenever I manually turn on the light, it turns itself off, so I end up with this: [http://stream1.gifsoup.com/view2/3910779/useless-box-o.gif](http://stream1.gifsoup.com/view2/3910779/useless-box-o.gif)

---

<div class="post-metadata">

**Author:** ![Mike\_Maxwell](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mike_maxwell/32/18673_2.png) [@Mike\_Maxwell](https://community.smartthings.com/u/Mike_Maxwell)\
**Post date:** [November 12, 2015, 3:58pm UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/59 "2015-11-12T15:58:27Z")

</div>

I’ve created a new topic for this device:

> [@Generic timer device type](https://community.smartthings.com/t/generic-timer-device-type/28827):
>
> This topic came up in @bravenel’s rule machine thread. Rather than continue to hijack that thread, I’ve created this one specifically for this device. In any event I created a device type that allows you to wire together two smart app events with a configurable delay between them. The device responds to on() and setLevel() When issued an on command, the device will turn off after the interval that’s configured in preferences. When issued a setLevel command, the device will turn off using the level in minutes as the delay. When the device turns off, in addition to the off event the device issues a button 1 pressed event. So app 1 turns the device on – the timer is started – then app 2 responds to the button press or off event…

Lets move the conversation about it over here…

---

<div class="post-metadata">

**Author:** ![bravenel](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bravenel/32/13223_2.png) [@bravenel](https://community.smartthings.com/u/bravenel)\
**Post date:** [November 12, 2015, 5:02pm UTC](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730/60 "2015-11-12T17:02:16Z")

</div>

I have made an update to **Rule Machine** , and you should reload it from Github, and install two apps in the IDE. The main change is to make it a parent-child app. There are updated instructions in the original post above for how to install the two apps needed, the parent, **Rule Machine** , and the child app, **Rule**.

I also updated the choice of Actions available to include the following, each for true or false evaluations:

> Switches to turn on  
> Switches to turn off  
> Dimmers to level A  
> Dimmers to level B  
> Locks to lock  
> Locks to unlock  
> Change mode  
> Run Routine

[Previous page](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730.md?page=2)

[Next page](https://community.smartthings.com/t/rule-machine-as-per-the-app-developer-this-app-is-no-longer-available-for-new-installs-distribution-or-support/28730.md?page=4)
