Xiaomi Home Assistant Bug Fix: Resolving Mode Control Issues with aupu.bhf_light.s368m
in Post with 0 comment

## Introduction to Xiaomi Home Assistant
The Xiaomi Home Assistant is a smart home system that integrates various devices, including the aupu.bhf_light.s368m model. This system is designed to provide users with a convenient and automated way to control their home appliances.
## The Bug: Mode Control Loss with aupu.bhf_light.s368m
A recent issue has been reported where the aupu.bhf_light.s368m model loses its mode control after a version update. This results in the loss of control entities for the device, affecting not only the aupu.bhf_light.s368m but also other devices such as the Mi Air Conditioner.
## Reproducing the Bug
To reproduce this bug, users need to update their version number. After the update, the aupu.bhf_light.s368m will lose its control entities, and the Mi Air Conditioner will also lose its air conditioning entities. Removing the aupu.bhf_light.s368m from the configuration will restore the Mi Air Conditioner to normal.
## Expected Behavior
The expected behavior is for the aupu.bhf_light.s368m to maintain its mode control after a version update. This will ensure that the device and other affected devices, such as the Mi Air Conditioner, function properly.
## Home Assistant Logs
The Home Assistant logs provide valuable information for debugging the issue. The logs indicate an error while setting up the xiaomi_home platform for climate, specifically with the 'PtcBathHeater' object. The error message points to a missing attribute '__attr_fan_modes'.
## Log Timezone and Home Assistant Core Version
The log timezone is set to Asia/Shanghai, and the Home Assistant Core version is 2025.3.4. The Home Assistant Operation System version is 15.1, and the Xiaomi Home Integration version is v0.2.4.
## Additional Context
Additional context is provided through images that show the issue in more detail. These images are available on GitHub.
## Conclusion
In conclusion, the bug affecting the aupu.bhf_light.s368m model in the Xiaomi Home Assistant system is a significant issue that needs to be addressed. By understanding the cause of the problem and the expected behavior, developers can work towards providing a solution to restore the mode control for the affected devices. The information provided in the Home Assistant logs, along with the additional context, will be crucial in resolving this issue and ensuring that the Xiaomi Home Assistant system functions as intended.

The article has been posted for too long and comments have been automatically closed.