dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 496 forks source link

TZ3000 BSEED reports wrong power #7888

Open enboer opened 3 weeks ago

enboer commented 3 weeks ago

Is there already an existing issue for this?

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 commented 3 weeks ago

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

Smanar commented 3 weeks ago

but reports wrong RMS current and Active Power

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

enboer commented 3 weeks ago

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.

Smanar commented 3 weeks ago

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.

enboer commented 3 weeks ago

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.

Smanar commented 3 weeks ago

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.

enboer commented 3 weeks ago

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

Smanar commented 3 weeks ago
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.

enboer commented 3 weeks ago

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?

Smanar commented 3 weeks ago

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.

enboer commented 3 weeks ago

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.

Smanar commented 3 weeks ago

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

github-actions[bot] commented 21 hours ago

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.