-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Countdown timer for fan zhimi.fan.za4 should be in minutes #1786
Comments
Feel free to create a PR to fix it! I was hoping it would fix itself when |
Thanks for the quick response!
If you are open for PR's, I'm glad to contribute where I can 😄.
I tried that (after installing the latest development branch from GitHub as described in the README), but that doesn't seem to work 😐:
I also tried it on my other fan |
Ohh, za4 is indeed using the zhimi fan instead of fanmiot for controls, so that's expected. python-miio/miio/integrations/fan/dmaker/fan_miot.py Lines 86 to 98 in ecdabcd
PRs are always welcome! Alas, the library has been undergoing a major rewrite to make it easier to integrate the devices to homeassistant, but I haven't been able to find free time to push this effort onwards. If you don't mind, feel free to try adding decorators defining metadata about the sensors & settings for the zhimi fan to see if there are some improvements needed to the interfaces. The descriptors marked with these decorators will be used in the future to expose the information to homeassistant (and other downstreams) using a common interface, one example of adding such for viomi vacuum (and how the result looks like in a development fork) can be seen in #1559. |
This change fixes rytilahti#1786.
Describe the bug
As mentioned in home-assistant/core#91824 the countdown timer for
zhimi.fan.za4
is currently in seconds, but this should be in minutes.Version information (please complete the following information):
Device information:
If the issue is specific to a device [Use
miiocli device --ip <ip address> --token <token> info
]:To Reproduce
Steps to reproduce the behavior:
Expected behavior
The countdown timer should be set in minutes and retrieved in minutes
Maybe an exception should be made here?:
python-miio/miio/integrations/fan/zhimi/fan.py
Lines 171 to 174 in ecdabcd
The text was updated successfully, but these errors were encountered: