This repository was archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathREADME.html
More file actions
57 lines (57 loc) · 3.32 KB
/
README.html
File metadata and controls
57 lines (57 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<h1 id="action-dashboard">ActiON Dashboard</h1>
<p>ActiON Dashboard is a web application to contol and view status of your devices. </p>
<p>It is optimized for mobile devices as well as large screens.</p>
<p>Once the dashboard url is generated, it could be used in any modern browser.</p>
<p>There is no need to install SmartThings Mobile application on the device that will run the dashboard.</p>
<h1 id="create-smartapp">Create SmartApp</h1>
<ul>
<li>Login to <a href="https://graph.api.smartthings.com/">https://graph.api.smartthings.com/</a></li>
<li>Click on My SmartApps <a href="https://graph.api.smartthings.com/ide/apps">https://graph.api.smartthings.com/ide/apps</a></li>
<li>Click on "+ New SmartApp" on the right side</li>
<li>Click on "From Code" tab</li>
<li>Paste the Groovy code for the SmartApp</li>
<li>Click "Create" button on the bottom of the page</li>
<li>Click "App Settings" button on top right of the page</li>
<li>Click on "OAuth" link toward the bottom of the page</li>
<li>Click on "Enable OAuth in Smart App"</li>
<li>Click "Update" button</li>
<li>Click on "Code" button on top right of the page</li>
<li>Click "Publish" button then "For Me" option</li>
</ul>
<h1 id="install-app-via-smartthings-mobile-app">Install app via SmartThings Mobile app</h1>
<ul>
<li>Go to Dashboard of SmartThings Mobile app</li>
<li>Tap (+) on the bottom of the app</li>
<li>Swipe all the way to the right to My Apps</li>
<li>Pick the app that you created</li>
<li>Follow through configuration of the SmartApp</li>
<li>Don't forget to click "Done"</li>
</ul>
<p>To obtain the URL of your ActiON Dashboard</p>
<ul>
<li>Open logs at <a href="https://graph.api.smartthings.com/ide/logs">https://graph.api.smartthings.com/ide/logs</a> </li>
<li>Go to My Apps section in SmartThings Mobile app</li>
<li>Tap the icon of ActiON SmartApp</li>
<li>The ActiON Dashboard URL will be printed in the logs</li>
</ul>
<h1 id="install-app-via-smartthings-ide">Install app via SmartThings IDE</h1>
<ul>
<li>Login to <a href="https://graph.api.smartthings.com/">https://graph.api.smartthings.com/</a></li>
<li>Click on My SmartApps <a href="https://graph.api.smartthings.com/ide/apps">https://graph.api.smartthings.com/ide/apps</a></li>
<li>Click on the name of the app you want to install</li>
<li>Pick location in the drop-down on top right</li>
<li>Click "Set Location" button</li>
<li>Follow through configuration of the SmartApp, don't forget to get through all pages if there are more than one.</li>
<li>Don't forget to click "Done"</li>
</ul>
<p>To obtain the URL of your ActiON Dashboard</p>
<ul>
<li>Open logs in another tab at <a href="https://graph.api.smartthings.com/ide/logs">https://graph.api.smartthings.com/ide/logs</a></li>
<li>Back in the tab that had the SmartApp details, click "Trigger Now" button on right side under Preferences</li>
<li>The ActiON Dashboard URL will be printed in the logs</li>
</ul>
<h1 id="oauth">OAuth</h1>
<ul>
<li>If you omit the access_token from the URL, you will be prompted to login. This will authenticate the session. I do not know how long the session stays valid.</li>
<li>If you need to invalidate the access_token, you can uninstall the app or change OAuth details in the App Settings.</li>
</ul>