We have AWS environment with connected iot devices. And I want to do C2C integration with cloud connector. I created a lot of project for this integration but there is no successful result. Please share your opinion about this topic.
First of all I want to connect our devices from aws to smartthings.
When I want to create project there are two choices : Device Integration and Automation for the Smartthings App then I choose Device Integration
Second step is “How do you want to Integrate the device?” there are four choices : SmartThings Cloud Connector, SmartThings Hub*, Direct-connected and Mobile-connected. Then I choose *Smartthings Cloud Connector
After that step you must give this project name. Then I gave name to project.
I want to host my app with aws lambda What are these lambda requirements?If this lambda will be triggered with api gateway, where will I use the link of the api gateway?
Then I give the target arn in box. My lambda is in european region in Ireland. I enter just europe box.
After that;
Client ID : Aws cognito user pool app client ID
Client Secret : Aws cognito user pool app client secret
Authorization URI : ?
Token URI : ?
Alert Notification Mail : …@…com
Oauth Scope(s) : Aws cognito user pool scopes
Android App link : given
IOS App link : given
I looked through the documentation and the github repo. I set up our aws environment. I create userpool then I set the domain this userpool. Then I enabled Identity Providers and set Callback URL(s) and Sign Out URL(s). I set Allowed OAuth Flows and Allowed OAuth Scopes. When I launch this UI I see the endpoint with redirect URI. What is this redirect URI. Okey It is in the documentation with region based.(ex : https://c2c-eu.smartthings.com/oauth/callback ). Redirect URI this link and I can configure this link with aws cognito management console. But If I want to do Oauth, shouldn’t this link touch the application’s login link ( ex: mobile app).
I want to finish this part and continue with connector code development. I want to list device and select one and send the rpc or command to this device. According to this information, what should my function be?When I use smartthings API’s ?
I lost my way. I want to roadmap.I read documentation everyday and Im confused now. Could you please share the information about this topic ?
I want to try webhook endpoint and then give the API Gateway invoke URL to webhook endpoint box.
We have a cognito hosted UI and I use the Implicit Grant Flow.
After that;
Client ID : Aws cognito user pool app client ID
Client Secret : Aws cognito user pool app client secret
Authorization URI : https://<cognito_domain_url>/oauth2/authorize
Token URI : https://<cognito_domain_url>/oauth2/token
Alert Notification Mail : …@…com
Oauth Scope(s) : ?
Android App link : given
IOS App link : given
When I entered this information in postman and tested it (with no Oauth Scopes), I was able to get tokens. But when I enter this information in Smartthings Developer Workspace, I get the following error: “An error was encountered with the requested page.”
Hi @ayoder56, you mentioned that you want to use a Lambda but you also mentioned Webhook, I am confused, Are you using a Lambda or Webhook?.
For the error “An error was encountered with the requested page.” Can you see logs on AWS?, if so please send us to check what is happening, please send an email to build@smartthings.com
I couldn’t connect to lambda the first way I did and I couldn’t see the logs in aws. The first post I made 4 months ago is about that.
Then I wanted to try the other way.
When I configure it as a webhook endpoint, I get the error I said in the smartthings mobile app, not in aws. In fact, this means that no requests are received at the endpoint of the API Gateway. In the URL of the opened page, a link like “https://<codnito_domain_name>/error?error=redirect_mismatch&client_id=<client_id>” returns.
I’m sending an e-mail to the e-mail address you mentioned in detail.
I understand that I will investigate what is going on, but unfortunately, we did not receive any mail from you or you can send me your mail by private message.
I was out of the office last week, so I’m sorry I couldn’t reply to your posts. I sent an email to build@smartthings.com. In the mail, I shared in detail both what I was doing and at what points I encountered problems.