## Introduction to Xiaomi Home Assistant
The Xiaomi Home Assistant is a smart home automation system that integrates various devices to create a seamless and convenient living experience. However, users may encounter issues with automation, particularly when using the Mi Home app.
## Problem Description
A user has reported an issue where the automation set up through the Mi Home app does not execute when the router restarts at 4 am every day. Although the buttons trigger events and execute automation in Home Assistant, the automation set up in the Mi Home app remains inactive.
## Reproducing the Issue
To reproduce this issue, the user provided a screenshot of the Home Assistant log, which shows the automation execution history. However, the log does not display the 4 am restart event triggered by the router. The activity column in the log indicates that an event occurred, but the details are not available.
## Expected Behavior
The expected behavior is for the automation to execute without generating unnecessary events. The user aims to avoid events that may interfere with the automation process.
## Reproduce Time
The issue occurred on November 20, 2025, at 4:00:00 am.
## Home Assistant Logs
Unfortunately, the Home Assistant logs are not available for this issue.
## Log Timezone
The log timezone is set to Asia/Shanghai.
## Home Assistant Core Version
The Home Assistant Core version is 2025.11.2.
## Home Assistant Operation System Version
The Home Assistant Operation System version is 16.3.
## Xiaomi Home Integration Version
The Xiaomi Home Integration version is v0.4.4.
## Additional Context
There is no additional context provided for this issue.
## Conclusion
The Xiaomi Home Assistant automation issue highlights the importance of troubleshooting and resolving problems that may arise during the automation process. By understanding the root cause of the issue and analyzing the available data, users can find solutions to improve their smart home experience. In this case, the user can try updating the Xiaomi Home Integration version or adjusting the automation settings to resolve the issue.