## Introduction to Xiaomi Home Assistant Bug
The Xiaomi Home Assistant is a smart home system that allows users to control their smart devices, including lights, thermostats, and security cameras. Recently, a bug has been reported where the `number:setvalue` action does not set the brightness of a light to the specified value, but instead increases the brightness by the specified value.
## Step-by-Step Reproduction of the Bug
To reproduce this bug, follow these steps:
1. Open the HA developer tools and navigate to the 'Actions' tab.
2. Select the `number:setvalue` action.
3. Choose the light's brightness entity as the target.
4. Set the value to 10.
5. Click 'Execute' to run the action.
## Expected vs Actual Behavior
The expected behavior is that the light's brightness should be set to 10. However, the actual behavior is that the light's brightness increases by 10.
## Details of the Bug
* Date and Time: 2025-06-17 16:00:00
* Home Assistant Logs: No response
* Log Timezone: Asia/Shanghai
* Home Assistant Core Version: 2025.5.0
* Home Assistant Operation System Version: 2025.5.0
* Xiaomi Home Integration Version: v0.3.2
## Conclusion
This bug needs to be fixed to ensure that the Xiaomi Home Assistant works as expected. The development team should investigate and resolve this issue to provide a better user experience.
## Recommendations
To fix this bug, the development team should check the `number:setvalue` action code and ensure that it correctly sets the brightness value instead of increasing it. Additionally, the team should test the action with different values to ensure that it works as expected.
## Future Improvements
To improve the Xiaomi Home Assistant, the development team could add more features, such as the ability to set the brightness to a specific value range or to adjust the brightness based on the time of day.