TUYA 1 or 3 phase Energy Meter

https://au-m.banggood.com/OWON-WIFI-Tuya-Single-or-3-phase-Power-Clamp-80A-or-120A-or-200A-or-300A-Multi-Function-Residential-Commercial-Application-p-1891726.html?rmmds=orderdetail

Not sure how reliable banggood is, but they are selling a tuya wifi energy meter with different ct clamp sizes really cheap. 120A for AUD$80

Owon seems a legitimate manufacturer of power equipment.

I’ve ordered one (will take a month to arrive though). Just posting here because seems a good deal and if a few smart people start buying it then (self centeredly) I can come back and ask questions if I have any problems.

Note the instructions say that if the ct is attached the wrong way around then the reading will be zero, so I guess it does not measure reverse current. That is OK for me as I’m single-phase and although I have solar I’m assuming I can measure the solar feed and the main feed at the DB and the difference will be the net import/export, instead of measuring the point of connection. The 3rd ct I will measure my hvac (biggest load of the house).

3 Likes

Please let us know how it goes. Are you going to try using it with esphome?
I am not so keen on keeping the tuya firmware on it, but I lack any information on the device to be confident to order one on a whim.

Have one of these and show up as “unsupported” in HA.
It identifies as category “zndb” which by the tuya/sensor.py seem to be supported but does not seem to be the case.

1 Like

I have the Tuya Power Clamp working with Local Tuya integration. With the integration you can get Home Assistant to show all the values displayed in the Tuya Smart Life app.
However most values need to be formatted in Home Assistant as they don’t have the correct unit of measurement and too many digits.
The energy consumption was displayed on the energy dashboards without any problems, but recently it stopped working. Somehow I get only a bar every 12 hours, instead of the energy consumption every hour. Has anybody experienced similar behaviour?

Lucius, can you please tell us what process you used to install this power clamp? As it shows unsupported for many people…thank for sharing :slight_smile:

Hi yann1966,

Did you try using the local tuya integration through HACS (GitHub - rospogrigio/localtuya: local handling for Tuya devices)? As you pointed out the standard tuya integration does not support the power clamp.
I added the power clamp with the smart life app first and once I assigned a permanent IP address to it on my router, I was able to add it local tuya.
Can you explain where you got stuck?

Here is a video on how to install local tuya:

I created an issue in the HomeAssistant for this Tuya Power Clamp sensor show as unsupported · Issue #71054 · home-assistant/core · GitHub
Together with it also a patch-set that is pending review that partially adds support for it Add partial support for Tuya Power Clamp #71054 by dala318 · Pull Request #72202 · home-assistant/core · GitHub (only adds reading of Total Power which is provided through the Tuya API)

Hi dala318,

It will be great if your patch-set for the standard tuya integration gets accepted. We will keep fingers crossed…

Hello Guys, thank you for your follow up.
Here is what i have done.

  • Add in IOT Tuya
  • THen in H.A (automatically)

It shows as unsupported and « this device have no entity »

Any ides from your side please?

Lucius, so I followed your video.

  • create account IOT Tuya
  • add the power clamp
  • get the local key
  • install Local Tuya Integration
  • paste ThenKey and create entity as a Sensor
  • but I should have done something wrong because I get only one information: total KW/h (and wrong number)

Here are some copy screens:



When you add the power clamp with local tuya and select sensor, you should get many sensors. Not sure if the sensor numbers are always the same, but in my case the total energy consumption is under sensor “131” and the number has to be formated “0.01” and unit of measurement set to KWh.
Can you confirm that you get the options described above?

1 Like

Lucius, I try to get back to this configuration information I get first time I install, but cannot (if i do same process i get « Entity with this ID has already been configured.« Where can I get these infos or update them?
Also I wonder if I do not need to enter some info in my configuration yaml like.:.


localtuya:
  - host: 192.168.1.x
    device_id: xxxxx
    local_key: xxxxx
    friendly_name: Tuya Device
    protocol_version: "3.3"
    scan_interval: # optional, only needed if energy monitoring values are not updating
      seconds: 30 # Values less than 10 seconds may cause stability issues
    entities:

Ok Lucius, I played with Local Tuya INtegretion and click configure and add 131 then i get Kw/h and format it 0.01
So i need to add more sensor with different numbers, i just realise that the value (not formatted) is the one i get in my power clamp…so i continue and come back to you

Here we go :slight_smile:

Well I’m finally very happy to finally get all these info from my Tuya Power clamp…no need to buy a new Power Clamp as some people suggest :slight_smile:
This is good news.
Now I try to get this entity into my energy dashboard, but still cannot…any recommendation ?
Thank you again…I’m so happy to get these number from my clamp :slight_smile:

Anyone,can help me to add these data to energy board please? I,tried the same way I,had my Sonoff pow r2, but cannot :frowning:

To get the sensor to display in the Energy dashboard you need to add the following in the customize.yml

sensor.name_of_your_sensor:

unit_of_measurement: kWh

device_class: energy

state_class: total_increasing

icon: hass:counter

Lucius, thank you but I’m not sure to understand:

sensor.tuya_power_clamp:
unit_of_measurement: kWh
device_class: energy
state_class: total_increasing
icon: hass:counter

Like that?
I get this message

Thank you :slight_smile:

Not sure about what the error message means, but here a few things you neeed to check?

Did you add the lines in the customize.yaml? Does your configuration.yaml have a reference to the customize.yaml (i.e. customize: !include customize.yaml)

You need to refer to your sensor (not device). I am guessing “tuya_power_clamp” is your device, but you need to customize the sensor 131, which I am guessing is the one you named total energy P1-P2-P3

Finally, you need to format the lines correctly. this is from my customize.yaml and my sensor 131 is called “total_energy”:
image

The energy dashboard only displays energy consumption, so you can only show sensor 131 or the individual P1, P2 and P3 energy sensors (if you want to display P1,P2 and P3 you will need to customize them also)

Hope the above helps.

Lucius, thank you for your answer.
No I have no reference in Configuration yaml.
So i just have to add a line, as:
- customize: !include customize.yaml
(is the !) important?

So to resume, my entities :.

  • total energy P1-P2-P3 : sensor.tuya_power_clamp
  • P1 Energy: sensor.test1
  • P2 Energy: sensor.test_5
  • P3 Energy: sensor.test_8

Here is the error i h get by entering these information:

Integration error: customize - Integration ‘customize’ not found.

/config/customize.yaml

sensor.tuya_power_clamp:
  unit_of_measurement: kWh
  device_class: energy
  state_class: total_increasing
  icon: hass:counter

/config/configuration.yaml

customize: !include customize.yaml

1 Like

If you don’t have any other customizations, it is probably easier to add the customization in your main configuration.yaml

Check the yaml example in this section:

Basically under “homeassistant:” create a “customize:” section and add the customization for the power clamp that you have listed above.

1 Like