deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

TZ3000 BSEED reports wrong power

Open enboer opened this issue 1 year ago • 12 comments

Is there already an existing issue for this?

  • [X] I have searched the existing issues and there is none for my device

Product name

_TZ3000_4ux0ondb

Manufacturer

BSEED

Model identifier

https://www.bseed.com/products/bseed-zigbee-eu-wall-sockets-power-outlets-with-energy-monitoring-kids-protection

Device type to add

Switch

Node info

https://www.bseed.com/products/bseed-zigbee-eu-wall-sockets-power-outlets-with-energy-monitoring-kids-protection

bseed-identify

Endpoints and clusters

bseed_cluster

Basic

bseed-basic

Further relevant clusters

Power Configuration

On/Off

bseed_metering

Level Control

bseed-otau

Color Control

Thermostat

Simple Metering

bseed_measurement

Electrical Measurement

Any other cluster of relevance/interest

enboer avatar Aug 16 '24 10:08 enboer

Device is working but reports wrong RMS current and Active Power. In this measurement picture the RMS current should be around 186, and the Active power should be around 42Watt

enboer avatar Aug 16 '24 10:08 enboer

but reports wrong RMS current and Active Power

You have made a custom DDF ? I don't found this device on my side

Smanar avatar Aug 16 '24 14:08 Smanar

Device was added to Deconz. When I do a added DDF I see this: bseed_added

The metering is then already working (then already with wrong values) but I do not see the Power/Voltage device in Domoticz.

I then dragged these metering to the binding section of the DDF Editor. But that does not work yet.

enboer avatar Aug 16 '24 14:08 enboer

Your DDF is not used, you have the "draft" status. You can try with editing this one https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/tuya/_TZ3000_cehuw1lw_smartplug_EU.json it's a standard one for Tuya.

Can just replace the manufacture name by yours.

Smanar avatar Aug 16 '24 15:08 Smanar

I did change that to Gold later. But you json file is working, however I still have incorrect power value. It reports 1000Watt, but this should be 40-45watt. I see these values already in the DeconzGUI.

enboer avatar Aug 16 '24 18:08 enboer

On your capture, I m seing U = 233 and I = 2.3A so the power is more than 500W, what is the device connected to the plug ?

The "45" is the consumption, not the power.

Smanar avatar Aug 17 '24 09:08 Smanar

Here are the correct screenshots. I have put 2 devices in serie. You see the difference in domoticz. And also 2 screenshots of the value in Deconz. The one is I 186 and Power of 42 is correct. The TZ3000 reports 2357 and 1130Watt for the same load.

domoticz plug1 wall

enboer avatar Aug 18 '24 12:08 enboer

239*0.186=44  > so 42 ok
239*2.357=563 > 1130 ? WTF

I think you can throw your second devices. Values you are seing in the GUI are raw values, direclty from the device, some values can need adjustement, but it's generaly /10 or *100 for exemple, here you need a /12. And even with the corrective the power value have nothing to see with reality.

Smanar avatar Aug 18 '24 12:08 Smanar

That strange as for other zigbee devices these values can be used directly. The 44 or 42 watt is the raw value from the device, screenshot was not at exact same time. Do I need to do that in the DDF? or in eg Domoticz via some automation?

enboer avatar Aug 18 '24 13:08 enboer

Do I need to do that in the DDF

You mean a "convertion" like the /12 needed for the current ? So yes, but if you have another device with the same manufacture name / Model ID, I almost sure it will not need it, for me the problem is from this device.

If you want to use a "corrective", can create a DDF (or clone an existing one and change the ManufactureName/ModelID) and use for exemple

        {
          "name": "state/current",
          "read": {
            "at": "0x0508",
            "cl": "0x0b04",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0508",
            "cl": "0x0b04",
            "ep": 1,
            "eval": "Item.val = Attr.val / 12"
          },
          "refresh.interval": 365
        },

This code will /12 the raw value for the current, and Domoticz will use the corrected one.

Edit: Can clone this one https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/tuya/_TZ3000_TS011F_smart_plug.json and change

  "manufacturername": "_TZ3000_4ux0ondb",
  "modelid": "TS011F",

You can use the name you want. This file need to be in a "devices" folder, can use subfolder. And need to restart Deconz, DDF are scanned at start.

Smanar avatar Aug 18 '24 16:08 Smanar

Thanks this works, seems it should be / 24. Is there a way to reset the total consumed power. I see the value in Deconz, but that is readonly.

enboer avatar Aug 18 '24 20:08 enboer

Yes If I remember, on the GUI on the cluster 0x0000 the "Basic", you have a "reset" command.

Smanar avatar Aug 20 '24 15:08 Smanar

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Sep 11 '24 01:09 github-actions[bot]

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

github-actions[bot] avatar Sep 18 '24 01:09 github-actions[bot]