-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Cannot connect to Xiaomi Mijia 1C vacuum #49188
Comments
xiaomi_miio documentation |
Hey there @rytilahti, @syssi, @starkillerOG, mind taking a look at this issue as its been labeled with an integration ( |
The xiaomi_miio vacuum integration supports currently only rockrobo vacuums (as implemented in |
https://github.com/rytilahti/python-miio/blob/master/miio/dreamevacuum_miot.py should contain the desired functionality; not sure though, why this has been implemented as a separate interface |
The simple reason is that the backend library has grown organically from supporting only the first generation rockrobo vacuums to allow controlling other devices using the same lower-level miio (and recently, miot) protocol. The library needs refactoring to expose a common interfaces per device types (such as #27268 (comment) (and the whole issue) is related to this problematic, even when it is about viomi instead of dreame vacuums. If you wish to work to make this happen, I suggest creating a PR to consolidate the common interfaces on the backend lib to have basic functionality available for all python-miio supported vacuums. I'm happy to help with code reviews and any questions. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
Hi,
I'm struggling to newly connect to my vacuum robot. I've tried several things, and don't know, if there's a in issue with the unrecognized model, unrecognized commands, or some problem with the connection.
I've tried the (apparently) old way, by providing host and token in the
configuration.yaml
file, but also providing them in the UI failed.The token extractor gives me this:
As the UI gave me some model unknown error, I've tried to edit/add the model to https://github.com/home-assistant/core/blob/dev/homeassistant/components/xiaomi_miio/const.py#L107
I was able to add the integration, but still HA doesn't seem to be able to connect.
ping
inside HA works.miiocli device --ip <IP> --token <TOKEN> info
gives meAnd
mirobo --ip <IP> --token <TOKEN> -d info
givesHowever,
miiocli dreamevacuummiot --ip <IP> --token <TOKEN> status
, as stated in rytilahti/python-miio#952, works fine!What is version of Home Assistant Core has the issue?
2021.4.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
xiaomi_miio
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
The text was updated successfully, but these errors were encountered: