- Installing a SmartDevice TYPE
Open SmartThings IDE in your web browser and log into your account.
Click on the “My Device Types” section in the navigation bar (or open the SmartDevices page).
On the “'s Device Types” page, click on the “+ New SmartDevice” button on the right.
On the “New SmartDevice” page, fill out the mandatory “Name” field. It does not matter what you type in the name field since it will be overwritten in the next step anyway. Click the blue “Create” button at the bottom of the page. An IDE editor window containing device handler template should now open.
Copy the source code you want to start with – either by clicking the from"device type examples" button on the upper right-hand side of the page or by copy&paste from code in GitHub. Either way, make sure you completely overwrite contents of the editor window with the source code copied.
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 smart device handler.
Installing a SmartDevice
In the SmartThings IDE, click on the “My Devices” section (or open the Device List page).
On the “Device List” page, click on the “+ New Device” button on the right.
On the “Create Device” page, enter device name in the mandatory “Name” field. You can use any name here.
Optionally, enter device label in the “Label” field. This is the actual label that will displayed in the SmartThings mobile app.
Fill in the mandatory “Device Network Id” filed. You can enter any string or number here, since it will be overwritten by the device handler anyway.
In the mandatory “Type” field, select (from the drop-down list) the name of your device TYPE from step 1-2 .
In the mandatory “Version” field, select “Self-Published” from the drop-down list.
In the “Location” field, select location where you want to install new device.
In the “Hub” filed, select the name of your SmartThings hub.
Click the blue “Create” button at the bottom of the page.
- Refresh Device List in SmartThings Mobile App. Open the SmartThings app on your mobile device, go to the Dashboard and log out of your SmartThings account. Exit and restart the SmartThings mobile app.
Log back in into your SmartThings account. Your new device should now appear on the “Things” page.