[RELEASE] Tuya Zigbee Metering Plug (w/ healthStatus)

It's the same product, but the logs are very different.
This is normal.

Summary

dev:51512022-09-25 02:32:19.050 aminfo여과기모터용P 20A energy is 142.58 kWh, energyCost=$13.31 (rate=$0.12), duration=13.54 Days

dev:51512022-09-25 02:32:00.154 aminfo여과기모터용P 20A power is 364 W

dev:51512022-09-25 02:31:04.146 aminfo여과기모터용P 20A power is 363 W

dev:51512022-09-25 02:31:00.343 aminfo여과기모터용P 20A amperage is 2.08 A

dev:51512022-09-25 02:31:00.160 aminfo여과기모터용P 20A voltage is 224 V

dev:51512022-09-25 02:30:45.142 aminfo여과기모터용P 20A voltage is 220 V

dev:51512022-09-25 02:30:40.902 aminfo여과기모터용P 20A energy is 142.57 kWh, energyCost=$13.31 (rate=$0.12), duration=13.54 Days

dev:51512022-09-25 02:30:13.143 aminfo여과기모터용P 20A amperage is 0 A

dev:51512022-09-25 02:30:00.159 aminfo여과기모터용P 20A power is 364 W

dev:51512022-09-25 02:29:22.135 aminfo여과기모터용P 20A power is 365 W

dev:51512022-09-25 02:29:02.848 aminfo여과기모터용P 20A energy is 142.56 kWh, energyCost=$13.31 (rate=$0.12), duration=13.54 Days

dev:51512022-09-25 02:29:00.253 aminfo여과기모터용P 20A voltage is 225 V

dev:51512022-09-25 02:29:00.195 aminfo여과기모터용P 20A power is 364 W

dev:51512022-09-25 02:28:18.158 aminfo여과기모터용P 20A voltage is 224 V

dev:51512022-09-25 02:28:09.118 aminfo여과기모터용P 20A power is 363 W

dev:51512022-09-25 02:28:00.156 aminfo여과기모터용P 20A voltage is 223 V

dev:51512022-09-25 02:27:22.903 aminfo여과기모터용P 20A energy is 142.55 kWh, energyCost=$13.31 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:26:00.319 aminfo여과기모터용P 20A amperage is 2.044 A

dev:51512022-09-25 02:26:00.212 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:26:00.167 aminfo여과기모터용P 20A power is 361 W

dev:51512022-09-25 02:25:47.095 aminfo여과기모터용P 20A voltage is 217 V

dev:51512022-09-25 02:25:45.141 aminfo여과기모터용P 20A amperage is 0 A

dev:51512022-09-25 02:25:45.097 aminfo여과기모터용P 20A power is 0 W

dev:51512022-09-25 02:25:43.340 aminfo여과기모터용P 20A energy is 142.54 kWh, energyCost=$13.31 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:25:00.162 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:24:03.390 aminfo여과기모터용P 20A energy is 142.53 kWh, energyCost=$13.31 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:24:00.197 aminfo여과기모터용P 20A voltage is 221 V

dev:51512022-09-25 02:24:00.155 aminfo여과기모터용P 20A power is 359 W

dev:51512022-09-25 02:23:00.160 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:22:28.063 aminfo여과기모터용P 20A voltage is 218 V

dev:51512022-09-25 02:22:23.866 aminfo여과기모터용P 20A energy is 142.52 kWh, energyCost=$13.3 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:22:18.066 aminfo여과기모터용P 20A power is 360 W

dev:51512022-09-25 02:22:00.406 aminfo여과기모터용P 20A amperage is 2.044 A

dev:51512022-09-25 02:22:00.315 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:22:00.207 aminfo여과기모터용P 20A power is 361 W

dev:51512022-09-25 02:21:18.117 aminfo여과기모터용P 20A amperage is 0 A

dev:51512022-09-25 02:21:18.070 aminfo여과기모터용P 20A power is 0 W

dev:51512022-09-25 02:21:00.351 aminfo여과기모터용P 20A voltage is 221 V

dev:51512022-09-25 02:21:00.176 aminfo여과기모터용P 20A power is 360 W

