Member of gWallSwitches changed to ON or
Member of gWallSwitches changed to 100
This rule fires whether the switch was turned ON/100 via a wall switch, rule or pressing a soft switch (such as Habpanel). How do I tell which one caused the rule to fire or change the rule to only fire when it is turned on via the Wall Switch.
Have a look at triggeringItem / triggeringItemName for example, with which you can use a switch condition - just working on a related rule here at the moment
I’ve looked at the Implicit Variables and they seem to return the same values no matter if the rule was fired because of a switch press or rule, etc. Below are two log examples. First via a wall switch and the second via Habpanel. what is returned by triggeringItem are the same.
sKitchenCanLights (Type=DimmerItem, State=100, Label=Kitchen Ceiling Can Lights, Category=light, Tags=[Lightbulb], Groups=[gKitchen, gLightGroup, gInsteonSwitches]) was turned on.
sKitchenPeninsulaOverheadLight (Type=DimmerItem, State=100, Label=Kitchen Peninsula Overhead Light, Category=light, Tags=[Lightbulb], Groups=[gKitchen, gLightGroup, gInsteonSwitches]) was turned on
If you’re working on a simlure rule lt me know what you find.
Well, I’m just adjusting an old rule to some new conventions
Which different items are in the gWallSwitches? Might you not be firing with the same item either through the wall switch and Habpanel, and possibly need to differentiate the two options?
From your OP it sounds as if you only want the rule to fire if it is being triggered by the wall switch, so why not only use the wall switch item as the trigger and not any member of the whole group?
But all really depends on how you got the different options set up in the group gWallSwitches.
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.