Hi.
I want to make a virtual device on automation smartapp.
I made a deviceprofile on smartthings cli.
When I don’t set a permissions in code and request a make a device, I got a 403 code.
When I set a permissions in code, that’s not working (I can’t enter the smartapp)
This is my test code
var smartApp = new SmartApp({})
smartApp.enableEventLogging(2)
.configureI18n() // Language file in ./locales folder
.appId(appId)
.disableCustomDisplayName(true)
.permissions([
“r:locations:*”
])
.page(“mainPage”, (context, page, configData) => {
page.section(“test”, section => {
section.textSetting(“testip”)
.description(“IP address of device”)
.defaultValue("")
.required(true)
})
})
.updated(async (context, updateData) => {
await context.api.subscriptions.unsubscribeAll();
})
server debug
2021-02-04T09:51:11.554Z debug: CONFIGURATION/INITIALIZE REQUEST: {
“lifecycle”: “CONFIGURATION”,
“executionId”: “51f4d95b-1259-f3f4-7386-1403b3078803”,
“appId”: “de7eab80-ebe2-413b-b1f1-3b37f2e38cbf”,
“locale”: “ko”,
“version”: “0.1.0”,
“client”: {
“os”: “android”,
“version”: “1.7.59.23”,
“language”: “ko-KR”,
“displayMode”: “LIGHT”,
“timeZoneOffset”: “”,
“supportedTemplates”: ,
“samsungAccountId”: “”
},
“configurationData”: {
“installedAppId”: “a2e2b3c9-6b44-4624-9367-5dac3ddf4268”,
“phase”: “INITIALIZE”,
“pageId”: “”,
“previousPageId”: “”,
“config”: {},
“isResubmit”: true
},
“settings”: {}
}
2021-02-04T09:51:11.554Z debug: RESPONSE: {
“statusCode”: 200,
“configurationData”: {
“initialize”: {
“firstPageId”: “mainPage”,
“permissions”: [
“r:locations:*”
],
“disableCustomDisplayName”: true,
“disableRemoveApp”: false
}
}
}