At first, there’s no way to distinguish, whether an item was triggered “by hand” or “by PIR”.
That being said, one logic to do stuff depending on the triggerpoint is to add proxy items, which then in turn can only be triggered by one method.
e.g., if talking about your Light relay:
- turning the light on or off is item “
Light_Doorway” - the PIR triggers “
Light_Doorway_PIR” - the Zwave Releay triggers “
Light_Doorway_Zwave”
So, you then add two rules for “Light_Doorway_PIR”-changes and “Light_Doorway_Zwave”-changes. Both turn “Light_Doorway” on or off, but with different outcome - so perhaps the “Light_Doorway_PIR”-item gets and expire for xx minutes, which the “Light_Doorway_Zwave” won’t get…