Drivers
Upload Package
Changed onConsumes driver package (.zip) that contains driver and profile definitions. The layout of the compressed ZIP package should reflect the following structure and files definitions.
config.yaml fingerprints.yaml (Optional, should not be included in packages for Drivers that don’t define fingerprints) src/ (init.lua, ...) profiles/ ({ Profile Name }.yaml, { Other Profile Name }.yaml)
post/drivers/package
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:drivers:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
string binary required
Response
Retrieved driver
Example response
{
"driverId": "9314a926-528c-403f-ae56-4b0d059381dd",
"name": "Generic Button",
"packageKey": "smartthings.zigbee.bulb-rgbw",
"fingerprints": [
{
"id": "smartthings.motion-v4",
"deviceLabel": "Motion Sensor",
"zigbeeGeneric": {
"clusters": {
"client": [
25
],
"server": [
1280
]
},
"deviceIdentifiers": [
257
],
"zigbeeProfiles": [
260
]
},
"zigbeeManfacturer": {
"manufacturer": "SmartThings",
"model": "motionv4"
},
"zwaveManufacturer": {
"manufacturerId": 134,
"productId": 12336,
"productType": 17488
},
"zwaveGeneric": {
"genericType": 6,
"specificType": [
6
],
"commandClasses": {
"either": [
25
],
"controlled": [
25
],
"supported": [
25
]
}
}
}
]
}Changes
- info
endpoint added
- info