Open markruys opened 3 years ago
Any chance that this change is merged to the master and will be included in then next release or beta (V1.7)?
As all new models of this wall plug (Neo CoolCam NAS-WR01ZE) seem to have this nasty behavior, more and more people will benefit from this change .
The Neo Coolcam NAS-WR01ZE randomly reports kWh value with the most significant bit set. This results in erroneous negative readings:
OZW expects a 32-bit signed int, hence the negative readings. According to the docs of this device, the maximum report value is 21474836.47 kWh, which is
0x7FFFFFFF
. This PR resets resets the most significant bit to 0. This results in:I expect this PR addresses issues #1724, #2062, and #2333 wrt NAS-WR01ZE.