## Introduction
The Xiaomi Home Assistant is a popular home automation system that integrates with various devices, including routers. However, some users have reported an issue where the controller becomes unavailable after the router is rebooted. This problem has been persistent across different versions of the Xiaomi Home Assistant, from the initial release to version 0.4.
## Problem Description
The issue occurs when the router is set to reboot at regular intervals. After each reboot, the Xiaomi Home Assistant controller becomes unavailable, requiring a manual restart of the Home Assistant (HA) to resolve the issue. Meanwhile, other devices connected to the system automatically reconnect without any problems.
## Steps to Reproduce
To reproduce this issue, simply restart the router. This will cause the controller to become unavailable, and the user will need to restart the HA to restore functionality.
## Expected Behavior
The expected behavior is for the system to automatically reconnect after the router reboot, without requiring manual intervention.
## Reproduce Time
The issue was last reproduced on 2025-07-28 at 11:14.
## Home Assistant Logs
The system logs have been sent via email for further analysis.
## Log Timezone
The logs are in the Asia/Shanghai timezone.
## Home Assistant Core Version
The Home Assistant Core version is 2025.7.3.
## Home Assistant Operation System Version
The Home Assistant Operation System is running on Docker.
## Xiaomi Home Integration Version
The Xiaomi Home Integration version is 0.4.
## Additional Context
No additional context is available at this time.
Xiaomi Home Assistant Issue: Controller Becomes Unavailable After Router Reboot