-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
Found an unsupported model 'zhimi.fan.za5' for class 'FanZA5' #1344
Comments
the same here, the same verions HA and all. fans working via Xiaomi mobile app Logger: miio.device
|
The linked PR fixes the warning about an unsupported model. Those user ack timeout errors are difficult to fix as that is what the device is responding for the requests, and there is no easy way of knowing why that is happening: maybe the device is being accessed by other app? Maybe the device does not understand the command? Maybe the device is busy updating its data from sensors and doesn't want to respond? |
Ah, as it was working previously, I'll reopen this issue. Could you please try if |
yes, previously this fans working without any problems. Iam using this fans with mio integraton since few months with success and without any errors |
Same here. This just happened after a restart of home-assistant for me. Strangely before the restart it worked. |
Same here, the Fan worked without any problems before Version 3.0, since the new version the problem pops up. For fun ive loaded 2.x again, worked again. Must have smth to do with new HA version i.m.o. |
It is not that simple to debug such issues without a test device and it's already clear that there is an issue, but we need to narrow whether it is in the backend lib or in the integration itself. And that's why I asked if someone could try to control the device using the |
Im afk untill sunday evening, but then ill have a look at this tool. |
I noticed this issue right before I was heading to bed so I figured to contribute any info I had at that point. Anyways, I ran $ miiocli fanza5 --ip <REDACTED> --token <REDACTED> off
Powering off
WARNING:miio.device:Found an unsupported model 'zhimi.fan.za5' for class 'FanZA5'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
[{'did': 'power', 'siid': 2, 'piid': 1, 'code': 0}] Other commands work as well, tested a sample of all possible commands $ miiocli fanza5 --ip <REDACTED> --token <REDACTED> set_led_brightness 100
b6a set_led_brightness 100
Setting LED brightness to 100%
WARNING:miio.device:Found an unsupported model 'zhimi.fan.za5' for class 'FanZA5'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
[{'did': 'light', 'siid': 4, 'piid': 3, 'code': 0}] $ miiocli fanza5 --ip <REDACTED> --token <REDACTED> set_buzzer on
Turning on buzzer
WARNING:miio.device:Found an unsupported model 'zhimi.fan.za5' for class 'FanZA5'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
[{'did': 'buzzer', 'siid': 5, 'piid': 1, 'code': 0}] $ miiocli fanza5 --ip <REDACTED> --token <REDACTED> status
WARNING:miio.device:Found an unsupported model 'zhimi.fan.za5' for class 'FanZA5'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
Angle: 60
Battery Supported: False
Buttons Pressed: None
Buzzer: False
Child Lock: False
Delay Off Countdown: 0
Fan Level: 2
Fan Speed: 35
Humidity: 79
Ionizer: True
LED Brightness: 0
Mode: Normal
Oscillate: False
Power: on
Powersupply Attached: True
Speed RPM: 470
Temperature: 28.8 EDIT: Something's probably wrong with my battery. Checked your Miot mappings and confirmed they're correct. |
Confirmed, same issue here after upgrading to latest stable version (2022.3.1). |
i searched when issue starts ant this issue starts after update to HA 2022.3.1 |
Thanks for testing, @ikaruswill! That makes it more probable that the bug is somewhere in the homeassistant integration and not in the backend lib, helping to narrow where to search for the solution. |
Could some one change log level in home assistant to "debug" for integration and provide log with {'code': -9999, 'message': 'user ack timeout'} error. |
No probs, happy to help with any further information. |
@Kirmas Do you happen to know what's the integration's
|
yes. @ikaruswill thankyou for your help. |
I've redacted the IP addresses and any token-containing strings for privacy reasons but rest assured they are indeed of the fan itself. This entry is on its own.
Another possibly relevant entry
Looking up the IP address of my fan in the logs:
|
This made me think that the problem could be related to something else besides the upstream version bump of python-miio. Could it be that the device got a new firmware which doesn't like how the library is talking to it? That command is the very same that is used by miiocli to request the state, but if you wish, you could verify it by adding |
I dont think its related to firmware, my fan has no permission to connect to Internet (via setting in my router), i gave the permission after the problem showed up to test if it works via Xiaomi app. So it had no chance for an upgrade. |
I tried running
|
@rytilahti as for me command is different:
I don't know if both are correct |
after upgrade to 2022.3.2 problem still exsist |
* Simplifies the code as there is no need to define supported models separately * The keys from mappings are used as supported models, this will be extended to miio devices in the future, too. * Mass convert miot devices to use _mappings instead of mapping * Add tests to verify that deprecated 'mapping' is not used and the data structure is what is expected, re #1344 * As class properties are supported only from python3.9 onwards, the supported_models is now defined in the meta class.
* Simplifies the code as there is no need to define supported models separately * The keys from mappings are used as supported models, this will be extended to miio devices in the future, too. * Mass convert miot devices to use _mappings instead of mapping * Add tests to verify that deprecated 'mapping' is not used and the data structure is what is expected, re #1344 * As class properties are supported only from python3.9 onwards, the supported_models is now defined in the meta class.
* Simplifies the code as there is no need to define supported models separately * The keys from mappings are used as supported models, this will be extended to miio devices in the future, too. * Mass convert miot devices to use _mappings instead of mapping * Add tests to verify that deprecated 'mapping' is not used and the data structure is what is expected, re #1344 * As class properties are supported only from python3.9 onwards, the supported_models is now defined in the meta class.
Describe the bug
My Xiaomi SmartMi Standing Fan 3 integration worked untill 2022.2.x, with 2022.3.0 integration failed.
Message in integration:
{'code': -9999, 'message': 'user ack timeout'}
Errormessage in log:
Source: /usr/local/lib/python3.9/site-packages/miio/device.py:155
First occurred: 07:58:08 (19 occurrences)
Last logged: 08:20:41
Found an unsupported model 'zhimi.fan.za5' for class 'FanZA5'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
I checked the login datas, also the fan works in Xiaomi App.
System Health
The text was updated successfully, but these errors were encountered: