@[email protected] I got my Arlec plug working with LocalTuya, thanks for the help!
It looks like cumulative power use is still an issue - as in it can tell me how much power is being used right now, but can't say how much has been used today so far. In the thread you linked they had the same issue, so perhaps this plug doesn't support it.
Does Home Assistant support some way of doing this manually? If we have the history, is there a template that can sum the history for a certain period or anything like that? I think because it's poling it wouldn't be super accurate but it might be something.
That's great! From that thread, it sounds like the cloud based app integration does have that feature. I don't have any of these devices so can't play around with it.
It looks like the Utility Meter integration is the way to go. But you could also setup your own Template sensors to sum it up, here's a couple of threads that could lead you down the right track:
Thanks for pointing out the Utility Meter integration. So much to learn!
Unfortunately, I spoke a bit too soon. It seems to display current ok, but power just shows as 0W all the time, and voltage was previously showing ok but now is just constantly saying 1.0V. Gonna have to play around a bit more.
Maybe something to do with the polling? I notice under the documentation for LocalTuya in the section "Energy monitoring values":
On some devices, you may find that the energy values are not updating frequently enough by default. If so, set the scan interval (see above) to an appropriate value. Settings below 10 seconds may cause stability issues, 30 seconds is recommended.
Thanks, I'll have another read of the docs. I've messed something up, values don't seem to be updating anynore and turning it on/off doesn't work, though it says it's connected.
I did work out I had the voltage set to the wrong sensor. So that got sorted once I fixed that.
P.S. you can save posts. On the website, click the dots next to the reply to comment button, and there's a star in there for saving. To find your saved posts, go to your profile page and there's a tab for it (only visible to yourself).