All the rule sees is the event. What generated that event does not get saved. So you have to apply one of the teniques at Design Pattern: Manual Trigger Detection.
Using different Items to command the device via the rules and from the UI is the easiest way to implment this.