Replies: 1 comment 1 reply
-
Hi @peterodro ! All of the Tuya devices I have only report instantaneous wattage. I sample the wattage every 5m and use that to compute the area under the curve to get kWh for a given time duration. I think the issue with polling the device for kWh is that it doesn't know what time duration you want (start to end) and would need to do something similar to what I'm doing to compute kWh over time. I suppose some may have a "lifetime" kWh memory but I haven't found that yet. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to get "today electric kWh"?
DPS '17' is "Add Electricity' - what is meaning of this?
when reading DPS 17 it get "100" but in apk for today i see 0.34kWh
thanks
Beta Was this translation helpful? Give feedback.
All reactions