[TS0001_power / _TZ3000_kqvb5akv] Cumulative energy fluctuates, causing large consumption errors

Open
#33,838 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend

Research direction

Start with the linked reports in discussion #24869 and issue #29213, then inspect the TS0001_power device definition and the debug log for cumulative energy reports. The report describes intermittent fluctuations but gives no reliable trigger or specific code location. Done means identifying and fixing the cause so cumulative energy remains stable and increases with consumption.

Written by the indexing model from the issue text.

Description

problem
What happened?

All my TS0001_power devices have experienced intermittent fluctuations in cumulative energy at some point. This causes significant errors in recorded energy usage.

Sometimes normal reporting resumes without intervention. Other times, disconnecting and reconnecting mains power is required. These modules are installed behind outlets, making power cycling highly undesirable.

Local Zigbee2MQTT database details:

• Manufacturer: _TZ3000_kqvb5akv
• Zigbee model: TS0001
• Zigbee2MQTT definition: TS0001_power
• Number of matching devices: 10
• Application version: 74
• Hardware version: 1
• Adapter driver: zstack
• Zigbee-herdsman version: 11.2.0.

What did you expect to happen?

Cumulative consumed energy should increase with consumption and remain stable when there is none, apart from genuine counter resets.

How to reproduce it (minimal and precise)

Occurs intermittently during normal operation; no reliable trigger identified. Every installed TS0001_power device has suffered this at some point.

Zigbee2MQTT version

2.14.3

Adapter firmware version

20240710

Adapter

SMLIGHT SLZB-07p7

Setup

Zigbee2MQTT running as a Home Assistant add-on on a Raspberry Pi with Home Assistant OS (64-bit ARM/aarch64). Adapter driver: zstack.

Linux a0d7b954-ssh 6.18.59-haos-raspi #1 SMP PREEMPT Fri Nov 6 15:02:26 UTC 2026 aarch64 Linux
Alpine Linux 3.24

Device database.db entry

{"id":45,"type":"Router","ieeeAddr":"0xa4c138038c65660e","nwkAddr":14092,"manufId":4417,"manufName":"_TZ3000_kqvb5akv","powerSource":"Mains (single phase)","modelId":"TS0001","epList":[1,242],"endpoints":{"1": {"profId":260,"epId":1,"devId":256,"inClusterList":[3,4,5,6,1794,2820,57344,57345,0],"outClusterList":[25,10],"clusters":{"57344":{"attributes":{"53251":"AAAA"}},"genBasic":{"attributes": {"65503":"�yJ2\u0016K2M2\u0016\u001f�N2\u0016","65506":56,"65508":0,"65534":0,"modelId":"TS0001","manufacturerName":"_TZ3000_kqvb5akv","powerSource":1,"zclVersion":3,"appVersion":74,"stackVersion":0,"hwVersion": 1,"dateCode":""}},"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0,"moesStartUpOnOff":1}},"manuSpecificTuya3":{"attributes": {"53248":0,"53249":0,"53250":0,"53251":0,"53252":0,"53253":0,"switchType":0}},"haElectricalMeasurement":{"attributes": {"acCurrentDivisor":1000,"acCurrentMultiplier":1,"rmsVoltage":240,"rmsCurrent":21,"activePower":0}},"seMetering":{"attributes":{"divisor":100,"multiplier":1,"currentSummDelivered":23495}}},"binds": [{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c0f376","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c0f376","endpointID":1}, {"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0024c0f376","endpointID":1}],"configuredReportings":[{"cluster":1794,"attrId":0,"minRepIntval":0,"maxRepIntval":0,"repChange":257}, {"cluster":2820,"attrId":1291,"minRepIntval":0,"maxRepIntval":0,"repChange":10},{"cluster":2820,"attrId":1288,"minRepIntval":0,"maxRepIntval":0,"repChange":50}, {"cluster":2820,"attrId":1285,"minRepIntval":0,"maxRepIntval":0,"repChange":5}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds": [],"configuredReportings":[],"meta":{}}},"appVersion":74,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta": {"configured":"0.0.0"},"lastSeen":1795739748750}

Debug log

log.txt

Notes

Related reports
• https://github.com/Koenkk/zigbee2mqtt/discussions/24869
• https://github.com/Koenkk/zigbee2mqtt/issues/29213

Dominant language
TypeScript
Stars
15.9k
Forks
2.1k
Avg merge
12h 11m
Merged PRs (30d)
32

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Koenkk/zigbee2mqtt

All issues in Koenkk/zigbee2mqtt

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.