Stop command

This example uses a Stop command to not close the garage door if the garage light is on. If the light is off, the garage door closes.

To use the Stop command during programming, see this example using a keypad, a garage door, and a dimmer:

  1. In the keypad Events pane, select the Garage Door button and select the Pressed event for the Garage keypad button. ‘When <room> -> <keypad name> Garage button is pushed’ appears at the top of the Script pane.
  1. In the Garage Light Actions pane, click the Conditionals tab, and then click Is On.
  2. Click the blue question mark next to ‘If the <room>->Garage Light is on,’ and drag it to the Script pane.
  3. In Programming Controls, and click the Stop command and drag it into the Script pane.
  4. Drag the green arrow ‘Stop’ over the blue question mark in the Script pane to nest it below "If <room>->Garage Light is on".
  1. In the Device Actions pane, select the Garage Door.
  2. Click the Commands tab, and select Close the <room>->Garage Door.
  3. Drag the green arrowClose the <room>->Garage Door’ below the Stop command.