hub.software.update.progress
- Information on the progress of software update operation
Edit
Field | Type | Required | Description |
---|---|---|---|
completed | int | + | Progress of the operation |
error | object | – | Describes any errors that occurred. ‘null’ if there are no errors. |
operationId | string | + | Identity of corresponding hub.software.update.execute request (not supported at the moment). |
serial | string | + | Serial number of the hub controller. |
status | enum | + | Result of the operation. Can be ‘started’, ‘process’, ‘finished’, ‘aborted’. |
Edit
Code | Message | Data |
---|---|---|
-32500 | Update operations error | ezlo.update.internal.operation |
-32600 | Bad params | rpc.params.notfound |
-32500 | Failed to download firmware. Network problems. | ezlo.update.unavailable.firmware |
Edit
Edit
Successful addon update process broadcasts
{
"id": "ui_broadcast",
"msg_subclass": "hub.software.update.progress",
"result": {
"completed": 0,
"error": null,
"operationId": "_ID_",
"serial": "92000123",
"status": "started"
}
}
{
"id": "ui_broadcast",
"msg_subclass": "hub.software.update.progress",
"result": {
"completed": 20,
"error": null,
"operationId": "_ID_",
"serial": "92000123",
"status": "process"
}
}
...
{
"id": "ui_broadcast",
"msg_subclass": "hub.software.update.progress",
"result": {
"completed": 100,
"error": null,
"operationId": "_ID_",
"serial": "92000123",
"status": "finished"
}
}
Edit
Error during firmware update process broadcasts
{
"id": "ui_broadcast",
"msg_subclass": "hub.software.update.progress",
"result": {
"completed": 0,
"error": null,
"operationId": "_ID_",
"serial": "92000123",
"status": "started"
}
}
...
{
"id": "ui_broadcast",
"msg_subclass": "hub.software.update.progress",
"result": {
"completed": 100,
"error": {
"code": -32500,
"data": "ezlo.update.internal.operation",
"message" "Update operations error"
},
"operationId": "_ID_",
"serial": "92000123",
"status": "aborted"
}
}