Create virtual switches for Smartthings
If you find this useful and feel so inclined, please donate.
- Create global variables
- Others (still under construction)
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.
- Go to the "My Device Types" section and click on the "+ New SmartDevice" button on the right.
- Click on "From Template" and find "On/Off Button Tile". Select it and and click "Create".
- Click the blue "Save" button above the editor window.
- Click the "Publish" button next to it and select "For Me". The device type is now installed.
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.
- Go to "My SmartApps" section and click on the "+ New SmartApp" button on the right.
- Click on "From Code" and copy/paste the code from the "virtual-switch-creator.groovy" and click "Create".
- Click the blue "Save" button above the editor window.
- Click the "Publish" button next to it and select "For Me". You have now self-published your SmartApp.
- Open the SmartThings mobile app on iPhone or Android and go to the Dashboard.
- Tap on the round "+" button and navigate to "My Apps" section by swiping the menu ribbon all the way to the left.
- 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.