## Introduction
The Xiaomi Home Assistant is a popular home automation system that allows users to control various devices in their homes. However, some users have reported an issue with the fan speed control, where the speed can only be set to 0%, 25%, 50%, 75%, or 100%. This issue has been reported by several users, and it seems to be related to the Xiaomi Home Integration version 0.4.0.
## Description of the Issue
The issue is that the fan speed can only be set to specific percentages, and it is not possible to set a custom speed between these values. For example, if a user tries to set the fan speed to 35%, it will automatically be set to 50%. This can be frustrating for users who want to have more control over their fan speeds.
## Steps to Reproduce the Issue
To reproduce the issue, users can follow these steps:
1. Add a dmaker.fan.p15 device to the Xiaomi Home Assistant via the integration.
2. Go to the fan entity under the device.
3. Try to set the fan speed to a custom percentage, such as 35%.
4. Notice that the fan speed will be set to the nearest available percentage, which is 50% in this case.
## Expected Behavior
The expected behavior is that users should be able to set a custom fan speed percentage, rather than being limited to specific increments.
## Log Information
The log information for this issue is as follows:
* Home Assistant Core Version: 2025.7.4
* Home Assistant Operation System Version: 16.0
* Xiaomi Home Integration Version: 0.4.0
* Log Timezone: CEST — Central European Summer Time
* Reproduce Time: 2025-08-02 09:45
## Conclusion
The issue with the fan speed control in the Xiaomi Home Assistant is a frustrating problem that limits the user's ability to control their devices. It is hoped that this issue will be resolved in future updates to the Xiaomi Home Integration. In the meantime, users can try to find workarounds or use other devices that do not have this limitation.
Issue with Xiaomi Home Assistant: Fan Speed Control Limited to 25% Increments