krikk/Hiking-DDS238-2-WIFI-Din-Rail-Energy-Meter-flashing-Tasmota

How to get the exact value of the Counter at the exact Number of Wh ??

Closed this issue · 5 comments

seby90 commented

Hello, I just flashed tasmota on my dds238-2.
Everything works well except for an inaccurate count. Indeed, the value of the counter that we receive "TuyaReceived#DpType2Id101" must be multiplied by 10 to obtain a value in Wh.
For the record, a flashing LED = 1 Wh.
The incrementation of the counter received by the variable TuyaReceived#DpType2Id101 is done every 10 Wh ... There would be no other way to get the exact value of the meter at the exact number of Wh??
Besides, I can't understand how tasmota can give us a consumption value of 1 Wh??
If anyone has an idea...

krikk commented

For the record, a flashing LED = 1 Wh.

no, mine says:
image
which i would understand as: 1600 led flashes = 1000 Wh

...and i do not understand your question, i get a value of:
image
...and this value matches the displayed value and seems valid for me...

seby90 commented

ok it was a mistake on my part, so 1600 pulse = 1000 Wh so 0.625 Wh for 1 pulses!

My problem is simple, the meter does not have the accuracy to 1 Wh but rather to 10 Wh.

We can not have an accuracy at 1 Wh with this type of meter ??

image

In fact, I wanted to use this counter to send the count to my domoticz server which refreshes every 5 minutes. He calculates me a power curve but since the meter does not have an accuracy at 1 Wh but 10 Wh the curve is not smoothed ...

Watch the plotting of my production curve with the DDS238-2 counter

image

look at the plotting of my production curve with another meter that has an accuracy at 1 Wh

image

with the meter has 1 Wh accuracy, the curve is much smoother and it seems quite normal

krikk commented

if both curves show the same data:

the first curve is better because it has more accuracy... the second curve is more "smooth" because it shows averaged values (because of the 5 minutes intervall)

...i think you should "rethink" your data...

here a graph of my data:
image
"PV Power" = Hiking-DDS238-2-WIFI
"APS YC60" = power reported by my inverter

seby90 commented

Do you agree with me? The dds238-2 meter via its serial port does not give the count with 1 Wh (0.001 Kwh) of accuracy but rather 10 Wh (0.010 Kwh). Just see the total tasmota counter the last digit is always at 0
image
Look the capture of tasmota log, the value of DpType2Id101 is 1173
image
The last decimal place is missing! Multiply the whole by 10 to get the right value in Wh
In fact, domoticz calculates an average power every 5 minutes based on the number of Wh it received during this period and this is what I have a problem with due to the inaccuracy of the dds238-2
Do you understand my problem??

krikk commented

yep, you are right, we only get the total power value with 10Wh accuracy... but this is all we get from the "tuya" chip... you see the raw data on the console... so to get more accurate data you problable have to calculate it manually, out of the current power values... could possibly implemented with a tasmota rule, feel free to reopen and post your solution here if you find a good one...