## Introduction to Xiaomi Home Assistant
The Xiaomi Home Assistant is a smart home system that integrates various devices, including the Mi Robot Vacuum, to provide a seamless and automated living experience. However, some users have reported inconsistencies in the battery level display between the Mi Home app and the Home Assistant interface.
## Problem Description
The issue lies in the fact that the battery level displayed on the Home Assistant interface remains constant at 54%, regardless of the actual battery level. Furthermore, the charging status is always shown as unknown. This inconsistent display can cause confusion and make it difficult for users to monitor the battery level of their devices.
## Steps to Reproduce the Issue
To reproduce the issue, follow these steps:
1. Open the Mi Home app and navigate to the device interface for the Mi Robot Vacuum Pro.
2. Open the Home Assistant backend and navigate to the device interface for the Mi Robot Vacuum Pro.
## Expected Behavior
The expected behavior is for the battery level to be displayed consistently across both the Mi Home app and the Home Assistant interface. The charging status should also be displayed accurately.
## Investigation and Solution
To resolve this issue, it is essential to investigate the communication protocol between the Mi Home app and the Home Assistant interface. The Xiaomi Home Integration version v0.4.3 may have a bug that causes the inconsistent battery level display. Updating the integration to the latest version or modifying the code to handle the battery level display correctly may resolve the issue.
## Conclusion
In conclusion, the inconsistent battery level display between the Mi Home app and the Home Assistant interface is a significant issue that needs to be addressed. By investigating the cause of the problem and implementing a solution, users can enjoy a more seamless and automated smart home experience with their Xiaomi devices.