-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Added support for Roidmi Eve #1072
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I did a first round of reviews and left some specific comments inline, but on generla level:
- Please add descriptive docstrings to all properties and methods belonging to the public API
- Remove commented out code (except for the variable mappings, in case someone wants to look into those later)
- Please add (at least)
is_on
,is_paused
,got_error
from https://github.com/rytilahti/python-miio/blob/master/miio/vacuumcontainers.py#L125 - the long term goal is to make all vacuum implementations to have a common interface, so this will be useful for that.
Thank you very much for your comments. I really like your long term goal of a common interface. |
e23a45b
to
e207383
Compare
I have updated the code to be more like vacuumcontainers.py (before it was closer to dreamevacuum_miot.py). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1072 +/- ##
==========================================
+ Coverage 75.43% 76.07% +0.64%
==========================================
Files 74 75 +1
Lines 8372 8722 +350
Branches 743 747 +4
==========================================
+ Hits 6315 6635 +320
- Misses 1875 1905 +30
Partials 182 182 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some more comments, I think it's good to go after this round but be aware that the API will change for the next major release to allow consolidating the common functionalities among all supported vacuums :-)
While doing the review I did some googling and started to wonder if this PR is for "Roidmi Eve Plus" or is there also a version without the "plus"? If that's the same one, this might be one option when it's time to upgrade away from my gen1 rockrobo.. What's your opinion about the device?
Thank you for the comments. I have added comments on a few points, the rest of the points look very clear and I hope to get time to solve them within a week. |
I have the "PLUS" model. The manual covers both models. The robot is the same, the "PLUS" is about the base. The "PLUS" base is with dust-collection. The manual shows a simple base for the non-PLUS model (but I have not seen the non-PLUS version for sale) I am very satisfied with Roidmi Eve Plus. The largest draw back I see is missing Home assistant support, but with this pull request and the comming uniform vaccum interface, I think that will be solved. |
I have solved (most of) your comments, but also added a few extra functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All set, thanks @martin9000andersen!
I see the subject is a bit frozen :D |
I have added support for robot Roidmi Eve (Robot vacuum cleaner).
Many status values are implemented and many features are implemented e.g.:
start-clean, stop, go-home, set_sound_volume, set_cleaning_mode, set_sweep_type, set_work_station_freq, start_dust, etc.
I do not know the syntax to activate cleaning of specific rooms, any input on how to make the function "start_room_sweep_unknown" work is highly appreciated.