-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
The power consumption of Aqara(Xiaomi) Wall Plug is not updated correctly on the HA page #16457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just enabled the debug level for logger, and it looks like the component "homeassistant.core" will process the response package from the hub:
but ignoring reports from the hub later?:
|
Have rebuilt a new clear HA and verify it could be an issue with HA itself, though I've modified some code to workaround this issue, hopefully there will be any fix in future.. |
Summary: The data key of the LAN protocol v3 of the ctrl_86plug is "channel_0". Fields are 'inuse', 'energy_consumed' and 'load_power'. Needs to be fixed! |
Home Assistant release with the issue: 0.77.3
Last working Home Assistant release (if known): N/A
Operating environment (Hass.io/Docker/Windows/etc.): Hassbian on Pi 3B+
Component/platform: Switch/xiaomi_aqara
Description of problem:
The power consumption is not updated correctly on the HA page.
For example, I have a device which always has a power of 2x.xx, and it is pluged on an Aqara Wall Plug. When I switch the Wall Plug off, HA will show the status:
Switch: OFF
inuse: 1
load power: 2x.xx
When I switch the Wall Plug on, HA will show the status:
Switch: ON
inuse: 0
load power: 0
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable): I'll give a trace here
When I turn on HA, the plug's status:
Swtch ON
load power 21.9
in use 1
The log shows:
When I turn the plug off on HA, the status:
Switch OFF
load power 21.9
in use 1
The log shows:
Then I turn the plug on again on HA, the status:
Switch ON
load power 0
in use 0
The log shows:
Then I turn the plug off again on HA:
Switch OFF
load power 20.95
in use 1
Do you have idea on this issue? Thanks in advance!
Additional information:
I move the issue here from:
Danielhiversen/PyXiaomiGateway#90
Long story for short, I found there is an issue causing Wall Plug control problem, I changed the code and the issue is gone, but still find there is another issue (I submit here). Anyway, it seems not related to this issue, since I've restore the original py file but still have this issue.
The text was updated successfully, but these errors were encountered: