My office is cold. Iāve got a space heater Iām trying to manage with Rule Machine to warm the area around my desk. I want to have Rule Machine turn on an Aeotec Smart Switch, a plug that turns on the heater.
I want to limit the heater to turn on when an Aeotec motion/temp sensor falls below 68ĀŗF, there is active motion, the mode is day or evening, and itās between September 15 and April 30th. I have another rule to turn off the heater when the temp rises above 68ĀŗF.
I must have an error in my logic. In manage conditions (see the screen grab), two conditions are marked as āUnused.ā I want both unused conditions to be actively considered before turning the plug on. I assume the word āunusedā means the condition is not considered. How do I solve this?
Showing my ignorance. In reading the manual, I understood the managed conditions all had to be true to continue with the rule. Is that where the conditional statement must be entered?
Think of it this way. You just defined the conditions. Now you need to tell Rule Machine how to use them.
See the picture I added above.
The "use required expression" section does allow you to use preconditions that must be true, or the rule won't activate. This is a bit different in my mind. I might put mode in there, and perhaps even time of day, to restrict a rule, but based on what you are doing, conditional actions would seem more appropriate,
The conditions being true or not don't have anything to do with building the rule per se - that's just the current state of the condition (is it true right now or not).
You don't have to define conditions before building the rule - you can always just add conditions as you build instead.
The Manage Conditions window is just where the conditions all end up, whether built preemptively or built as you go.
Then later on, if you need to change any condition(s), they're simply easier to access/manage from that window instead of having to dig into the guts of the rule itself.
For smaller rules, that's not a big deal, but for larger rules and/or rules where you use the same condition in multiple places, it helps a ton.
Essentially, if I've written it right (RM syntax has changed a bit over the versions), this basically activates the switch on motion, oh, crap, i forgot the motion trigger!!! ...anyway when the trigger activates, it turns on the switch, then when it goes inactive waits five minutes and powers the switch off. Unless the rule is retriggered by the motion event I forgot, in which case, the delay is canceled, and the switch remains on.
Ill have to rewrite this to make it work. I messed up the trigger. But i hope it helps you do what you wanted to do.