App Endpoint Access problem


(Kim Andrè Flaten) #1

Im using Allow Endpoint to Control my switches and lock, but my lock is not showing up after i have authorized it.



(Joshua Lyon (SharpTools.io Dashboard)) #2

If you don’t mind me asking, what are you trying to use the endpoints for?


(Kim Andrè Flaten) #3

Im using them to open garage door, front door and to lock and unlock apartment door from my iPhone and Pebble smartwatch. Everything was working perfectly but changes my lock so had to create a new URL for my new lock, but its not showing up after authorized.


(Morgan) #4

@kimmi That is EPIC. What would i need to add those widgets?


(Kim Andrè Flaten) #5

@thrash99er
First you have to have jailbroken iPhone.
Intall from Cydia:
CCSettings
Activator
Activate Command
QuickActivator

In Activator Command you set up shortcuts from the generated URL from the switches you have autorized in Endpoint Acsess. In front of the URL put: curl -k -s
Eks: curl -k -s https://graph.api.smartthings.com/api/smartapps/installations/b90cfd2c-91d9-4643-9378-49613c276a2f/switches/a6b01cf9…

Then in QuickActivator you set up a Quick Launch, add new shortcut and chose your shortcut from Activator Command.

In Pebble i just use HTTP request with the URL from Endpoint Acsess without curl -k -s in front of it.

(Double check that the URL is HTTPS and not HTTP)

Let me know if you have problem setting it up :grinning:


(Alex) #6

You should look at my project: ActiON Dashboard. Works great as a native mobile app, no jailbreaking necessary.


(Joshua Lyon (SharpTools.io Dashboard)) #7

Or just switch to Android where you can do it without Jailbreaking/Rooting! :hankey:

Have you tried completely uninstalling the supporting Endpoint SmartApp and then reauthorizing?


(Kim Andrè Flaten) #8

Can you explain how i do that?


(Joshua Lyon (SharpTools.io Dashboard)) #9
  1. Log in to the IDE.
  2. Navigate to My Locations:
  3. Select SmartApps:
  4. Click the Edit link at the top of the screen:
  5. Select Uninstall for the desired SmartApp:

PS. Normally you can just do this through the SmartThings mobile app as well, but if I remember correctly the End Point example is a weird one that doesn’t show up in the phone UI.


(Kim Andrè Flaten) #10

I tried to delete and add again, but my lock is till not showing after i have checked the box for my lock.


(Kim Andrè Flaten) #11

Update: when only selecting my lock for authorizing i get this message, so the problem seems to be that its not registering my selection of the lock. I have tried a different web browser but no luck.


#12

were you able to get this to work? I’m having the same problem.


(Jim Anderson) #13

@chrisO are you having the problem that the auth page tells you to select at least one device to authorize, even though you have?

If that’s the case, it may be that your SmartApp hasn’t been published. If that’s the case, open the SmartApp in the IDE, and click the Publish button above the code area.


#14

Hi Jim, thanks for replying, I was doing it from this link https://graph.api.smartthings.com/oauth/authorize?response_type=code&client_id=ab0528dd-9710-42f2-9712-ba7702e9f85c&redirect_uri=http://107.20.127.54/smartthings/exampleOauth.php&scope=app

how do I publish it from my own?


(Kim Andrè Flaten) #15

my solution for this was to remove the lock (from my things in ST app) and add it again.