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

Can't use Xiaomi Miio integration #76255

Closed
patricksmms opened this issue Aug 4, 2022 · 6 comments
Closed

Can't use Xiaomi Miio integration #76255

patricksmms opened this issue Aug 4, 2022 · 6 comments

Comments

@patricksmms
Copy link

The problem

When I try to configure the integration, to control my Xiaomi Smart Standing Fan 2, I get an error 'code': -9999.

Repro steps:

  • Add Xiaomi Miio integration
  • Enter credentials, cloud server country according to documentation (de in my case, as I'm in Czechia)
  • Shows an error "The device model is not known, not able to setup the device using config flow."
  • Choose zhimi.fan.za3
  • Submit

Result:

  • No device is shown, but instead I get the error "Retrying setup: {'code': -9999, 'message': 'user ack timeout'}"

Expected:

  • The device is shown

Note:
I can control it with the phone without issues, and I can ping it device running home assistant.

What version of Home Assistant Core has the issue?

2022.7.7

What was the last working version of Home Assistant Core?

2022.7.7

What type of installation are you running?

Home Assistant Container

Integration causing the issue

xiaomi_miio

Link to integration documentation on our website

https://www.home-assistant.io/integrations/xiaomi_miio#xiaomi-air-purifier-air-humidifier-and-standing-fan

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-08-04 21:38:41 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Mi Smart Standing Fan 2' for xiaomi_miio integration not ready yet: {'code': -9999, 'message': 'user ack timeout'}; Retrying in background

Additional information

I can see the device on the cli, running miiicli cloud list:
== Mi Smart Standing Fan 2 (Device online ) ==
Model: dmaker.fan.p18
Token: 419514e2f3733e6a844dbeae2958f176
IP: 192.168.11.17 (mac: 54:48:E6:49:88:5E)
DID: 250819038
Locale: de

I tried to configure manually, using this data, resulted on the same error.

@probot-home-assistant
Copy link

Hey there @rytilahti, @syssi, @starkillerOG, @bieniu, mind taking a look at this issue as it has been labeled with an integration (xiaomi_miio) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)


xiaomi_miio documentation
xiaomi_miio source
(message by IssueLinks)

@patricksmms
Copy link
Author

OK, I just understood that the problem is that this integration doesn't support yet the model I have 'dmaker.fan.p18'.

Would be nice to have it added, instead of having to install https://github.com/syssi/xiaomi_fan

@rytilahti
Copy link
Member

Yeah, the current implementation requires adding all supported devices also inside homeassistant. This upstream issue tries to solve that by providing a nicer way to initialize the instances for all known to be supported devices: rytilahti/python-miio#1328

@patricksmms
Copy link
Author

@rytilahti why did you close the issue, if it is still a work in progress?

@rytilahti
Copy link
Member

@patricksmms ah, sorry about that. So, I closed this because it's a wishlist item which are generally not accepted in the issue tracker. But considering I didn't close the another similar one (#73496), you can follow that to keep up with the status. I modified its title to add mention about p18, so we can track both of them in a single issue.

@patricksmms
Copy link
Author

Ok. Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants