Hi! I would like to propose an additional feature: option to reference to the triggering device in conditions within the triggered rule, sort of like how actions around private booleans can reference the rule itself.
Here is one use case: I have a rule that I would like to run whenever any of a few contact sensor changes; if a sensor becomes open, one action should be taken, while if a sensor becomes closed, a different action should be taken. The limitation right now, so far as I understand RM 4.0, is that when a "contact sensor changed" event occurs, I have no way of determining whether the change itself was an opening or a closing—I can check only the current state of each of the sensors, but that says nothing about what the actual change was.
Or if this feature is already available and I just haven't found it, I'd love to hear that!
(To be clear: I know I can use any number of workarounds for the above purpose. I'm not trying to say that the behavior is impossible to implement right now, only that the feature would add utility and make rules more flexible and enable more-compact sets of rules.)