dev:51512022-09-25 02:20:43.833 aminfo여과기모터용P 20A energy is 142.51 kWh, energyCost=$13.3 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:20:00.191 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:19:55.048 aminfo여과기모터용P 20A power is 359 W

dev:51512022-09-25 02:19:08.033 aminfo여과기모터용P 20A voltage is 218 V

dev:51512022-09-25 02:19:04.298 aminfo여과기모터용P 20A energy is 142.5 kWh, energyCost=$13.3 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:19:00.168 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:18:48.028 aminfo여과기모터용P 20A power is 361 W

dev:51512022-09-25 02:18:00.298 aminfo여과기모터용P 20A voltage is 221 V

dev:51512022-09-25 02:17:49.027 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:17:48.022 aminfo여과기모터용P 20A power is 359 W

dev:51512022-09-25 02:17:22.790 aminfo여과기모터용P 20A energy is 142.49 kWh, energyCost=$13.3 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:17:00.349 aminfo여과기모터용P 20A amperage is 2.08 A

dev:51512022-09-25 02:17:00.201 aminfo여과기모터용P 20A power is 364 W

dev:51512022-09-25 02:16:49.017 aminfo여과기모터용P 20A voltage is 224 V

dev:51512022-09-25 02:16:48.078 aminfo여과기모터용P 20A amperage is 0 A

dev:51512022-09-25 02:16:48.019 aminfo여과기모터용P 20A power is 0 W

dev:51512022-09-25 02:16:00.602 aminfo여과기모터용P 20A voltage is 225 V

dev:51512022-09-25 02:16:00.483 aminfo여과기모터용P 20A power is 365 W

dev:51512022-09-25 02:15:49.011 aminfo여과기모터용P 20A voltage is 220 V

dev:51512022-09-25 02:15:45.004 aminfo여과기모터용P 20A power is 363 W

dev:51512022-09-25 02:15:44.843 aminfo여과기모터용P 20A energy is 142.48 kWh, energyCost=$13.3 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:15:00.188 aminfo여과기모터용P 20A voltage is 223 V

dev:51512022-09-25 02:14:25.001 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:14:19.990 aminfo여과기모터용P 20A power is 361 W

dev:51512022-09-25 02:14:04.819 aminfo여과기모터용P 20A energy is 142.47 kWh, energyCost=$13.3 (rate=$0.12), duration=13.53 Days

dev:51512022-09-25 02:14:00.234 aminfo여과기모터용P 20A power is 362 W

dev:51512022-09-25 02:13:19.990 aminfo여과기모터용P 20A power is 363 W

dev:51512022-09-25 02:13:00.198 aminfo여과기모터용P 20A amperage is 2.058 A

dev:51512022-09-25 02:13:00.162 aminfo여과기모터용P 20A power is 362 W

dev:51512022-09-25 02:12:25.247 aminfo여과기모터용P 20A energy is 142.46 kWh, energyCost=$13.3 (rate=$0.12), duration=13.52 Days

dev:51512022-09-25 02:12:20.016 aminfo여과기모터용P 20A amperage is 0 A

dev:51512022-09-25 02:12:19.973 aminfo여과기모터용P 20A power is 0 W

dev:51512022-09-25 02:12:00.356 aminfo여과기모터용P 20A voltage is 223 V

dev:51512022-09-25 02:12:00.155 aminfo여과기모터용P 20A power is 362 W

dev:51512022-09-25 02:11:50.961 aminfo여과기모터용P 20A voltage is 224 V

dev:51512022-09-25 02:11:00.231 aminfo여과기모터용P 20A voltage is 223 V

dev:51512022-09-25 02:11:00.146 aminfo여과기모터용P 20A power is 363 W

dev:51512022-09-25 02:10:50.960 aminfo여과기모터용P 20A voltage is 219 V

dev:51512022-09-25 02:10:47.249 aminfo여과기모터용P 20A energy is 142.45 kWh, energyCost=$13.3 (rate=$0.12), duration=13.52 Days

dev:51512022-09-25 02:10:00.162 aminfo여과기모터용P 20A voltage is 224 V

dev:51512022-09-25 02:09:07.258 aminfo여과기모터용P 20A energy is 142.44 kWh, energyCost=$13.29 (rate=$0.12), duration=13.52 Days

