zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Keep user-configured reporting when a device is reconfigured after a definition version change

Open belzadur opened this issue 3 weeks ago • 0 comments

Is your feature request related to a problem? Please describe

After updating Zigbee2MQTT from 2.14.2 to 2.14.3, all my SONOFF S60ZBTPF plugs (12 devices) were silently reconfigured on startup and lost the reporting configuration I had set in the frontend (Reporting tab).

Cause, as far as I can read the code: lib/extension/configure.ts (2.14.3, lines 109–114) reconfigures a device when definition.version differs from the stored meta.configured. zigbee-herdsman-converters 26.125.0 added version "0.0.1" to the S60ZBTPF definition (26.115.1 had none), so every S60 was reconfigured and got the converter defaults again (acCurrentPowerValue 10 / 65000 / 1 instead of my 30 / 3600 / 500).

Impact: the plugs went back to reporting power every 10 s with a 0.01 W threshold. In Home Assistant this added about 66,000 state rows per day and the recorder database grew by roughly 10 % within two weeks. Nothing told me that my settings had been replaced; I only found it by investigating the database growth. One plug (an oven) has deliberately faster reporting for a safety automation; that was replaced as well.

I understand from #4321 and #32001 that reconfiguring on a definition change is intended and that reporting set via the API is not persisted. This request is about not losing user intent silently.

Describe the solution you'd like

One of these, in order of preference:

  1. Persist reporting set via bridge/request/device/reporting/configure or the Reporting tab (per device, endpoint, cluster, attribute) and re-apply it after configure has run.
  2. A per-device option (e.g. in devices.yaml) with reporting overrides that configure applies after the converter defaults.
  3. At minimum, log a warning and publish an event when a reconfigure replaces reporting that differs from the converter defaults, so users notice.

Describe alternatives you've considered

I now run a Home Assistant automation that hourly reads the reporting via bridge/request/device/reporting/read and writes my values back via reporting/configure when they differ. It works, but every user with custom reporting would need such a workaround.

Additional context

Zigbee2MQTT 2.14.3 (add-on 2.14.3-1), zigbee-herdsman-converters 26.125.0, Home Assistant OS, SONOFF S60ZBTPF firmware 2.1.3. Related: #4321, #32001.

belzadur avatar Nov 09 '26 09:11 belzadur