Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Roborock S6 MaxV? #293

Open
benjhess opened this issue Aug 31, 2020 · 3 comments
Open

Support for Roborock S6 MaxV? #293

benjhess opened this issue Aug 31, 2020 · 3 comments

Comments

@benjhess
Copy link

Device type is currently unknown:

$ miio discover
 INFO  Discovering devices. Press Ctrl+C to stop.

Device ID: ---MY-ID---
Model info: Unknown
Address: xxx.xxx.xxx.xxx
Token: ???
Support: Unknown

... therefore clean cmd does not work:

code:

const device = await miio.device({address, token});
const isVac = device.matches('type:vacuum');
console.log('is vac:', isVac);
await device.clean();

output:

is vac: false
TypeError: device.clean is not a function

Is there any way to hint the device type to miio and use the clean function?

@benjhess
Copy link
Author

The problem is the missing device mapping in miio/lib/models.js:

...
'roborock.vacuum.a10': Vacuum,
...

@benjhess
Copy link
Author

Seems like the maintainer of this repo is no longer maintaining it. Most active development is now found in: https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum

Also includes support for S6 MaxV...

@benjhess
Copy link
Author

New lib can also clean rooms. Usage is not documented, as miio fork is only used in homebridge plugin:

const address = '...your vac lan ip here';
const token = '...your token here';
const device = await miio.device({address, token});
const roomMap = await device.getRoomMap();
const roomIds = roomMap.map(c => c[0]);
const firstRoomId = roomIds.shift();
await device.cleanRooms([firstRoomId]);
await device.destroy();

BTW: Device token can be obtained by using com.xiaomi.smarthome-5.4.49.apk. Token is found in Log file under "SmartHome/logs/plug_DeviceManager/*.txt" on your android device...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant