HVAC Door Contact using capture variable to set thermostat mode

Pause

Stop

Name this Rule*

Use Predicate Conditions

Select Trigger Events
Virtual Contact Sensor open

Select Actions to Run
Capture: Virtual Thermostat Controller IF (Virtual Contact Sensor open(T) [TRUE]) THEN Delay 0:00:20 (cancelable) Thermostats: Virtual Thermostat Controller --> Mode: off ELSE IF (Virtual Contact Sensor closed(F) [FALSE]) THEN Delay 0:00:40 Restore: Virtual Thermostat Controller END-IF END-IF
Its is what I have I am from the Vera era using Reactor so I am trying to duplicate the same actions with Rules 5