The Xiaomi Home Assistant is experiencing a bug where binary sensor and sensor entities are being created repeatedly. This issue occurs when the user deletes their account and reinitializes the system, then enables the binary sensor feature. As a result, duplicate entities are created with the same 'p' sequence number. The expected behavior is that these entities should not be created repeatedly. The issue was first discovered on January 17, 2025, at 23:20. The system logs show that the electric rice cooker creates six entities, but the specification indicates that there should only be five. The logs also reveal that the duplicate entities have the same 'p' sequence number. This bug is affecting the Xiaomi Home Assistant's performance and causing inconsistencies in the system. To resolve this issue, it is essential to identify the root cause of the problem and implement a fix to prevent the duplicate creation of entities. The Home Assistant Core version is 2025.1.0, and the Xiaomi Home Integration version is v0.1.5b2. Further investigation is needed to determine the exact cause of this bug and develop a solution to ensure the smooth operation of the Xiaomi Home Assistant.
Xiaomi Home Assistant Bug: Duplicate Creation of Binary Sensor and Sensor Entities