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

yes

My Nous plug has older firmware - application 4D while yours is from a new batch with newer firmware C0
image
However, there is not a way to roll back to old firmware version. And I suppose the issue is not in the application version (the metering plug application firmware), but the Tuya SoC is a new version, that Hubitat C-8 hubs Zigbee 3.0 has problems with.

The workaround is - a connection to Hubitat via another hub for the basic On/Off functionality only.

For some reason my plug does not show this "tuyaVersion" bullet at all? Is that upgraded together with plug firmware?

The 'tuyaVersion' is a custom Data variable calculated by the driver to match the device firmware version presentation in the Smart Life app. But, as your new device does not stay connected, the tuyaVersion is not received and not stored in the Data section.

You can still use this plug in Hubitat, but it will require one more box ( Home Assistant or one of the new Tuya Matter Bridge devices).

Hi, guys.

For some reason, my SPM01 starts working normally with this integration! Now everything looks good. (I disable switch and outlet capability).

I just updated to last version released by Kkossev. Tks, Kkossev!

If needed, the fingerprint is: fingerprint profileId:"0104", endpointId:"01", inClusters:"0000,0004,0005,EF00", outClusters:"0019,000A", model:"TS0601", manufacturer:"_TZE200_bcusnqt8"


The only problem now is with my SPM02, the 3 phase version. It's still not working.

The fingerprint from 3 phase version is fingerprint profileId:"0104", endpointId:"01", inClusters:"0000,0004,0005,EF00", outClusters:"0019,000A", model:"TS0601", manufacturer:"_TZE200_ves1ycwx"

It's apparently sending data, but driver doesn't seem work with it.

1 Like

This Tuya three-channel energy metering device is extremely chatty. Much more chatty than the spammiest Tuya mmWave sensors!

I highly recommend NOT pairing it with the same Hubitat hub, where all your other Zigbee devices are connected.

As you already have a Home Assistant setup, have you tried using it via the Home Assistant Device Bridge (HADB) bridge?

1 Like

I didn´t know it. Thanks for warning me.

Has anybody used this plug successfully (with power monitoring working) with C-8?

https://www.amazon.de/-/en/gp/product/B0C4YH252N/ref=sw_img_1?smid=A26CS4M3OVUH5D&th=1

1 Like

I have added this device (TS0001 _TZ3000_mkhkxx1p) and also _TZ3000_tgddllx4 _TZ3000_x3ewpzyr _TZ3000_qnejhcsu _TZ3000_xkap8wtb Tuya switch modules w/ power monitoring to the latest dev. branch version 1.9.2.

If you have it - please let me know if it works and what is the detailed fingerprint, as shown in Hubitat Device Details section on the device web page.

Not yet, but planning to buy.

It’s really hard to find Hubitat compatible zigbee switch / plug with power monitoring

@kkossev I have the circuit breaker Tongou Zigbee Model: TS011F which works very well with your
driver. The one small problem I have is that it reports temperature (I presume?) every 5 seconds which is a little annoying.
Am I missing an option in the driver preferences to disable or change the reporting frequency?

dev:3202024-04-01 17:20:33.559infoEV Circuit Breaker EV Circuit Breaker was 64C
dev:3202024-04-01 17:20:33.554debugEV Circuit Breaker Event enter: [name:temperature, value:64, unit:C, descriptionText:EV Circuit Breaker was 64C]
dev:3202024-04-01 17:20:33.549debugEV Circuit Breaker parse: description is read attr - raw: 35830104020A000029CE18, dni: 3583, endpoint: 01, cluster: 0402, size: 0A, attrId: 0000, encoding: 29, command: 0A, value: CE18
dev:3202024-04-01 17:20:17.916infoEV Circuit Breaker EV Circuit Breaker was 65C
dev:3202024-04-01 17:20:17.911debugEV Circuit Breaker Event enter: [name:temperature, value:65, unit:C, descriptionText:EV Circuit Breaker was 65C]
dev:3202024-04-01 17:20:17.906debugEV Circuit Breaker parse: description is read attr - raw: 35830104020A0000293219, dni: 3583, endpoint: 01, cluster: 0402, size: 0A, attrId: 0000, encoding: 29, command: 0A, value: 3219
dev:3202024-04-01 17:20:12.825infoEV Circuit Breaker EV Circuit Breaker was 67C
dev:3202024-04-01 17:20:12.820debugEV Circuit Breaker Event enter: [name:temperature, value:67, unit:C, descriptionText:EV Circuit Breaker was 67C]
dev:3202024-04-01 17:20:12.809debugEV Circuit Breaker parse: description is read attr - raw: 35830104020A000029511A, dni: 3583, endpoint: 01, cluster: 0402, size: 0A, attrId: 0000, encoding: 29, command: 0A, value: 511A
dev:3202024-04-01 17:20:07.633infoEV Circuit Breaker EV Circuit Breaker was 66C
dev:3202024-04-01 17:20:07.611debugEV Circuit Breaker Event enter: [name:temperature, value:66, unit:C, descriptionText:EV Circuit Breaker was 66C]
dev:3202024-04-01 17:20:07.602debugEV Circuit Breaker parse: description is read attr - raw: 35830104020A000029DE19, dni: 3583, endpoint: 01, cluster: 0402, size: 0A, attrId: 0000, encoding: 29, command: 0A, value: DE19

1 Like

Please post the Device Details - model and manufacturer as seen on the device web page.
I checked quickly the code and these unusable temperature readings should be suppresed for '_TZ3000_qeuvnohg' and '_TZ3000_8bxrzyxz'. What is yours?

Also, do you see the Temperature Reporting toggle option or not with your model?

Here's the device details:

  • endpointId: 01
  • application: 43
  • inClusters: 0000,0003,0004,0005,0006,0702,0B04,0402,E000,E001
  • manufacturer: _TZ3000_qeuvnohg
  • model: TS011F
  • outClusters: 0019,000A
  • softwareBuild:

Also, I do not see anything temperature specific in the preferences.

Thanks, I will look at the issue later tonight.

The debug logs that you provided are very useful, as I will use them to simulate your device behaviour in the driver.

3 Likes

I just tried one plug which had the same firmware (4D), and it didn't work either, so as you wrote, the issue is not in the application version

I imported the latest drivers code and now I have the option to disable temperature reporting, I originally downloaded the driver from HPM about a month or 2 ago. Not sure if you updated it but all seems good now,
image

Yes, the development branch version of the driver was updated some weeks ago.
Now I have aligned the main version to be the same and pushed an update via HPM.

1 Like

@kkossev
I am trying to understand the unit of the "energy" value reported by the driver.
I tried to read the code but it is too complicated for me :slight_smile:
Does the energy value come from the device ? Or is it calculated by the driver using voltage and current values ?

I have charged my car last night and in about 3 hours , energy increased from 5 to 14 at 220 volts and 10.5 ampers.
So , about 9 energy equals to about 7000 kw
I didn't understand the unit of "energy"
could you help me understand ?

thanks

Hi,
In the current driver version, the energy (unit: KWh) is always retrieved from the device itself.
There were some plans to add energy calculation for devices that do not report the energy consumed, but it was never implemented.

So it all depends on the particular device - what is yours? (model/manufacturer).
Is the power value shown correctly?
It should be the active power (unit: watts).
Note, that multiplying the amperage x voltage will not always equal the measured power, as the power factor is not accounted.

  • endpointId: 01
  • application: 70
  • inClusters: 0000,0006,0003,0004,0005,1000,000A,E001,E000,0702,0B04
  • manufacturer: _TZ3000_okaz9tjs
  • model: TS011F
  • softwareBuild: 0122052017

WhatsApp Image 2024-04-06 at 22.35.15_fdc94ce1

power seems correct.(watts)
so, is the "energy" unit kwh ?