-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Wrong device]: [SPM02-D2TZ] power meter won't report negative values #20631
Comments
I have the same Problem with the Same Device. I have a 1Phase Solar inverter on phase 3. when i have a power load of 50W and then inject 600W it goes to 550W. So there is something wrong. I got the from the manufacture a converter File. But i dont get it working correctly. Or i dont even know it is correct. |
/********************************************************************** Date 2023/10/26 update 支持读取总有功功率,三相无功功率,总无功功率, const fz = require('zigbee-herdsman-converters/converters/fromZigbee'); let preEnergy = 0; const converters = {
} const definition = { module.exports = definition; |
How can I use your code ??? |
I have also purchased the same product from them. They have told me that there are two versions: V1 (older) and V2 (newer). The V2 versions can show the negative values and have more DP (more user friendly in my view). Too bad that V1 cannot OTA to V2. |
How did you manage to update this device? Did you resolve missign readings issues? |
I have found a solution: |
Thanks a lot. |
Can you please share where exacly do we have to implement this? Is it a OTA firmware update or some other config in HA? |
@Le-Syl21 - same question here... 🙏 |
https://github.com/script0803/SPM0X-Z2M-Configuration/blob/main/SPM02_Z3_Local_02.js So it is not the same product as the SPM02-D2TZ mentioned at the beginning. I think the U01 version of the device does not need this file now. I have added its configuration to the zigbee2mqtt support library. |
I'm not using your device but I'm acutally witing a converter for another device. But I note that It fail sto left shift 32 bits due to js number limitation. Basically, The workaround is to use BigInt : Then I received I also note that this could affect more than your converter as I saw this in many other convert code ? Does anyone experienced the same ? Obviously, it will not affect the result until you reach a value higher than 32bits length int. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days |
Link
https://zigbee.blakadder.com/Zemismart_SPM02-D2TZ.html
Model
_TZE200_ves1ycwx
Description
3-phase power meter
Vendor
TuYa
Picture (link)
https://zigbee.blakadder.com/assets/images/devices/Zemismart_SPM02-D2TZ.webp
Database entry
{}
Notes
Device is working well, however it is reporting negative current/power as positive. Positive also as positive, so I'm sure there is no issue with wiring. Not sure if this is integration, or issue with device itself.
Newbie here, please explain in detail if I need to submit any extra info.
The text was updated successfully, but these errors were encountered: