[Tuya SPM02V2.5] HA Log spam: "dict object has no attribute data_report_duration"
What happened?
I am using the Tuya SPM02V2.5 (3-Phase Energy Monitor) with Home Assistant.
The logs are constantly flooded with template warnings whenever the device sends an update (e.g. voltage/power change), because the data_report_duration attribute is missing in the payload, but Z2M exposes it as ea.STATE_SET.
What did you expect to happen?
I expected no template warnings in the Home Assistant logs for missing attributes in the payload.
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
2.7.2
Adapter firmware version
{"build":397,"ezsp":14,"major":8,"minor":0,"patch":2,"revision":"8.0.2 [GA]","special":0,"type":170}
Adapter
EmberZNet
Setup
os: #1 SMP PREEMPT_DYNAMIC Tue Dec 9 13:46:35 UTC 2025 - 6.12.60-haos - x64
node: v22.16.0
ha: true
Device database.db entry
No response
Debug log
No response
Notes
Device
software_build_id: undefined
date_code: ``
endpoints:
{"1":{"bindings":[],"clusters":{"input":["genBasic","genGroups","genScenes","manuSpecificTuya"],"output":["genOta","genTime"]},"configured_reportings":[],"scenes":[]}}
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days