The files are located in the GitHub [repository](https://github.com/openhab/openhab-addons/tree/main/bundles/org.openhab.binding.smartthings/contrib/smartthings).
2. Open OpenHabDeviceHandler.groovy in an editor (Some program you can use to copy the contents to the clipboard)
3. Copy the contents to the clipboard
4. Using the Smartthings developers tools:
5. Select **My Device Handlers**
6. Click on the **+ Create New Device Handler** near the top right
7. Click on the **From Code** tab
8. Paste the contents of the clipboard
9. Click on the **Create** button near the bottom left
10. Click on **Publish -> For Me**
11. The Device Handler is now ready
### Create the Device
1. Using the Smartthings developers tools:
2. Select **My Devices**
3. Click on the **+ New Device** near the top right
4. Enter the following data in the form:
* Name: OpenHabDevice
* Label: OpenHabDevice
* Device Network ID: This needs to be the MAC address of your OpenHAB server with no spaces or punctuation
* Type: OpenHabDeviceHandler (This should be the last one on the list)
* Location: (Select from the dropdown)
* Hub: (Select from the dropdown)
5. Click on the **Create** button near the bottom left
6. In the Preferences section enter the following:
* ip: (This is the IP address of your openHAB server)
* mac: (This is the same as the Device Network ID but with : between segments
* port: 8080 (This is the port of the openHAB application on your server)
* Save the preferences
## Configuration in the Smartthings App
Next the App needs to be configured using the Smartthings App on your smartphone. These instructions are for the new app.
1. Start the Smartthings App on your phone
2. Select the menu (3 horizontal bars) in the upper left corner
3. Select **SmartApps**
4. Click the **+** (Add) in the upper right
5. Scroll to the bottom and select **OpenHabAppV2**
* In the selection screen select the devices you want to interact with openHAB. **Warning** devices not enabled (lacking the check mark in the box for the specific device) will be **ignored** by openHAB.
* Near the bottom of the screen is **Notify this virtual device**, click on it and select **OpenHabDevice**.
* Finally click **Done** at the bottom of the screen.