hubsoftware.update.execute
Connection type:
Permissions:
- Execute software management actions: upgrade firmware, install addons, uninstall plugins, etc… For H2 result of hub.software.actions.execute command should be used. For Atom32, NMA should be able to calculate actions by itself based on result of hub.software.info.get command.
Edit
Field | Type | Required | Description |
---|---|---|---|
actions | array | + | Actions for executing requested operation |
actions[].operation | enum | + | , , , |
actions[].source | string | + | Web server where to download requested , , or . |
actions[].snapshot | int | + | Bundle snapshot to use |
actions[].type | enum | + | , , |
actions[].id | string | – | If type is or , then id (name) of extension |
actions[].version | string | + | Version of referenced software |
Edit
Edit
Code | Message | Data |
---|---|---|
-32602 | Wrong params | rpc.params.invalid |
-32500 | User does not have permission | user.permission.doesnothave |
-32500 | Low battery level | ezlo.battery.low |
Edit
Broadcast | Description |
---|---|
hub.software.update.progress | Operation progress information |
Edit
Upgrade firmware to 1.2.42 version
Edit
{
"method": "hub.software.update.execute",
"id": "_ID_",
"params": {
"actions": [
{
"operation": "upgrade",
"source": "http://dl.mios.com/linux_firmware/qa",
"snapshot": 42,
"type": "firmware",
"version": "1.2.42"
},
{
"id": "zwave",
"operation": "upgrade",
"source": "http://dl.mios.com/linux_firmware/qa",
"snapshot": 42,
"type": "addon",
"version": "1.1.42"
},
{
"id": "zwave",
"operation": "upgrade",
"source": "http://dl.mios.com/linux_firmware/qa",
"snapshot": 42,
"type": "plugin",
"version": "1.3.42"
}
]
}
}
Edit
{
"error": null,
"id": "_ID_",
"result": {}
}
Edit
TBD