Troubleshooting Xiaomi Home Assistant: Local Mode Issues with Wi-Fi Devices
in Post with 0 comment

## Introduction to Xiaomi Home Assistant
The Xiaomi Home Assistant is a central gateway that enables local control and monitoring of various devices, including those connected via Wi-Fi and Bluetooth Low Energy (BLE). This article focuses on troubleshooting issues related to Wi-Fi devices in local mode when the internet connection is lost.

## Problem Description
The central gateway, xiaomi.gateway.hub1 with firmware 3.4.0_0023, supports local operating mode for Wi-Fi-connected devices. However, devices such as the xiaomi.kettle.ym3pro and dmaker.fan.p23, which can update their status using push messages over a local connection, cease to update their states when the internet is disconnected. This issue persists despite the devices working correctly in local mode when the internet is available.

## Identifying the Problem
From the logs, it's evident that when the internet is turned off, these devices continue to update their statuses for a brief period before stopping. This suggests that the update functionality works until the central gateway switches to "Local" mode, after which no data from the devices is recorded in the logs.

## Reproducing the Issue
To reproduce the issue, simply disconnect the internet connection. The devices will stop updating their statuses, demonstrating the problem.

## Expected Behavior
The expected outcome is for devices to update their statuses completely locally, without requiring an internet connection. This is particularly important for ensuring continuous functionality and monitoring of devices in scenarios where internet availability might be unreliable or absent.

## Troubleshooting Steps
1. **Check Integration Settings**: Ensure that both LAN Control and LAN Subscription options are disabled in the integration settings, as these could potentially affect the local mode functionality.
2. **Review Device Compatibility**: Verify that the devices in question are compatible with the Xiaomi Home Assistant and support local mode. Some devices might have specific requirements or limitations in local mode.
3. **Update Firmware and Software**: Ensure that the central gateway firmware and the Home Assistant software are up to date. Updates often include fixes for known issues and may resolve the problem.
4. **Inspect Logs for Clues**: Carefully examine the logs provided for any error messages or patterns that could indicate why the devices stop updating their statuses in local mode without an internet connection.
5. **Consult Documentation and Community Forums**: Refer to the official Xiaomi Home Assistant documentation and community forums for any known issues, patches, or workarounds related to local mode functionality with Wi-Fi devices.

## Conclusion
The troubleshooting process for the Xiaomi Home Assistant's local mode issues with Wi-Fi devices involves a systematic approach to identify and potentially resolve the problem. By following the steps outlined and considering the logs and documentation available, users should be able to either fix the issue or gather sufficient information to seek further assistance from Xiaomi support or the Home Assistant community.

## Additional Resources
- **Home Assistant Documentation**: For detailed information on setting up and troubleshooting the Xiaomi Home Assistant integration.
- **Xiaomi Support**: For specific queries regarding the central gateway or devices.
- **Community Forums**: For discussing issues with other users and potentially finding community-developed solutions.

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