Skip to content
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

Xiaomi Zigbee Power Socket - incorrect wattage reported + voltage missing #81083

Closed
amit-nz opened this issue Oct 27, 2022 · 9 comments
Closed
Assignees

Comments

@amit-nz
Copy link

amit-nz commented Oct 27, 2022

The problem

Upon updating to 2022.10.5, I have found my Xiaomi Zigbee power sockets are over-reading by a factor of 10x (i.e. if it’s got a 200w load, the Electrical_measurement entity reports a 2000w load). I checked the update history/logbook, and this started immediately after the update:

image

I posted about this issue on the HASS forum, where another user with the same issue has mentioned that the Analog_Input entity is reporting the correct load.
https://community.home-assistant.io/t/resolved-xiaomi-zigbee-power-socket-readings-off-by-a-factor-of-10-since-2022-10-5/479901

image

Please let me know what log(s) I can supply to help diagnose this - it appears nothing is actually broken, just the values are messed up - so no "errors" to speak of. A few values (per my screenshot above) are showing zero or unknown, but as far as I know these have never worked so not too concerned with them.

What version of Home Assistant Core has the issue?

2022.10.5

What was the last working version of Home Assistant Core?

2022.10.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Zigbee Home Automation

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @dmulcahey, @Adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of zha can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant unassign zha Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


zha documentation
zha source
(message by IssueLinks)

@dmulcahey
Copy link
Contributor

Please provide the diagnostic file for the device

@amit-nz
Copy link
Author

amit-nz commented Oct 27, 2022

@dmulcahey
Copy link
Contributor

Potentially related to: zigpy/zha-device-handlers#1656

@dmulcahey
Copy link
Contributor

@amit-nz can you go to the device page and reconfigure the device please?

@TheJulianJES
Copy link
Contributor

TheJulianJES commented Oct 27, 2022

FYI, if reconfiguring doesn't work (it should), you can either read the ac_power_divisor attribute on the ElectricalMeasurement cluster (and new reports will be correct again):
image

Or re-pair the plug to fix the issue. That should also add the voltage measurement and the total energy consumption now (which integrates with the HA energy dashboard).

@amit-nz
Copy link
Author

amit-nz commented Oct 27, 2022

@dmulcahey no go on reconfigure, but @TheJulianJES's solution to read the ac_power_divisor attribute has worked, wattage now reported correctly, but no voltage. That is not a big deal for me. I will re-pair them later on as I'd like to get them integrated into HA's energy dashboard, but for now this is sufficient. Thanks for your assistance.

@dmulcahey
Copy link
Contributor

Ok I’ll look at the reconfigure part.

@dmulcahey
Copy link
Contributor

Fixed by rejoining the device. Enhancements may be made in the future to prevent this.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants