hub.devices.firmware.update
Connection type:
Permissions:
- Start updating device firmware
Edit
Field | Type | Required | Description |
---|---|---|---|
updates | Array of objects | + | Array of update objects |
updates.devices | Array of strings | + | Array of Ids of target devices |
firmware | Array of objects | + | Array of firmware objects |
firmware.id | String | + | Firmware id |
firmware.image | String | + | Firmware binary |
firmware.checksum | String | + | Firmware binary checksum |
Edit
Edit
Code | Message | Data | Reason |
---|---|---|---|
-32500 | Devices not found! | ezlo.devices.notfound | device ids: |
-32500 | No gateway found! | ezlo.gateway.notfound | gateway id: |
-32602 | Wrong field of object | rpc.params.wrong_field |
Edit
Edit
{
"method":"hub.device.firmware.update",
"id":"_ID_",
"params":{
"updates":[
{
"devices":[ "5cf0dc8c7f000068d223e889", "5cf0dc8c7f000068d223e387" ],
"firmware": [
{
"id":"us.634.246.1",
"image" : "https://storage.mios.com/zwave/634_257_10/634.246.1/firmware1.5.bin",
"checksum":"https://storage.mios.com/zwave/634_257_10/634.246.1/firmware1.5.bin.sh1"
},
{
"id":"us.634.246.2",
"image" : "https://storage.mios.com/zwave/634_257_10/634.246.2/firmware1.3.bin" ,
"checksum":"https://storage.mios.com/zwave/634_257_10/634.246.2/firmware1.5.bin.sh1"
}
]
}
]
}
}
Edit
{
"api": "1.0",
"error": null,
"id": "_ID_",
"result": {}
}