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

It captures the current values of the device for Hue and Saturation, and then restores them. We found and fixed one issue with Hues. All I can say is that I don’t have one of these to test with.

Could you look in the IDE at the state of the bulb when you capture it, and then again after you change it, and finally again after you restore it. Also, get the logs from Live Logging for the rule as you do those steps. Maybe we can tell something from that.

Did it.

However, I have the feeling the problem is the Aeon lights (which are not performing correctly, especially updating sometimes the real state of the light). I will try when Osram miniRGB light arrive (next week).

T0: Before capture
Switch:off / level: 99% / hue: 58.2 / sat: 50.5 / color 7dbfff

T1: Rule change to Pink
Switch:on / level: 99% / hue: 83 / sat: 100 / color 7dbfff

T2: after restore.
Switch:off / level: 99% / hue: 83 / sat: 100 / color 7dbfff

Related to the live logging of the rule (1 min after it evaluates false to restore)

e9098cd0-c3b0-47df-9047-99360fda66a0 17:11:57: info 9.2. Test Capture/Restore is now False
e9098cd0-c3b0-47df-9047-99360fda66a0 17:11:56: info 9.2. Test Capture/Restore: 9.2. Test Capture/Restore evaluate
e9098cd0-c3b0-47df-9047-99360fda66a0 17:10:56: info 9.2. Test Capture/Restore is now True
e9098cd0-c3b0-47df-9047-99360fda66a0 17:10:56: info 9.2. Test Capture/Restore: disarm switch on

And now the live logging of the Aeon RGBW light
d0c55064-338f-4b08-8990-f27b6757f09a 17:12:01: debug 'zw device: 07, command: 9881, payload: 00 26 03 00 ’ parsed to [[name:switch, value:off, descriptionText:Luz Terraza 1 was turned off, isStateChange:false, displayed:false, linkText:Luz Terraza 1]]
d0c55064-338f-4b08-8990-f27b6757f09a 17:11:58: debug 'zw device: 07, command: 9881, payload: 00 26 03 00 ’ parsed to [[name:switch, value:off, descriptionText:Luz Terraza 1 was turned off, isStateChange:true, displayed:true, linkText:Luz Terraza 1]]
d0c55064-338f-4b08-8990-f27b6757f09a 17:11:57: debug 'zw device: 07, command: 9881, payload: 00 82 01 ’ parsed to [9881002602]
d0c55064-338f-4b08-8990-f27b6757f09a 17:11:00: debug 'zw device: 07, command: 9881, payload: 00 26 03 63 ’ parsed to [[name:switch, value:on, descriptionText:Luz Terraza 1 was turned on, isStateChange:false, displayed:false, linkText:Luz Terraza 1], [name:level, value:99, unit:%, isStateChange:false, displayed:false, linkText:Luz Terraza 1, descriptionText:Luz Terraza 1 level is 99%]]
d0c55064-338f-4b08-8990-f27b6757f09a 17:10:58: debug 'zw device: 07, command: 9881, payload: 00 26 03 63 ’ parsed to [[name:switch, value:on, descriptionText:Luz Terraza 1 was turned on, isStateChange:true, displayed:true, linkText:Luz Terraza 1], [name:level, value:99, unit:%, isStateChange:false, displayed:false, linkText:Luz Terraza 1, descriptionText:Luz Terraza 1 level is 99%]]
d0c55064-338f-4b08-8990-f27b6757f09a 17:10:57: debug 'zw device: 07, command: 9881, payload: 00 82 01 ’ parsed to [9881002602]
d0c55064-338f-4b08-8990-f27b6757f09a 17:10:56: debug setColor: [hue:83, saturation:100, level:99]

It could be that this is failing for a similar reason that the Hues failed at first. I’m going to send you a Private Message about what might be done.

Version 1.7.15 Released

This version brings the Rule Machine User Guide into Rule Machine itself.

See this post:

2 Likes

So keeping in mind that I am not a developer and the only thing I know about the word boolean is it sounds funny when I say it. :slightly_smiling:

I have RM running and a few very basic rules/triggers working. Here is my next one. At 5:45am turn on some lights, set mode to home and disarm, at 7:00am, turn off the lights

I created a rule and set both times then set both actions for true (turn on) and actions for false (turn off) accordingly

Is this the right/best way to do this?

Thanks in advance
Rick

Hi Rick!
Take a look at this thread and see what you think.
Post screen shots of your rules and there are a lot of community members that are here to help.

@bamarayne Thank you for putting up that post! I’ve been looking for a thread like that to get assistance for rule machine and was afraid to ask my question in the other areas.

1 Like

Nevermind. I’m stupid :slightly_smiling: - figured out how to link rule machine to repo. Is the correct way of updating the apps is to click on compare then click on “overwrite local version” ?

Also After i get the latest code from the repo what do i need to do in IDE? do i need to refresh or something?

Save and Publish for Me, for both Rule and Rule Machine.

Sorry, so first overwrite local version on both apps, then go into each app and do save and publish for me?

No, you don’t do the overwrite. Just click on Update from Repo, select my repo, and then Execute Update. You will then see the list of the smartapps to update. Just check the little box for Publish, and that will do the whole thing.

Got it. Looks like rule machine updated but Rule app didn’t. Its red and says that local and repo version both have been modified and in conflict. I’m guessing that now I have to do overwrite local with repo version?

yes

20 annoying chars

Is there a way to delay the evaluation of a rule?

Use case (and I may be thinking about this wrong): I’m trying to figure out a way to automatically disarm and rearm SHM as I leave at night. I have the Armed(Stay) mode set to not watch the door going into my garage. I want to disarm SHM when I open that door. Then, I want it to rearm when the garage door closes or after 3 minutes, whichever happens first.

What I’m thinking right now, is to have opening the door turn on a virtual switch (or private boolean in a second rule), and let closing the garage door turn it off. The problem is that the moment the inner door closes, the reset rule fires. Thus, the desire for a delay.

Am I thinking about this wrong? Better options?

Thanks!

Yep, that’s one of the actions. Evaluate after a delay. It takes two rules.

Or use the first rule to set the private Boolean of the second rule after a delay. Then the second rule gets evaluated upon the private Boolean changing state.

Hello i am a new user of smart things hub is there any tuto to install Rule Machine, because i did not able to install from IDE

Thanks

i find a tuto to install but i get a error when i want to update the repo

Oh No! Something Went Wrong!
Error
500: Internal Server Error
URI
/ide/app/doRepoUpdates
Reference Id
02cf4b8f-1244-4521-b096-854869ed1887
Date
Fri Feb 26 22:02:09 UTC 2016

I have a broken rule that won’t uninstall from IDE or from the iOS app. “An unexpected error occurred” is the message I get. I’ve gone through it multiple times trying to find a checked device, but there is nothing. I do see this rule when I click on my bedroom lamp, but inside, the lamp is not selected in the rule anywhere.
Contacted support, they said they can’t help because it’s community created app. I’ll just leave it there. I even tried to delete Rule Machine altogether and start over, but it won’t let me. No big deal, just thought I would mention it in case anybody else has come across this.

If the lamp was at one time selected in the rule, you might try to restore the rule to the point where the lamp is part of the rule, and then see if you can remove the rule when it’s been restored.

Hi all -
I accidentally removed the trigger from a conditional rule which made it become a rule. How do I add the trigger back to it? In previous versions of RM those options were always there.

Thanks!!!