dev:51512022-09-25 02:09:02.938 aminfo여과기모터용P 20A power is 362 W

dev:51512022-09-25 02:09:00.149 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:08:00.248 aminfo여과기모터용P 20A amperage is 2.051 A

dev:51512022-09-25 02:08:00.199 aminfo여과기모터용P 20A voltage is 223 V

dev:51512022-09-25 02:08:00.167 aminfo여과기모터용P 20A power is 361 W

dev:51512022-09-25 02:07:52.931 aminfo여과기모터용P 20A amperage is 0 A

dev:51512022-09-25 02:07:34.926 aminfo여과기모터용P 20A power is 360 W

dev:51512022-09-25 02:07:31.925 aminfo여과기모터용P 20A voltage is 218 V

dev:51512022-09-25 02:07:27.706 aminfo여과기모터용P 20A energy is 142.43 kWh, energyCost=$13.29 (rate=$0.12), duration=13.52 Days

dev:51512022-09-25 02:07:00.187 aminfo여과기모터용P 20A power is 362 W

dev:51512022-09-25 02:06:00.344 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:06:00.318 aminfo여과기모터용P 20A power is 361 W

dev:51512022-09-25 02:05:47.718 aminfo여과기모터용P 20A energy is 142.42 kWh, energyCost=$13.29 (rate=$0.12), duration=13.52 Days

dev:51512022-09-25 02:05:11.914 aminfo여과기모터용P 20A voltage is 223 V

dev:51512022-09-25 02:05:00.161 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:04:47.906 aminfo여과기모터용P 20A power is 362 W

dev:51512022-09-25 02:04:11.890 aminfo여과기모터용P 20A voltage is 217 V

dev:51512022-09-25 02:04:08.214 aminfo여과기모터용P 20A energy is 142.41 kWh, energyCost=$13.29 (rate=$0.12), duration=13.52 Days

dev:51512022-09-25 02:04:00.185 aminfo여과기모터용P 20A amperage is 2.051 A

dev:51512022-09-25 02:04:00.146 aminfo여과기모터용P 20A power is 361 W

dev:51512022-09-25 02:03:47.888 aminfo여과기모터용P 20A power is 360 W

dev:51512022-09-25 02:03:22.894 aminfo여과기모터용P 20A amperage is 0 A

dev:51512022-09-25 02:03:00.190 aminfo여과기모터용P 20A voltage is 222 V

dev:51512022-09-25 02:03:00.150 aminfo여과기모터용P 20A power is 361 W

dev:51512022-09-25 02:02:30.177 aminfo여과기모터용P 20A energy is 142.4 kWh, energyCost=$13.29 (rate=$0.12), duration=13.52 Days

dev:51512022-09-25 02:02:24.874 aminfo여과기모터용P 20A power is 362 W

dev:51512022-09-25 02:01:58.872 aminfo여과기모터용P 20A voltage is 223 V

dev:51512022-09-25 02:01:00.333 aminfo여과기모터용P 20A amperage is 2.08 A

dev:51512022-09-25 02:01:00.304 aminfo여과기모터용P 20A power is 364 W

dev:51512022-09-25 02:00:54.860 aminfo여과기모터용P 20A amperage is 1.862 A

dev:51512022-09-25 02:00:50.337 aminfo여과기모터용P 20A energy is 142.39 kWh, energyCost=$13.29 (rate=$0.12), duration=13.52 Days

dev:51512022-09-25 02:00:00.213 aminfo여과기모터용P 20A power is 365 W

dev:51512022-09-25 02:00:00.028 aminfo여과기모터용P 20A hourlyEnergy is 0.36 kWh

dev:51512022-09-25 01:59:10.655 aminfo여과기모터용P 20A energy is 142.38 kWh, energyCost=$13.29 (rate=$0.12), duration=13.52 Days
[/details]

Can you compare the Manufacturer ID and the Application versions of the two plugs ( from the 'Data' section) ?

The first plug seems to not have any load, or the load is very low. Have in mind, that these plugs do not measure very well low loads, like a LED bulb < 3 Watts.

1 Like

All right, I'll check again.
For your information, the power comes up in Tuya
All updated with the latest firmware on the same day.

Data * endpointId: 01

  • application: 4D
  • driver: v1.0.1.1123
  • endpointId: 01
  • inClusters: 0003,0004,0005,0006,0702,0B04,E000,E001,0000
  • manufacturer: _TZ3000_cehuw1lw
  • model: TS011F
  • outClusters: 0019,000A
  • profileId: 0104

Controller Type ZGB

What happened? Everything changed.

Device pairing info

Manufacturer: _TZ3000_cehuw1lw
Endpoint 01 application: 4D
Endpoint 01 endpointId: 01
Endpoint 01 idAsInt: 1
Endpoint 01 inClusters: 0003,0004,0005,0006,0702,0B04,E000,E001,0000
Endpoint 01 initialized: true
Endpoint 01 manufacturer: _TZ3000_cehuw1lw
Endpoint 01 model: TS011F
Endpoint 01 outClusters: 0019,000A
Endpoint 01 profileId: 0104
Endpoint 01 stage: 4
Endpoint F2 application: unknown
Endpoint F2 endpointId: F2
Endpoint F2 idAsInt: 242
Endpoint F2 initialized: true
Endpoint F2 manufacturer: unknown
Endpoint F2 model: unknown
Endpoint F2 outClusters: 0021
Endpoint F2 profileId: A1E0
Summary

dev:3292022-09-25 02:49:06.146 aminfoTuya Zigbee Metering Plug refresh()...

dev:3292022-09-25 02:49:06.100 aminfoTuya Zigbee Metering Plug configure()..

dev:3292022-09-25 02:49:06.098 aminfoTuya Zigbee Metering Plug configuring the switch and energy reporting..

dev:3292022-09-25 02:49:06.097 aminfoTuya Zigbee Metering Plug Auto polling is enabled, polling interval is 1 minutes

dev:3292022-09-25 02:49:06.045 aminfoTuya Zigbee Metering Plug Debug logging is false Description text logging is true

dev:3292022-09-25 02:49:06.043 aminfoTuya Zigbee Metering Plug Updating null (Tuya Zigbee Metering Plug) model TS011F presence: present AlwaysOn is false

dev:3292022-09-25 02:48:59.318 aminfoTuya Zigbee Metering Plug energy is 0.0 kWh, energyCost=$0.0 (rate=$0.12), duration=0.06 Mins

dev:3292022-09-25 02:48:59.098 aminfoTuya Zigbee Metering Plug amperage is 0.109 A

dev:3292022-09-25 02:48:59.057 aminfoTuya Zigbee Metering Plug voltage is 221 V

dev:3292022-09-25 02:48:59.014 aminfoTuya Zigbee Metering Plug power is 13 W

dev:3292022-09-25 02:48:57.065 aminfoTuya Zigbee Metering Plug Tuya Zigbee Metering Plug switch is on

dev:3292022-09-25 02:48:56.904 aminfoTuya Zigbee Metering Plug refresh()...

dev:3292022-09-25 02:48:56.034 aminfoTuya Zigbee Metering Plug Energy (total:0.0 kWh) was reset on 2022-09-25 02:48:55.865

dev:3292022-09-25 02:48:55.984 aminfoTuya Zigbee Metering Plug hourlyEnergy is 0 kWh

dev:3292022-09-25 02:48:55.979 aminfoTuya Zigbee Metering Plug energy is 0.0 kWh, energyCost=$0.0 (rate=$0.12), duration=0 Mins

dev:3292022-09-25 02:48:55.054 aminfoTuya Zigbee Metering Plug Child Lock is off

dev:3292022-09-25 02:48:55.052 aminfoTuya Zigbee Metering Plug Power On State is off

dev:3292022-09-25 02:48:55.050 aminfoTuya Zigbee Metering Plug LED mode is Lit when On

dev:3292022-09-25 02:48:54.725 amwarnstate.lastResetEnergy = null, resetting it back to 0!

dev:3292022-09-25 02:48:54.681 amwarnTuya Zigbee Metering Plug Initialize()...

dev:3292022-09-25 02:48:54.531 aminfoTuya Zigbee Metering Plug power is 12 W

