[SOLVED] Dude Rules

I have a simple question…

Can I do the next in the rules?

if (VirtualSwitch.state == ON) {
  MyItem1 changed from OFF to ON
  MyItem2.sendCommand(OFF)
  }

I’d move the event to the trigger:

when
MyItem1 changed from OFF to ON
then
if (VirtualSwitch.state == ON) {

MyItem2.sendCommand(OFF)
}
end

1 Like

OMG!!!

Thanks, now works great!!!