zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[Bug]: OTA page shows update available despite identical installed/available versions (v2.7.1)

Open Asmir1975 opened this issue 11 months ago • 3 comments

What happened?

What happened? After updating to Zigbee2MQTT version 2.7.1 (stable), the OTA update page incorrectly flags devices as having a firmware update available.

As shown in the attached screenshot:

The "Installed version" and "Available version" columns show identical strings (e.g., 0.1.00-2.9.00 for a Philips device).

Despite the versions being identical, the red "Update device firmware" (Geräte-Firmware aktualisieren) button is displayed, suggesting an update is needed.

The displayed version numbers themselves appear unusual (e.g., 0.1.00-2.9.00) compared to the standard firmware ID (e.g., 1.116.8).

Image

Image

What did you expect to happen?

If the "Installed version" matches the "Available version", the "Update device firmware" button should not be shown (or should be a check button), and the device should not be flagged as outdated.

How to reproduce it (minimal and precise)

Update Zigbee2MQTT to version 2.7.1.

Navigate to the OTA page in the frontend.

Click "Check all" (Alle überprüfen).

Observe that devices are listed with an active "Update device firmware" button even if the installed and available version strings match perfectly.

Zigbee2MQTT version

2.7.1

Adapter firmware version

EmberZNet (Revision: 8.0.2 [GA])

Adapter

SMLIGHT SLZB-06M

Setup

Addon on Home Assistent (X64 Mini PC)

Device database.db entry

No response

Debug log

No response

Notes

No response

Asmir1975 avatar Dec 07 '25 20:12 Asmir1975

The displayed version numbers themselves appear unusual (e.g., 0.1.00-2.9.00) compared to the standard firmware ID (e.g., 1.116.8).

Firmware ID is just a "pretty version" that manufacturers can choose to display or not. Installed/available version is the actual firmware version (mandatory) per Zigbee specification (app release.app build stack release.stack build).

Do you see the same thing in WindFront or is it an issue specific to the original frontend? If in both, can you share the debug logs of triggering check for update for one of these devices?

Nerivec avatar Dec 11 '25 01:12 Nerivec

Regarding your questions:

Frontend: I'm using the standard Z2M frontend (I also tested WindFront). However, the problem persists regardless of the user interface.

Affected devices: The following devices are currently affected:

  • huego (Philips Hue Go, Model: LLC020)

  • spot_vr (Philips Hue White Ambiance Spot, Model: LTW013)

For example, models LTG005 and LST002 are not affected and are working perfectly.

These are just "false positives" during OTA updates.

Logs: I triggered an update check for both affected devices. As you can see, the frontend reports that an update is available, but the OTA check confirms that no new image was found.

info 2025-12-11 07:05:25 z2m: Updating 'huego' to latest firmware
info 2025-12-11 07:05:25 z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/huego', payload '{"brightness":254,"color":{"h":72.8,"hue":72.8,"s":2,"saturation":2,"x":0.3812,"y":0.3793},"color_mode":"color_temp","color_temp":173,"color_temp_startup":250,"effect":null,"last_seen":"2025-12-11T06:05:25.505Z","linkquality":164,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":1124103171,"latest_version":1124103171,"state":"available"}}'
info 2025-12-11 07:05:25 zhc:ota: [0x00178801047aa009 | LLC020] Getting latest image, meta: {"fileName":"LivingColors-Atmel-Target_0012.sbl-ota","fileVersion":1124103171,"fileSize":256696,"url":"[https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Hue/LivingColors-Atmel-Target_0012.sbl-ota","imageType":264,"manufacturerCode":4107,"sha512":"5c0736a0d4f191a214a209fca6a1984a5ca2caa073b79dccc3ea62cfb0dd4b6755d92770f49bdc904ddafaa586a65d8b71160f74420ff937007f79f5cc477389","otaHeaderString":"","originalUrl":"https://otau.meethue.com/storage/ZGB_100B_0108/a2470745-062a-4159-adc5-5162080aacb5/LivingColors-Atmel-Target_0012.sbl-ota","minFileVersion":1107326256}](https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Hue/LivingColors-Atmel-Target_0012.sbl-ota%22,%22imageType%22:264,%22manufacturerCode%22:4107,%22sha512%22:%225c0736a0d4f191a214a209fca6a1984a5ca2caa073b79dccc3ea62cfb0dd4b6755d92770f49bdc904ddafaa586a65d8b71160f74420ff937007f79f5cc477389%22,%22otaHeaderString%22:%22%22,%22originalUrl%22:%22https://otau.meethue.com/storage/ZGB_100B_0108/a2470745-062a-4159-adc5-5162080aacb5/LivingColors-Atmel-Target_0012.sbl-ota%22,%22minFileVersion%22:1107326256%7D)
info 2025-12-11 07:05:25 zhc:ota: [0x00178801047aa009 | LLC020] No image currently available (No new image available)
error 2025-12-11 07:05:25 z2m: Update of 'huego' failed (No image currently available)
info 2025-12-11 07:08:34 z2m: Updating 'spot_vr' to latest firmware
info 2025-12-11 07:08:34 z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/spot_vr', payload '{"brightness":254,"color_mode":"color_temp","color_temp":222,"color_temp_startup":250,"effect":null,"last_seen":"2025-12-11T06:08:34.664Z","linkquality":216,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":16787712,"latest_version":16787712,"state":"available"}}'
info 2025-12-11 07:08:35 zhc:ota: [0x0017880102aafefc | LTW013] Getting latest image, meta: {"fileName":"100B-010C-01002900-ConfLight-Lamps_0012.zigbee","fileVersion":16787712,"fileSize":266684,"originalUrl":"[https://otau.meethue.com/storage/zgb_100b_010c/7547f504-7711-47e9-8564-219d31eabeb4/100B-010C-01002900-ConfLight-Lamps_0012.zigbee","url":"https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Hue/100B-010C-01002900-ConfLight-Lamps_0012.zigbee","imageType":268,"manufacturerCode":4107,"sha512":"b49b383eb92c7c7afcf6ef49938db4f7f1b551daca9de2de2ea910d9aed395085032061631adaeb60b4d32fbcaf30468300a5e3117d431d8c9a1f65c24c269aa","otaHeaderString":"","minFileVersion":16783874}](https://otau.meethue.com/storage/zgb_100b_010c/7547f504-7711-47e9-8564-219d31eabeb4/100B-010C-01002900-ConfLight-Lamps_0012.zigbee%22,%22url%22:%22https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Hue/100B-010C-01002900-ConfLight-Lamps_0012.zigbee%22,%22imageType%22:268,%22manufacturerCode%22:4107,%22sha512%22:%22b49b383eb92c7c7afcf6ef49938db4f7f1b551daca9de2de2ea910d9aed395085032061631adaeb60b4d32fbcaf30468300a5e3117d431d8c9a1f65c24c269aa%22,%22otaHeaderString%22:%22%22,%22minFileVersion%22:16783874%7D)
info 2025-12-11 07:08:35 zhc:ota: [0x0017880102aafefc | LTW013] No image currently available (No new image available)
error 2025-12-11 07:08:35 z2m: Update of 'spot_vr' failed (No image currently available)```

Best regards,
Asmir1975

Asmir1975 avatar Dec 11 '25 06:12 Asmir1975

Hi @Nerivec after switching to the Edge 2.7.1-dev commit: 3460f157 , the OTA bug is gone. On Stable 2.7.1 still present.

Image

Best regards.

Asmir1975 avatar Dec 11 '25 10:12 Asmir1975