As a newbie to SmartThings, I am having difficulty getting past this error message
when I try to authenticate a SmartApp.
To keep things simple (after getting nowhere with my own app), I browsed the available SamrtApps and pasted “Text Me When There’s Motion” into mine, tested it (it worked beautifully), and then started the auth process by sending the initial request to get a code value.
I made an assumption that I needed to, and could set up authentication - ie. get an oauth token - so that I could test inbound http get/post requests from my outside service to the smartapp.
How else would I be able to develop/test the smartapp - before any real devices are attached? All I want to do at this stage is to see that I can successfully receive http requests in a smartapp.
I have set up some skeletal code as follows to handle requests.
I did not see anything about creating a ‘virtual device’ on that page. But I did create an entry ‘Motion Sensor 1’ with Network ID 1 (?) and ‘motion sensor capability’.
I tried the authentication process again - this time I see the checkbox for the Motion Sensor. But I got the same message.
Just in case the device name needed to match the name in the smartapp, I updated the device so that this was the case. But I still got the same error message.
I was originally trying to run the authentication for a test SmartApp - and I got this (same) error
I did not know if I had mis-typed or omitted anything (eg. in ‘preferences’)
To eliminate any possibility of my coding having an effect, I thought that I should then try authentication on a ‘working’ app that I selected by browsing the available apps. I selected ‘Text Me When There’s Motion’ (app built by SmartThings) and made sure not to modify anything.
ie.
I clicked ‘New SmartApp’, named it ‘Test Auth’, selected ‘Text Me When There’s Motion’ and clicked Enable OAuth, Create. No modifications. This app does not have any mappings for inbound GET/POST etc.
In ‘Text Me When There’s Motion’:
The phone number is a required field - as evidenced when I run a simulation.
I did - as suggested - add a device, but then this shows up as a Physical Device - plus the Virtual Device - I am not sure what to make of this.
The error appears as discussed above.
My original ‘test’ app - which also got this error when I tried to authenticate - is as follows:
@colin can you submit a support request? I’d like to take a look into your account and need permission in a support ticket. Just mention me anywhere in the ticket and it will find its way to me.
So now, after having sent a number of emails to support and getting no response, I am wondering what’s going on. This is very disappointing! Is there no support available to me?
I am doing a very similar thing and trying to setup a web endpoint using oauth. I am following the instructions from smartthings developer guide (http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/implementation.html)
However I am facing the exact same issue. I do have real devices and they are all active and work fine otherwise.
Any support here would be appreciated
Add me as a +1 on this. My real goal: I have a bbq Pit monitor I built with raspberry pi, and I’ve been having my smartthings app poll it by punching a hole in my firewall. I would prefer to have the node code on the pit monitor call directly to SmartThings with the rest API.
When I try to authorize to get a token, I get told to select a device; even though I don’t need a device, I just need access to the rest endpoint mappings. Adding a vestigial device to the code (random motion sensor in the house), did not solve the problem.