Comments (2)
It's because we don't know what's "device id" nor "serial" for real. To my understanding some people have their robots with the same "device id" as I do, meaning that it's possible to detect them nicely, but some others do not (different hardware/firmware?).
In order to make it easy for people to try the lib & script out it's easier to force a hello packet during the initial connection. This could be optimized to avoid sending the discovery and to reduce the network traffic, but currently I doubt it's worth it.
For users of the library part it's possible to just use the context manager to execute multiple commands without requiring separate discovery calls:
with Vacuum('123.123.123.123') as v:
if v.status() == 12: # error
v.home() # return home
from python-miio.
sure, thanks for the explanation. :)
from python-miio.
Related Issues (20)
- 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
- Xiaomi Smart Standing fan 2 Pro, model: dmaker.fan.p33 . HOT 3
- Roborock Qrevo Does not drive to map zero point (command=goto&option=28000%2028000)
- Unable to decode chuangmi.camera.ipc013d pcap file HOT 2
- Roborock Qrevo roborock.vacuum.a75
- Add suppport for viomi.vacuum.v13 HOT 1
- 小米 mini led s pro 75 HOT 1
- 小米 MINI LED S Pro 如何快速切换 HDMI HOT 1
- Roborock S7 Max Ultra (roborock.vacuum.a65)
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.