## Introduction
The Xiaomi Home Assistant is a smart home system that integrates various devices, including window curtains. However, a bug has been reported where the window curtains cannot fully close or open, resulting in a 1% remainder when closed and only 99% when opened.
## Problem Description
The problem occurs when the user attempts to close or open the window curtains using the Xiaomi Home Assistant app. Despite the curtains being fully closed or open, the app displays a 1% remainder when closed and only 99% when opened. This issue affects the automation of the window curtains, causing them to malfunction.
## Reproduction Steps
To reproduce the issue, follow these steps:
1. Close the window curtains using the Xiaomi Home Assistant app.
2. Observe that the app displays "已打开 ⸱ 1%" (already open 1%) despite the curtains being fully closed.
3. Open the window curtains using the Xiaomi Home Assistant app.
4. Observe that the app displays "已打开 ⸱ 99%" (already open 99%) despite the curtains being fully open.
5. Attempt to automate the window curtains, but the issue will cause the automation to fail.
## Expected Behavior
The expected behavior is for the window curtains to fully close or open, with the app displaying 0% when closed and 100% when open.
## Reproduce Time
The issue was reproduced on 2025-1-7 at 18:04:00.
## Home Assistant Logs
Unfortunately, there are no available logs for this issue.
## Log Timezone
The log timezone is set to Asia/Shanghai.
## Home Assistant Core Version
The Home Assistant Core version is 2025.1.0.
## Home Assistant Operation System Version
The Home Assistant Operation System version is 13.0.
## Xiaomi Home Integration Version
The Xiaomi Home Integration version is v0.1.4.
## Additional Context
The device information is as follows:
* Device: dooya.curtain.m2
* Manufacturer: 杜亚
* Firmware: 2.1.3
## Conclusion
The bug where the window curtains cannot fully close or open is a significant issue that affects the automation of the curtains. It is essential to resolve this issue to ensure the smooth operation of the Xiaomi Home Assistant system. The issue can be reported to the developers, and a fix can be expected in future updates.