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

Aperta
#33,838 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
15.9k
Fork
2.1k
Merge medio
12h 11m
PR unite (30g)
32

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Koenkk/zigbee2mqtt

Tutte le issue di Koenkk/zigbee2mqtt

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.