Comments (9)
Thanks for your report and you are welcome. The error codes I'm using are from the official documentation (vacuum_cleaner-EN.pdf), and from the looks of it there exists only 19 of them (the enumeration in that link is not just about the error codes but other error situations too). Have you seen more of them in practice?
Thansk for the list of states, a couple of those were still missing and I will add them at some point.
from python-miio.
The PDF is outdated / written before firmware 3.3.9.xxx. I have only read about them (20-24).
No error jet on my robot :)
from python-miio.
Ah, that may indeed be the case, I just overlooked and was misled as the format in that list was not the same as for earlier (they are not explicitly talking about error codes).
from python-miio.
Is it possible to have a "def status_raw..." that gives the numbers only (with true/false for dnd, is_leaning,..)?
My pi kivy touchscreen needs it's on textstrings, button on/off info
from python-miio.
There are state_code
and error_code
in VacuumStatus
which return the raw numbers, is that enough for your usecase? The raw data itself is also available through the data
property of that object (if you want to read dnd_enabled
, which is the only one besides msg_ver
which is not exposed. I did not do that as its value was not during my tests the same as the one reported by dnd
call, but it may have been a glitch..
from python-miio.
I will test it. Thx
from python-miio.
You're right state_code
and error_code
is what i searched for! And dnd
and in_cleaning
do not work.
But instead of in_cleaning
i can ask for state_code = 5 || 11
from python-miio.
Nice to hear you got it working. Indeed, there's is_on
already which checks for the code 5, maybe it should be extended to cover also the spot cleaning and manual mode. For DND it will get updated to the status reports at some point, but the logic itself is not clear to me. There is a separate dnd
command for getting a more precise dnd information.
from python-miio.
My earlier comment fixes this and makes state
and error
not to crash if a definition is missing. Thanks!
from python-miio.
Related Issues (20)
- v6: Multiple Roborock devices swap attributes HOT 2
- Unsupported Aqara Double Switch
- xiaomi vacuum cleaner s12 HOT 2
- Roborock S8 - roborock.vacuum.a51 HOT 1
- Roborock S8 is roborock.vacuum.a51
- Request new Vacuum Mijia Robot Vacuum M30 Pro HOT 1
- Xiaomi trouver lds finder doesn't work HOT 3
- No set_voice implemented for dreame.vacuum.r2205
- The response time to get the current power usage varies a lot HOT 5
- ERR: miiocli genericmiot --ip 192.168.5.x --token xxxx status HOT 10
- O puedo conectar al wi fi mi xiamo home
- Question about how to Set Voice dreame.vacuum.r2211o
- Unable to get status from fanp5 using the genericmiot command HOT 2
- Unsupported model 'roborock.vacuum.a62'
- get_properties of xiaomi.vacuum.c107 timeout falsely if max_properties >= 4 when get property `vacuum-map:clean-record`
- Found an unsupported model 'roborock.vacuum.a70'
- Roidmi Eva (roidmi.vacuum.v66) with genericmiot HOT 3
- Found an unsupported model 'lumi.acpartner.v2'
- suport xiaomi.controller.86v1
- I can't run set-voice command dreame.vacuum.p2041o HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-miio.