Skip to content

Fan level value is capped at 4 in MiHome app, even when set to 100% via integration #1063

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

Open
yes2310 opened this issue May 3, 2025 · 0 comments

Comments

@yes2310
Copy link

yes2310 commented May 3, 2025

Describe the Bug / 描述问题

When controlling my fan via the integration, setting fan_level (or fan percentage) to any value above 4 (e.g. 100%) only results in level 4 being applied in the MiHome app.

This issue seems to affect devices like zhimi.fan.v3 or dmaker.fan.p5.
It appears that the integration might be incorrectly mapping percentage values to discrete fan levels supported by the device.

How to Reproduce / 复现步骤

1.	Set fan level to 100% via the integration (e.g. Home Assistant, or any direct API call).
2.	Open MiHome app.
3.	Observe that the fan level is shown as 4, not 100% or a higher level.

Expected Behavior / 预期结果

Setting fan level to 100% should map to the maximum fan level supported by the device (not arbitrarily capped at level 4).

Reproduce Time / 问题复现的时间点

2025-05-03

Home Assistant Logs / 系统日志

No response

Log Timezone / 日志时区

Asia

Home Assistant Core Version / Home Assistant Core 版本

All software is up to date

Home Assistant Operation System Version / Home Assistant Operation System 版本

All software is up to date

Xiaomi Home Integration Version / 米家集成版本

All software is up to date

Additional Context / 其他说明

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant