Been using HE for a couple years, but just simple stuff (light on/off at X/Y). About a month ago, (when I got a new wireless garage door opener) so I purchased a Zonoff Zigbee button. I have used RM 5.1 to create two rules:
One push closes the door (with delay)
Double-tap closes the door
All is well and has been working for a month, but now I want to combine the two rules into one rule (to improve the WAF) so that one push either opens or close the door, depending on the door's current state. Seems so easy! But, I'm getting hung up on conditions. I can create the first condition "closed TRUE", but when I go to create the 2nd condition "open TRUE" it won't let me, it keeps switching to "open FALSE" . . . which of course doesn't work. I'm missing something in the approach.
I did some searching on setting conditions, but can't seem to find something applicable. If there is another post that covers this, or explanation, feel free to point me to that, I'm happy to read and learn on my own with a little nudge. thx.
The "Manage Conditions" section is just for creating conditions that can then be used in the actions of a rule. The conditions are an evaluation of a state.
In your screenshot, I presume that the garage door is closed right now. What you are seeing is the defined evaluation of "is the garage door closed" and the evaluation result, which is "True." So, you're also seeing the reverse condition with your "is the garage door open" showing as "false."
I presume what you're actually looking for is setting actions based on whether or not the door is open or closed. To do that, go to the actions section of the rule and you can add a "conditional action" to check whether or not the door is open, and then perform some actions based on that result.
It's also worth noting that you do not have to create conditions before creating the actions. If you go straight to creating actions, then conditions will be generated as you step through the actions list.
And you'll notice you really only need one condition to do this type if "if/Then" since the "Else" part handles what to do if the "If" condition is false.
I do this in Button Controller, but you can do this If/Then in RM as well, of course.
OK @anon47916022 and @danabw that was a real head-scratcher, but I got it done. Writing the if/then in a scripting language would be trivial, but for some reason, I was/am struggling with the interface, but thanks to you all and the examples I made it through (working rule below). Also the "Display current values" switch was adding to my confusion, so I turned that off.
In any case 1,000 thank you's as it is now working, and I think I understand RM just a little bit better now. So now armed & dangerous, I've got a few more buttons and ideas to tackle Thanks again for the personal help, I'll standby for the bill