Difference between physical and virtual contact

Hi William-
Thanks for posting.

I would clarify that the device types in your rule screenshots appear to be different than your description. The first one appears to be Buttons rather than switches and the second appears to be True/False Variables rather than switches.

This is an important distinction as the logic you’ve used with the first rule (buttons) won’t work as expected since a button press is more like an event, but some platforms still retain the last event as the state. In other words, the Dimmer A button will always appear ‘pressed’ unless another event type replaced it like ‘held’.

For this kind of rule design, it’s better to use Context Variables to determine which type of event triggered the rule and use that directly in your condition. You can find details on this approach from our previous discussion:

:link: Button Rules and Determining Which Button Was Pushed - #4 by josh