dev:3292022-09-25 02:48:52.423 aminfoTuya Zigbee Metering Plug energy is 0.0 kWh, energyCost=$0.0 (rate=$0.12), duration=0.05 Mins

dev:3292022-09-25 02:48:52.233 aminfoTuya Zigbee Metering Plug amperage is 0.116 A

dev:3292022-09-25 02:48:52.163 aminfoTuya Zigbee Metering Plug voltage is 222 V

dev:3292022-09-25 02:48:52.107 aminfoTuya Zigbee Metering Plug power is 13 W

dev:3292022-09-25 02:48:50.185 aminfoTuya Zigbee Metering Plug Tuya Zigbee Metering Plug switch is on

dev:3292022-09-25 02:48:49.773 aminfoTuya Zigbee Metering Plug refresh()...

dev:3292022-09-25 02:48:49.713 aminfoTuya Zigbee Metering Plug configure()..

dev:3292022-09-25 02:48:49.546 amwarnstate.lastResetEnergy = null, resetting it

Its same device, same firmware (applicaiton) version.

Is the one that shows " * driver: v1.0.1.1123" in the Data section working OK or not?

1 Like

I think that this one was not initially paired to this Tuya driver, but picked up one of Markus's drivers instead. When you paired it again as a new device using this driver, it now works.

Tuya magic! :slight_smile:

2 Likes

I've done it several times at home and several times at work.
After informing you, it became normal after pairing again.
@kkossev Magic!

1 Like

Yes, it is in my TODO list - probably next week.

1 Like

Hi @kkossev,

Thank you for your drivers, they are very good and are helping a lot.
I am testing this one and I would like to report what I realized. I am testing a Brazilian standard plug from Zemismart and with your driver it is reporting the power above the manufacturer's specification. Do you have any idea what it could be? This plug is already configured in the driver. Here are some screen captures to show you what is happening.

Thanks.

1 Like

For what kind of device is this specifications table ( Marca : Consul ) ?
Have in mind, that the measurements accuracy of these plugs is not better than 10% error. But seems like with this device the measured power as returned from the plug is almost double...

The easiest way to check is if you can compare the power measurements with some other device, that you can trust. There are cheap 'not smart' watt and energy meters that you can use for comparison?

It’s a beer fridge.

1 Like

The fridge compressor is a highly inductive load... The cheap power measurement chips inside the plug may have greater errors when the power factor is low.

The power factor is taken in account by these plugs, although it is not send as a value to display.
In your case, 219 Volts * 1.224 Amps = 268 Watts, if this was a purely resistive load.

The PF in your case should be (True power)/(Apparent power) = 182 / 268 = 0.68

If you can find a power meter that displays both the measured true power and the power factor, we can know what is the measuring error.

I mean device like this:
https://www.amazon.com/Electricity-Electrical-Consumption-Backlight-Protection/dp/B09BQNYMMM

Information from a Shelly EM that is measuring everything here. Does this help ?

Yes, if you can use the Shelly EM (a very good device!) for comparison will be great!

@guyeeba are you still using your DIN rail metering switches with automatic reporting?
I notice some false zero power and amperage automatic reports with mine : (
When polled, all is OK.

Just letting you know that the voltage reporting still seems to be way off, (should be circa 230-240v AC) and thanks for taking a look into these devices as I wrongly assumed they were Tuya devices.
image

FYI: This one is switching a reptile heating pad that is attached to the underside of the stone topped island in my kitchen, where I "work from home".
The pad warms it up nicely in the couple of winter months we have.

Please post the 'Data' section of this device.

image

1 Like

The reason could be if the model is not detected correctly, then the voltage reader will be off.
Please make sure you update the driver to the latest dev. branch from the link on the second post.
If you click on 'Initialize' button the energy and the energy costs will be set to zero by the software only (the accumulated energy value in the plug will not be reset, if you switch back to the driver you were using until now the total energy will be retained).

1 Like

You where absolutely correct. I had not followed your instruction.....
"Please make sure you update the driver to the latest dev. branch from the link on the second post." Sorry.

Once I did that - the voltage reading is much more realistic.

image

Thanks so much for the great driver and your terrific support.

1 Like