Life span¶
getLifeSpan
¶
Command to get information about accessories components.
Request¶
Only the name and the payload arguments will be described. General information can be found under Command General.
- Name:
getLifeSpan
-
Payload arguments:
Example payload
[
"sideBrush",
"brush",
"heap"
]
Response¶
Only the data
object will be described here.
To get information about the whole response, please refer to
Command General.
The data
object contains the following arguments:
-
[result]
: A list with a result object for each requested component.-
type
: The corresponding value for the component.Value Description brush main brush sideBrush side brush heap filter unitCare other components 1 dModule unknown 1
left
: Remaining lifetime in minutestotal
: Total lifetime in minutes
-
Example response
[
{ "type": "sideBrush", "left": 0, "total": 9000 },
{ "type": "brush", "left": 10873, "total": 18000 },
{ "type": "heap", "left": 73, "total": 7200 }
]
Hint
To calculate the percentage use left/total
.
resetLifeSpan
¶
Command to reset an accessories component.
Request¶
Only the name and the payload arguments will be described. General information can be found under Command General.
- Name:
resetLifeSpan
-
Payload arguments:
Example payload
{
"type": "sideBrush"
}
Response¶
No specific response expected, as this is a executing command. General information about responses can be found under rest.