And its also executeing the rule irl...
How are you intending the OR and AND to work?
I think what you're trying for is "IF (1 OR 2) AND 3 THEN...".
If so, you may need to use parenthesis - as it is, I believe RM is seeing the single condition before the OR (which is true) and making the result TRUE because of it.
if sensor 1 OR sensor 1 is true and mode is X.
is that not right?
While true, this should be logically equivalent to IF 1 OR 2 AND 3
given that Rule Machine's documented behavior is left-to-right evaluation with no precedence, as discussed in this other thread:
So, I'm not sure why the original conditional wouldn't work. My guess it that something got "messed up" and it would work if re-created in the same way, but either of the above (parentheses or a single "any" condition for part of this) should work, too.
I don't get why you are using changed on your triggers. Set those to active and then in your action use just the mode in your if. No need to evaluate twice since you aren't performing an action when inactive. Even then an else statement would cover that condition.
Well im a newbie an Its become an habit.... if I later ad on something , but you are right I should do like you describe....
Easy enough to change later if you need to but the simpler you can keep a rule the better it will run. As you add more and more rules it becomes more important. I didn't mean to come across rude and reading back over my post I can see it taken as such. I just meant to reccommend you simplify it. Here is an example of using change where it can't be simplified without making two rules because of the two sets of conditions along with the activity.
I will probably split this out to two rules eventually. Just a little challenging because of the delayed action.
You weren't rude!! I appreciate that you guide me!!! Its been a long journey from Vera and I am so happy that I choosed Hubitat especially since the community has so many generously members charing their knowledge!
/Mattias
The images didn't upload. Guessing you submitted before the upload finished.
acctually I didn't upload any pictures... I dont know wy the image text came with the post..
I copy pasted text , might have been it.... edited an erased it
Might also want to check out the built in motion and mode automation app as well as simple automation app. Those apps are much smaller and execute faster if they fit the purpose are generally a better option. Not for this rule but in general.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.