| Package | Description |
|---|---|
| de.sg_o.app.miio.base | |
| de.sg_o.app.miio.base.messages | |
| de.sg_o.app.miio.vacuum | |
| de.sg_o.app.miio.yeelight |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
Device.configureRouter(java.lang.String ssid,
java.lang.String password) |
Set the deviced network connection up.
|
boolean |
Device.configureRouter(java.lang.String ssid,
java.lang.String password,
int uid) |
|
java.lang.String |
Device.firmware() |
Get the devices firmware version.
|
org.json.JSONObject |
Device.info() |
Get the device info from the device
|
java.lang.String |
Device.model() |
Get the devices model id.
|
java.lang.String |
Device.send(java.lang.String payload) |
Send an arbitrary string as payload to the device.
|
Response |
Device.send(java.lang.String method,
java.lang.Object params) |
Send a command to a device.
|
boolean |
Device.sendOk(java.lang.String method) |
Send a command to a device without parameters.
|
boolean |
Device.sendOk(java.lang.String method,
java.lang.Object params) |
Send a command to a device.
|
org.json.JSONArray |
Device.sendToArray(java.lang.String method) |
Send a command to a device without parameters.
|
org.json.JSONArray |
Device.sendToArray(java.lang.String method,
java.lang.Object params) |
Send a command to a device.
|
org.json.JSONObject |
Device.sendToObject(java.lang.String method) |
Send a command to a device without parameters.
|
org.json.JSONObject |
Device.sendToObject(java.lang.String method,
java.lang.Object params) |
Send a command to a device.
|
boolean |
Device.update(java.lang.String url,
java.lang.String md5) |
Command the device to update
|
int |
Device.updateProgress() |
Request the update progress as a percentage value from 0 to 100
|
java.lang.String |
Device.updateStatus() |
Request the update status.
|
| Constructor | Description |
|---|---|
Response(byte[] message,
Token token) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
Vacuum.addTimer(VacuumTimer timer) |
Add a new scheduled cleanup.
|
boolean |
Vacuum.cleanArea(float x0,
float y0,
float x1,
float y1,
int passes) |
Clean the specified area on the map.
|
boolean |
Vacuum.cleanArea(java.awt.Point bottomLeft,
java.awt.Point topRight,
int passes) |
Clean the specified area on the map.
|
boolean |
Vacuum.cleanAreaFromMap(int x0,
int y0,
int x1,
int y1,
int passes) |
Clean the specified area on the map.
|
VacuumConsumableStatus |
Vacuum.consumableStatus() |
Get the vacuums consumables status.
|
boolean |
Vacuum.disableDoNotDisturb() |
Disable the do not disturb timer.
|
boolean |
Vacuum.findMe() |
Make the vacuum make a sound to find it
|
VacuumCleanup[] |
Vacuum.getAllCleanups() |
Get an array with the details of all cleanups.
|
org.json.JSONObject |
Vacuum.getCarpetModeState() |
Get the current carpet cleaning settings.
|
VacuumDoNotDisturb |
Vacuum.getDoNotDisturb() |
Get the current do not disturb settings from the device
|
int |
Vacuum.getFanSpeed() |
Get the vacuums current fan speed setting.
|
java.lang.String |
Vacuum.getSerialnumber() |
Get the vacuums serial number.
|
int |
Vacuum.getSoundVolume() |
Get the current volume.
|
VacuumTimer[] |
Vacuum.getTimers() |
Get all stored scheduled cleanups.
|
java.time.ZoneId |
Vacuum.getTimezone() |
Get the vacuums current timezone.
|
long |
Vacuum.getTotalCleanedArea() |
Get the vacuums total cleaned area.
|
long |
Vacuum.getTotalCleaningTime() |
Get the total time the vacuum has been cleaning.
|
long |
Vacuum.getTotalCleans() |
Get the total number of cleanups the vacuum has performed.
|
boolean |
Vacuum.goTo(float x,
float y) |
Go to the specified position on the map.
|
boolean |
Vacuum.goTo(java.awt.Point p) |
Go to the specified position on the map.
|
boolean |
Vacuum.goToMapPosition(int x,
int y) |
Go to the specified position on the map.
|
boolean |
Vacuum.home() |
Send the vacuum to its docking station.
|
VacuumSounpackInstallState |
Vacuum.installSoundpack(java.lang.String url,
java.lang.String md5,
int soundId) |
Install a new soundpack to the device.
|
boolean |
Vacuum.manualControlMove(float rotationSpeed,
float speed,
int runDuration) |
Manually control the robot
|
boolean |
Vacuum.manualControlStart() |
Enable manual remote controls.
|
boolean |
Vacuum.manualControlStop() |
Disable manual remote controls.
|
boolean |
Vacuum.pause() |
Pause the cleanup.
|
boolean |
Vacuum.removeTimer(VacuumTimer timer) |
Delete a scheduled cleanup.
|
boolean |
Vacuum.resetConsumable(VacuumConsumableStatus.Names consumable) |
Reset a vacuums consumable.
|
boolean |
Vacuum.setCarpetMode(boolean enabled,
int high,
int low,
int integral,
int stallTime) |
Change the carped cleaning settings.
|
boolean |
Vacuum.setDoNotDisturb(VacuumDoNotDisturb dnd) |
Set the do not disturb timer.
|
boolean |
Vacuum.setFanSpeed(int speed) |
Set the vacuums fan speed setting.
|
boolean |
Vacuum.setSoundVolume(int volume) |
Set the vacuums volume.
|
boolean |
Vacuum.setTimerEnabled(VacuumTimer timer) |
Enable or disable a scheduled cleanup.
|
boolean |
Vacuum.setTimezone(java.time.ZoneId zone) |
Set the vacuums timezone
|
VacuumSounpackInstallState |
Vacuum.soundpackInstallStatus() |
Get the current soundpack installation status.
|
boolean |
Vacuum.spotCleaning() |
Clean the area around the vacuums current position
|
boolean |
Vacuum.start() |
Start the cleanup.
|
VacuumStatus |
Vacuum.status() |
Get the vacuums status.
|
boolean |
Vacuum.stop() |
Stop the cleanup.
|
boolean |
Vacuum.testSoundVolume() |
Make the vacuum produce a test sound.
|
| Constructor | Description |
|---|---|
VacuumTimer(org.json.JSONArray timer) |
Generate a new vacuum timer object from the response of a device.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
Light.getBrightness() |
|
int |
Light.getColorTemperature() |
|
int |
Light.getDeviceMode() |
|
int |
Light.getHue() |
|
int |
Light.getIntProp(Prop.Names prop) |
Get a single property value and try to convert it to an int.
|
java.lang.String |
Light.getName() |
|
java.util.Map<Prop.Names,java.lang.String> |
Light.getProps(Prop.Names[] props) |
Get several property values at once from the device.
|
org.json.JSONArray |
Prop.getRequestArray() |
|
java.awt.Color |
Light.getRGB() |
|
int |
Light.getSaturation() |
|
java.lang.String |
Light.getSingleProp(Prop.Names prop) |
Get a single property value from the device.
|
int |
Light.getTimeUntilPowerOff() |
|
boolean |
Light.isOn() |
|
java.util.Map<Prop.Names,java.lang.String> |
Prop.parseResponse(org.json.JSONArray response) |
Parse the response from the device and return a map containing the property names and their values.
|
boolean |
Light.powerOffAfterTime(int minutes) |
Power the device off after some time.
|
boolean |
Light.setAsDefault() |
Set the current settings as the default value that will be restored after a power loss.
|
boolean |
Light.setBrightness(int brightness,
boolean smoothChange,
int duration) |
|
boolean |
Light.setColorTemperature(int temperature,
boolean smoothChange,
int duration) |
|
boolean |
Light.setHSV(int hue,
int saturation,
boolean smoothChange,
int duration) |
|
boolean |
Light.setName(java.lang.String name) |
|
boolean |
Light.setPower(boolean on,
boolean smoothChange,
int duration) |
|
boolean |
Light.setRGB(java.awt.Color c,
boolean smoothChange,
int duration) |
|
boolean |
Light.stopPowerOffAfterTime() |
Prevent the device from powering off after some time.
|
boolean |
Light.togglePower() |
Copyright © 2018. All rights reserved.