Smart plug total consumption not updated

Hi,

I hope to be in the right place here.

I have a problem using an entity on Zigbee smart plugs. It is some “Tuya zigbee smart plug” from Aliexpress.
I use Tube’s ZB coordinator and Zigbee Home Automation in HAOS.

All entities are updating fine excepting one : “smartenergy_metering_summation_delivered” on both of my smart plugs.

This entity value only updates when I restart HA.

Each “step” is a HA restart.

But “live” power usage is fine.

I don’t really know which information can I bring to help on this “bug”, or how can I resolve it myself.

Here are “Zigbee information” of this plug :

{
  "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.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4417, 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": 260,
      "device_type": "0x010a",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0702",
        "0x0b04",
        "0xe000",
        "0xe001"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZ3000_gjnozsaz",
  "model": "TS011F",
  "class": "zhaquirks.tuya.ts011f_plug.Plug"
}

Thank you a lot for helping.

Flo

Same problem here. I also reported it, but got no replies so far. Seems like this is a bug in ZHA.

I’ll see if I can file an official bug report.

Louis

Hallo Flo,
You can drop a massage here: https://github.com/zigpy/zha-device-handlers/issues
Cheers,

Hi,

Thanks for that. I’ve created

for this issue. Please let me know if you need any more information on my side.

Regards,
Louis