veeceeoh
(Keith G)
April 4, 2019, 12:23am
1206
Thanks for the report! I used the second solution, and I have made some other improvements to the Xiaomi Smart Plug device handler. Please find the announcement and link to the updated code here:
[UPDATE] Xiaomi Smart Plug DTH v1.2
(For Xiaomi’s ZigBee Outlet model ZNCZ02LM)
[Xiaomi__Plug]
This release fixes an issue with the calculation of kiloWatt/hour energy usage (thanks to a report from @Tiago_Goncalves ), adds a Temperature Offset preference setting, and includes a number of other improvements.
The updated DTH code can be copied directly from here .
Please note that I have not been able to test the new code changes because I do not own a Xiaomi Smart Plug myself. Any feedback from Xiaomi Smart Plug users would be greatly appreciated!
Detailed Change List :
Fixed incorrect code used to calculate kiloWatt/hour energy usage (thanks for @Tiago_Goncalves for spotting the issue)
Added lastCheckinDate attribute for Epoch time/date stamp events that can be used with WebCoRE
Add…