Right now in our Home Theater Room whenever you turn on the TV, PS4, or PC I have a smart-app setup in Smartthings to turn off the the HTR Overhead lights and the HTR Stairwell lights. Also in ST I have a smart-app setup whenever the Basement Door (contact) is opened it turns on the HTR Overhead lights and the HTR Stairwell lights.
I created a Piston in Core when the Home Theater is in use (watching TV, PS4 , or PC) and the Basement Door (contact) is open, if the lights are Off then they stay Off. But if the HTR is not in use, then the light turn on as normal.
I would like to recreate the same setup in WebCore, but not really sure where and how to add the “But IF” command in WebCore.
Here is my setup in Core.
Break down…