mirror of https://github.com/nymea/nymea.git
34 lines
789 B
JSON
34 lines
789 B
JSON
{
|
|
"description": "The update interface is used for things that support being updated by nymea.",
|
|
"states": [
|
|
{
|
|
"name": "updateStatus",
|
|
"type": "QString",
|
|
"allowedValues": ["idle", "available", "updating"]
|
|
},
|
|
{
|
|
"name": "currentVersion",
|
|
"type": "QString",
|
|
"logged": true
|
|
},
|
|
{
|
|
"name": "availableVersion",
|
|
"type": "QString",
|
|
"optional": true
|
|
},
|
|
{
|
|
"name": "updateProgress",
|
|
"type": "uint",
|
|
"unit": "Percentage",
|
|
"min": 0,
|
|
"max": 100,
|
|
"optional": true
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"name": "performUpdate"
|
|
}
|
|
]
|
|
}
|