In the selection screen select the devices you want to interact with openHAB.Scroll to the bottom and select OpenHabAppV2.Select the menu (3 horizontal bars) in the upper left corner.Start the Smartthings App on your phone.Next the App needs to be configured using the Smartthings App on your smartphone. port: 8080 (This is the port of the openHAB application on your server).mac: (This is the same as the Device Network ID but with : between segments.ip: (This is the IP address of your openHAB server).In the Preferences section enter the following:.Type: OpenHabDeviceHandler (This should be the last one on the list).Device Network ID: This needs to be the MAC address of your OpenHAB server with no spaces or punctuation.Click on the + New Device near the top right.Click on the + Create New Device Handler near the top right.Open oovy in an editor (Some program you can use to copy the contents to the clipboard).Locate oovy in the /contrib/smartthings/DeviceHandlers Directory.Click on the Create button near the bottom left.Click on the + New SmartApp near the top right.Using the Smartthings developers tools:.Locate oovy in the /contrib/smartthings/SmartApps Directory.OpenHabDeviceHandler - This is a lower level module that provides a connection between openHAB and the Hub using the LAN connection.OpenHabAppV2 - This is a SmartApp that receives requests from openHAB and returns the needed data.The files are located in the GitHub repository (opens new window). Logon using the same email and password as on your Smartthings phone app.Open the developers website using the link above.These steps assume you already have a Smartthings Hub and have set it up. The following steps need to be done on the Smartthings hub using the web based Smartthings developers tools (opens new window). # Installation of artifacts on the Smartthings HUB Currently the Smartthings code is bundled with the binding. Note: You can long-press on the Authenticate button to start the authentication in Chrome.To use the Smartthings, openHAB binding code needs to be installed on the Smartthings Hub. Click the Authenticate button and start the authentication process!.Navigate back to the Settings screen by pressing the back button on your phone or tapping the back button in the top-left of the action bar.You should now see preferences for Client ID and Client Secret, tap each one and paste in the corresponding value for each noted earlier.Once in the Settings screen, you should see authenticate buttons ( don't click these yet), click the menu overflow in the Settings screen and select "Advanced Settings".Swipe out the left nav-drawer (or click the icon in the top-left of the screen) and select Settings.Open SharpTools from your Android app drawer.Click the Publish button and from the drop-down, select For Me.Scroll down and press the Update button.Pro-tip: Copy these values into an email and send them to yourself so you can reference them on your Android device later Note: These values are unique to your installation. Make note of the OAuth Client ID and OAuth Secret.Click the Enable OAuth in Smart App button.Scroll down and expand the OAuth section by clicking the 'OAuth' header/link.Click the 'App Settings' button at the top.Click the 'Create' button at the bottom.Select the "From Code" tab and paste in the code from Step 1. Click on the My SmartApps navigation tab at the top of the screen.Log in to the SmartThings developer platform.Only follow these steps if you have been instructed to do so. Manual installation of the SmartApp is no longer required.
0 Comments
Leave a Reply. |