Contacts/doors and RM

@bravenel
In webCORE and many ST apps there are the following options:

  • Open
  • Closed
  • Opens
  • Closes

Any thoughts of adding the bottom two for on condition change? Or is this what RM does already with conditions? Just curious of how it is handled here verses in other implementations.

What is the difference in a contact between open and opens or closed and closes?

Open is a condition. Opens is a trigger. Both are supported in RM.

Thanks, I used conditions and triggers in RM but never thought that open and opens was different in a contact.

Bear in mind that webCoRE was the successor to CoRE, which was the successor to Rule Machine. An event is something like "it opened", a condition is something like "it is open". Triggers only deal with events. Rules deal with events and conditions (since a change in a condition begins with an event).

In a rule, if you say as a condition, "door open", that's going to be true whenever the door is open. It becomes true when the door opens.

--> Same logic as webCoRE (since CoRE copied it).

3 Likes