## Introduction
The Xiaomi Home Assistant has been reported to have a bug that affects the accuracy of energy consumption calculations. This issue is specifically related to the Mi Home Smart Air Switch, which is manufactured by Shanghai Lianxin Intelligent Technology Co., Ltd.
## Problem Description
The problem arises when the Xiaomi Home Assistant displays incorrect values for current, voltage, and power consumption. The values displayed are 100 times, 10 times, and 100 times higher than those shown in the Mi Home app, respectively. This discrepancy leads to severe errors in energy consumption calculations within the Home Assistant.
## Reproduction Steps
To reproduce this issue, refer to the images uploaded in the problem description. These images provide visual evidence of the problem and can be used to identify the root cause of the issue.
## Expected Behavior
The expected behavior is that the Xiaomi Home Assistant should display accurate values for current, voltage, and power consumption, consistent with those shown in the Mi Home app.
## Reproduce Time
The problem was first observed on May 5, 2025, at 6:30.
## Home Assistant Logs
Unfortunately, there is no response available for the Home Assistant logs.
## Log Timezone
The log timezone is set to Shanghai.
## Home Assistant Core Version
The Home Assistant Core version is 2024.12.5.
## Home Assistant Operation System Version
The Home Assistant Operation System version is 20241127.8.
## Xiaomi Home Integration Version
The Xiaomi Home Integration version is v0.3.1.
## Additional Context
There is no additional context available for this issue.
## Conclusion
In conclusion, the Xiaomi Home Assistant bug is a significant issue that affects the accuracy of energy consumption calculations. It is essential to correct the parameters to ensure that the values displayed are consistent with those shown in the Mi Home app. By doing so, users can rely on the Home Assistant to provide accurate energy consumption data and make informed decisions about their energy usage.