aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.86k stars 353 forks source link

alternative for aholstenson/miio #214

Open nicoh88 opened 5 years ago

nicoh88 commented 5 years ago

I am looking for an alternative to this repository for node. I need it, to control all xiaomi/roborock vacuums for a homebridge-plugin. Here only the well-known mi robot (v1) and roborock s50 / s55 (v2) are supported. Roborock c10 and e20 / e35 would be good, too.

Does anyone know an alternative?

rytilahti commented 5 years ago

I have no knowledge of this project's protocol handling, but is python-miio working fine for those vacuums? If yes, see https://github.com/rytilahti/python-miio/pull/408 (shortly put, the protocol on non-linux based vacuums expect an empty "params" on requests when no parameters are required whereas the linux-based ones do not do that). Otherwise, you could also try to prefix your commands like done in https://github.com/rytilahti/python-miio/pull/372

HTH, I think it would be really appreciated if you are to prepare a PR for this project to fix support for those vacuums (when you manage to get them working :-).