device.type
:vacuum
- Models: Mi Robot Vacuum
- Model identifiers:
rockrobo.vacuum.v1
state
, state of the vacuum, one ofcharger-offline
,cleaning
,returning
,charging
,paused
,spot-cleaning
orunknown-#
where # is a numbererror_code
, object describing errors encountered by the vacuumbattery
, number indicating the battery level between 0 and 100
device.state
, the state of the vacuum, see Properties for detailsdevice.charging
, boolean indicating that the state ischarging
device.cleaning
, boolean indicating that the state is eithercleaning
orspot-cleaning
device.start()
, start the vacuum cleaner, returns a promisedevice.pause()
, pause the vacuum cleaner, returns a promisedevice.stop()
, stop the vacuum cleaner without returning to the charging station, returns a promisedevice.charge()
, tell the vacuum cleaner to stop and to return to the charging station, returns a promisedevice.spotClean()
, start spot cleaning, returns a promise
device.getHistory()
, get a history overview, returns a promise that includes the number of times the device has run and which days it has been active ondevice.getHistoryForDay(day)
, get details for the given day (fromgetHistory()
), return a promise that resolves an object containing a propertyhistory
which is all the times the vacuum was used on that day
device.find()
, make some noice so the vacuum can be founddevice.battery
, battery level in percentdevice.fanPower
, the fan power (vacuum) in percentdevice.setFanPower(number)
, update the fan power (vacuum) of the device, returns a promise