Hi @user512.
I actually tried tuya-local first, but it was back in the end of 2023.
Back then I was discovering HA for the first time, and I just got 2 or 3 tuya devices for the first time too.
I couldn’t make it work the way I wanted, but back then I naively thought you could get the total power meter value from those tuya “power meters”.
And I could not understand why the “add_ele”, which is DP17 and was supposed to be the accumulated power usage in kWh (you know, the “meter” part of my “metered” device - the reason I bought the device in the first place) was NOT CHANGING.
Then by playing directly with pytuya and python, I FINALLY UNDERSTOOD why it didn’t work, and COULD NEVER WORK because of the way tuya and HA are.
(if someone wants more details I can explain, but essentially when you query d17 you get the total amount of kWh SINCE THE LAST TIME DP17 WAS UPDATED. - so 99% of the time it stays the same, for example 100, which means “+0.1kWh”, and HA interprets this as “the meter value is 0.1”)
So I finally accepted the fact that even thought thoses devices have a memory, and can store data in it, and can measure the power usage, and where called “meters”, they didn’t store the power used in kWh in any usable way.… grrrrrr …
So I resigned myself to use the integral integration to create “meters” based on the power values (D19).
But then I discovered this thread’s focus : I wasn’t getting up to date values for most of my devices (3.3 and 3.4 alike).
Then on one forum someone talked about localtuya and how there was an “interval” option to force the update of the power values - I thought I would try it.
I installed it, and instantly my 3.3 devices were respecting the interval ! I was finally able to monitor my power usage with my devices … except for a couple of them.
Then I realised those were the 3.4 ones - came to the conclusion that localtuya was not forcing the update of the 3.4 devices the same way as with the 3.3 … and here we are.
– (sorry for the long rambling that doesn’t really answer your question) –
To answer your question : I will test with tuya-local, out of the box, and my 3.4 devices that have the potential issue.
I will try to do it tonight or tomorrow and I will tell you