I’m currently working on integrating my BBQ Pit monitor with SmartThings using OAuth, and I’m hitting a bit of a snag. Let me walk through what I’ve done so far and see if anyone can spot where I might be going wrong.
First, I set up a simple SmartApp with the necessary endpoints and enabled OAuth. I followed the standard OAuth flow: requesting an authorization code, exchanging it for an access token, and then trying to call my SmartApp’s endpoint. But every time I make the call, I get a ‘Not Found’ error.
Here’s what the endpoint URL looks like:
https://graph.api.smartthings.com/api/smartapps/installations//updateTemps?access_token=
I’ve tried including parameters as well, but that just gives me a ‘Method Not Allowed’ error. I’m not sure if I’m missing something in the way I’m constructing the URL or if there’s an issue with how the endpoint is defined in my SmartApp.
On a lighter note, I did discover that the order of devices in the preferences section matters. If I don’t list my vestigial switch first, I end up with some weird errors. It’s these little quirks that make troubleshooting such an adventure!
If anyone has successfully integrated a custom device or sensor using OAuth, I’d love to hear about your experience or any tips you might have. Happy coding! ![]()