I don’t understand the problem related to initial values of the device, can you be more specific?
There seem to be no Issue in creating device profile via API, account linking, discovering devices everything works fine. Issue is only in controlling devices, devices just get listed in SmartThings App and does not present options to control. Nothing happens when clicked on a device on SmartThings App and there seem no request being sent to our cloud.
Just by adding device profile to Project, able to control device from SmartThings App, absolutely no other changes in our cloud or else where.
Some more information for the profile json (created via API), just a comparison before and after adding the profile to project, in case if it can help.
// BEFORE clicking add profile to project
{
“id”: “59280b3e-88c9-483f-881c-66c883fdb37b”,
“name”: “switch new psotman”,
“metadata”: {
“deviceType”: “Switch”,
“deviceTypeId”: “Switch”
},
“migrationStatus”: “NOT_MIGRATED”,
“status”: “DEVELOPMENT”,
“preferences”: ,
“components”: [
{
“label”: “main”,
“id”: “main”,
“capabilities”: [
{
“id”: “motionSensor”,
“version”: 1,
“ephemeral”: false
}
],
“categories”: [
{
“name”: “Switch”,
“categoryType”: “manufacturer”
}
]
}
],
“owner”: {
“ownerType”: “USER”,
“ownerId”: “f408a6e2-5bb9-839f-1ecc-c78d5ebfd1a1”
}
}
// AFTER clicking add profile to project
{
“id”: “59280b3e-88c9-483f-881c-66c883fdb37b”,
“name”: “switch new psotman”,
“metadata”: {
“deviceType”: “Switch”,
“vid”: “ST_a655de55-bce1-44c8-b4b7-6a5349276c1a”,
“mnmn”: “fwtu”,
“ocfDeviceType”: “oic.d.switch”,
“deviceTypeId”: “Switch”,
“ocfSpecVer”: “core 1.1.0”,
“mnid”: “fwtu”,
“mnId”: “fwtu”
},
“migrationStatus”: “NOT_MIGRATED”,
“status”: “DEVELOPMENT”,
“preferences”: ,
“components”: [
{
“label”: “main”,
“id”: “main”,
“capabilities”: [
{
“id”: “motionSensor”,
“version”: 1,
“ephemeral”: false
}
],
“categories”:
}
],
“owner”: {
“ownerType”: “USER”,
“ownerId”: “f408a6e2-5bb9-839f-1ecc-c78d5ebfd1a1”
}
}
I am exploring the possibility for a cloud platform to create device profiles programmatically and start using them seamlessly.