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

Add compatibility with latest miio integration #40

Open
codystoica opened this issue Jan 9, 2023 · 1 comment
Open

Add compatibility with latest miio integration #40

codystoica opened this issue Jan 9, 2023 · 1 comment

Comments

@codystoica
Copy link

Hello,
It would help the community if you could integrate this model into this repository.
This submodel is integrated in latest python-miio:
Vacuum xiaomi mop 2 pro+ (dreame.vacuum.p2041o);
Thank you!

@cth35
Copy link

cth35 commented Feb 10, 2024

Hello, may be just change Vaccum to DreameVacuum in miio_server.py (2 occurences line 17 and 94).

And update pip_req.txt with recent version :

android-backup==0.1.0
asn1crypto==0.23.0
attrs==23.2.0
cffi==1.15.1
click==8.1.7
construct==2.10.68
cryptography==37.0.2
enum-compat==0.0.2
gevent==1.4.0
greenlet==0.4.15
idna==2.6
msgpack-python==0.4.8
netifaces==0.11.0
pretty-cron==1.0.2
pycparser==2.21
pycrypto==2.6.1
python-miio==0.5.12
pytz==2017.3
six==1.11.0
typing==3.6.2
zeroconf==0.131.0

I did this for my old model (viomi.vacuum.v7) and it works (changed Vaccum into ViomiVaccum in my case).

It can be adapted for any Vaccum devices supported by python-miio. Just have a look the the class of your model in python-miio/tree/master/miio/integrations/

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

2 participants