@nayelyz @erickv
Does anyone get an error while trying to create the device-config?
I issue the command:
st presentation:device-config:generate. X-X-X-X-X --dth -o=DC.json -j
and with or without modifying and code from the DC.json,
I get this error when I’m trying to create device-config
st presentation:device-config:create -j -i=DCfinal.json
[2020-09-09T07:39:02.894] [ERROR] cli - caught error Error: Request failed with status code 400: {"requestId":"97FF1B98-93B7-42F2-A724-55222E0FEAD2","error":{"code":"BadRequestError","target":null,"message":"The request is malformed.","details":[]}}
The new device config looks like:
{
"type": "dth",
"iconUrl": null,
"dashboard": {
"states": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"patch": [],
"visibleCondition": null
}
],
"actions": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"patch": [],
"visibleCondition": null
}
]
},
"detailView": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"patch": [],
"visibleCondition": null
}
],
"automation": {
"conditions": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"patch": [],
"visibleCondition": null
}
],
"actions": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"patch": [],
"visibleCondition": null
}
]
},
"presentationId": "7fcc2012-5748-34c8-a4ee-b1a7fe31557a",
"manufacturerName": "SmartThingsCommunity",
"vid": "7fcc2012-5748-34c8-a4ee-b1a7fe31557a",
"mnmn": "SmartThingsCommunity"
}
But yesterday, I was able to create the device config using this DC:
{
"mnmn": "SmartThingsCommunity",
"vid": "7fcc2012-5748-34c8-a4ee-b1a7fe31557a",
"type": "dth",
"dpInfo": null,
"iconUrl": null,
"dashboard": {
"states": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"visibleCondition": null
}
],
"actions": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"visibleCondition": null
}
]
},
"detailView": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"visibleCondition": null
}
],
"automation": {
"conditions": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"visibleCondition": null
}
],
"actions": [
{
"component": "main",
"capability": "boardmedia46837.equivalentDose",
"version": 1,
"values": [],
"visibleCondition": null
}
]
}
}
There are differences in the generated DC files.