After processing Create New DTH in IDE, when we enter the following cli using the ID of the DTH, we get deviceConfig.json, right?
CLI:
$ smartthings presentation:device-config:generate “SECRET_ID” --dth -j -o=deviceConfig.json
deviceConfig.json
{
"type": "dth",
"dashboard": {
"states": [
{
"component": "main",
"capability": "switch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY1",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY2",
"version": 1,
"values": [],
"patch": []
}
],
"actions": [
{
"component": "main",
"capability": "switch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY1",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY2",
"version": 1,
"values": [],
"patch": []
}
]
},
"detailView": [
{
"component": "main",
"capability": "switch",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY1",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY2",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY3",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY4",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": " TOP_SECRET_CAPABILITY5",
"version": 1,
"values": [],
"patch": []
},
{
"component": "main",
"capability": "TOP_SECRET_CAPABILITY6",
"version": 1,
"values": [],
"patch": []
}
],
"automation": {
"conditions": [
{
.....
}
]
}
}
You don’t need to read all deviceConfig.json! Below is an estimate of the results.
If you use the following command using this deviceConfig.json file, a vvid appears, and then applying this vvid to DTH creates the UI we want to create, right?
$ smartthings presentation:device-config:create -j -i=deviceConfig.json
But what I want to do is make it like this. (Bringing capabilities into components)
For this, you just need to set component for each capability of deviceConfig.json, right?
When I did that, the question was no. Is there any way to do this? What am I missing?
Waiting for your answer, I will work hard to develop it… Thank you