/Virtual-Switch-Creator

Creates virtual switches in SmartThings

Primary LanguageGroovy

Virtual Switch Creator

Create virtual switches for Smartthings

If you find this useful and feel so inclined, please donate.

PayPal

Uses

  • Create global variables
  • Others (still under construction)

Instalation

Device Type

You need to have the smartthings "On/Off Button Tile" device in your device types for the creator to work. Get started by heading to SmartThings IDE.

  1. Go to the "My Device Types" section and click on the "+ New SmartDevice" button on the right.
  2. Click on "From Template" and find "On/Off Button Tile". Select it and and click "Create".
  3. Click the blue "Save" button above the editor window.
  4. Click the "Publish" button next to it and select "For Me". The device type is now installed.

Switch Creator

The Switch Creator app will help set up the device. You can use a new instance of the app for each switch you want to create.

  1. Go to "My SmartApps" section and click on the "+ New SmartApp" button on the right.
  2. Click on "From Code" and copy/paste the code from the "virtual-switch-creator.groovy" and click "Create".
  3. Click the blue "Save" button above the editor window.
  4. Click the "Publish" button next to it and select "For Me". You have now self-published your SmartApp.
  5. Open the SmartThings mobile app on iPhone or Android and go to the Dashboard.
  6. Tap on the round "+" button and navigate to "My Apps" section by swiping the menu ribbon all the way to the left.
  7. The "Virtual On/Off Switch Creator" app should be available in the list of SmartApps that appears below the menu ribbon. Tap it and follow the setup instructions.

Revision History