bamarayne
(Jason "The Enabler" as deemed so by @Smart)
226
It is right now. I started a big experiment at the beginning of the month where I took down my entire system and rebuilt from scratch attempting to program the system to the max but maintain simplicity…
Then ST broke everything dealing with timers and now the Android app…
I’ve been reduced to barely working with an iphone 4s…
But, the list is growing and I’ll these release it soon
I could use some help getting it installed? I looked in the App release thread but did not see any info on how to install. Could you help? If its not obvious im new to the ST community just installing the hub last night.
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.
Here is what I have set up. The master bedroom is fully automated and all lighting is triggered by the motion sensor that detects you coming into the room. This is the rule for three of my modes. The boolean in the conditions is being set by a second rule.
The lights come on as my wife walks into the room. They are set to go off after X minutes. The automation has started and so has the timer for the lights to go off. The is a Trigger with conditions. She sits down and turns on her pump. After about 40 seconds the power meter senses the load and the rule goes true, which then changes the boolean of the lights automation. I was thinking that the lights would stay on, but they do not. At the end of the set time for pending off, they go off. The boolean change is not stopping the countdown.
I do however have a VS switch built into the rule. At the bottom I am using the “Use this switch to disable the rule” option. When that switch is turned via her minimote, the lights stay on.
Here is what I’m thinking…
The Trigger will only fire the rule when the trigger event occurs, thus starting the countdown. Even if the boolean condition changes it does not effect the rule because the Trigger event has not occured again. But, if the the Trigger event does happen again the rule will not fire because of the condition being false, thus the countdown will not be reset and the lights will still turn off.
Here is what I’m thinking will fix it???
Forget about the boolean. Have the second rule turn on the Virtual Switch. But, I’m trying to get rid of the VS and utilize the full power of Rule Machine.
Change the Trigger with conditions to an Actual rule, therefore when the rules conditions change the rule is reevaluated. But since the conditions are false, the rule will not continue.
Questions…
Removing the boolean and using the VS will work, but that defeats the purpose of using the boolean and my goal of removing the VS. Is this correct?
If I change the Trigger to a Rule, will the lights still go off if the boolean condition changes to false?
I can’t put in the actions for false to turn on the lights, as that would keep the lights on all of the time. Right?
I thought as I typed this out that I had figured it out, but I have just confused myself again.
Recap…
Trigger will only fire when the trigger even occurs. Correct
Changing the conditions of the Trigger after the trigger event occurs but before the Trigger countdown is finished will not stop the countdown???
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
236
So in a rule with a private Boolean as a condition and a cancellable pending off as an action, will changing the Boolean (causing the rule to go false) stop the countdown?
Hmmm, tough question. Let’s see, the conditions go from true to false, so probably rule truth changes? What happens to a cancellable timer when rule truth changes?
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
238
I don’t know! ! ! ! I’m sooooooo confused! ! !
I’ve over thought the entire thing and broke it! ! ! !
Aaaaaaaccccccckkk!
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
239