Smart plug TS011F reports too big "summation delivered"

Got TS011F by _TZ3000_0zfrhq4i from Ali. Works fine with ZHA, but “Summation delivered” went to 10.0 kWh in 2 hours for 30w laptop which is not realistic.

I guess that some kind of delimiter should be introduced. Any idea how to make it possible and what delimiter value should I use for my model?

Device signature:

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.FullFunctionDevice|MainsPowered|RxOnWhenIdle|AllocateAddress: 142>, manufacturer_code=4107, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": "0x0104",
      "device_type": "0x0051",
      "input_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x000a",
        "0x0702",
        "0x0b04",
        "0x1000",
        "0x1888",
        "0xe000"
      ],
      "output_clusters": [
        "0x0019"
      ]
    },
    "242": {
      "profile_id": "0xa1e0",
      "device_type": "0x0061",
      "input_clusters": [],
      "output_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "_TZ3000_0zfrhq4i",
  "model": "TS011F",
  "class": "zigpy.device.Device"
}

Aren’t you concerned about the current reported which is far away from any realistic value? Also the power factor is missing which makes it de-facto impossible to accurately measure non-resistive loads :man_shrugging:

Looks like there is a little more wrong that just the “summation delivered” :put_litter_in_its_place:

I personally stay away from all this Z/Y/X-plugs and only use hardware that I can really own and that allows to install my own preferred *ware → www.esphome.io :rocket: That way I can always fix software bugs/errors myself and extend functions the way I want and not being dependent on some random company that typically not even gives a sh!t after the sale :face_with_hand_over_mouth:

Yeah, seems that more things are out-of-shape. esphome looks awesome, but requires too much effort for the end user.
Found this PR from few days ago: https://github.com/zigpy/zha-device-handlers/pull/2592
Seems that support of _TZ3000_0zfrhq4i being added as part of new 2023.10 release.

Actually you probably would have had no problems at all if you had chosen a esphome plug instead of your TS011F that seems like to don’t work yet :crossed_fingers:

https://www.athom.tech/esphome

But one thing is for sure: With great power comes great responsibility :raised_hands:

Ok so I have the same problem with some of my TS011F plugs/sockets

Here is the data in HA

The only thing attached is a small ASUS wifi repeater - drawing around 7W

The data reading from the plug was reset 6 hrs ago

Sensors

Current

58 A

Power

7 W

Summation delivered

4.0 kWh

Voltage

234 V

I mean how can power summation delivered be already 4kWh only after 6 hrs drawing 7W?

They have been installed (hardwired) into my wall - so are going to be costly to remove

Very frustrating

Is there anyway to fix this problem via software thru a firmware upgrade?

How about editing the ZHA cluster etc?

Can I flash these with ESPHome or some other solution?

Would an Intergral helper work?

Thanks