Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEDVANCE 4058075729209 - Update error #22687

Closed
groggy99 opened this issue May 18, 2024 · 10 comments
Closed

LEDVANCE 4058075729209 - Update error #22687

groggy99 opened this issue May 18, 2024 · 10 comments
Labels
problem Something isn't working

Comments

@groggy99
Copy link

groggy99 commented May 18, 2024

What happened?

Error updating firmware of LEDVANCE 4058075729209 to version 52442720 OTA

What did you expect to happen?

Update LEDVANCE 4058075729209 to version 52442720

How to reproduce it (minimal and precise)

klicking OTA update button in frontend

Zigbee2MQTT version

1.37.1

Adapter firmware version

20230507

Adapter

SONOFF ZB Dongle-P

Setup

QNAP NAS TS-453Bmini
docker

Client:
Version: 20.10.27-qnap1
API version: 1.41
Go version: go1.19.12
Git commit: 662936b
Built: Mon Dec 25 08:41:44 2023
OS/Arch: linux/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.27-qnap1
API version: 1.41 (minimum version 1.12)
Go version: go1.20.10
Git commit: 8a4e2cd
Built: Mon Dec 25 08:42:51 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.6.22
GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca
runc:
Version: 1.1.8
GitCommit: v1.1.8-0-g82f18fe0
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Debug log

[2024-05-18 20:01:50] debug: z2m: Received Zigbee message from 'ab/licht/terrasse', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":0,"fileVersion":51656288,"imageType":208,"manufacturerCode":4489}' from endpoint 1 with groupID 0
[2024-05-18 20:01:50] debug: z2m: MQTT publish: topic 'zigbee2mqtt/ab/licht/terrasse', payload '{"brightness":254,"last_seen":"2024-05-18T20:01:50+02:00","linkquality":18,"state":"OFF","update":{"installed_version":51656288,"latest_version":52442720,"state":"available"},"update_available":null}'
[2024-05-18 20:01:50] debug: zhc:ota:common: Got request '{"fieldControl":0,"manufacturerCode":4489,"imageType":208,"fileVersion":51656288}'
[2024-05-18 20:01:50] debug: zhc:ota:ledvance: Call getImageMeta for A60 FIL DIM T
[2024-05-18 20:01:50] debug: zhc:ota:common: Getting new image for '0xf0d1b8be240817c7' (A60 FIL DIM T), latest meta {"fileVersion":52442720,"fileSize":188416,"url":"https://api.update.ledvance.com/v1/zigbee/firmwares/download?company=4489&product=208&version=3.32.54.96","sha256":"f53af0b255d589c795913081560de211b162b491dcb5ea865546dec15f433a78"}
[2024-05-18 20:01:50] debug: zh:controller:endpoint: ZCL command 0xf0d1b8be2408a95e/1 genBasic.read(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false})
[2024-05-18 20:01:50] debug: zh:zstack: sendZclFrameToEndpointInternal 0xf0d1b8be2408a95e:13491/1 (0,0,1)
[2024-05-18 20:01:50] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":13491,"destendpoint":1,"srcendpoint":1,"clusterid":0,"transid":49,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[16,43,0,0,0]}}
[2024-05-18 20:01:50] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,179,52,1,1,0,0,49,0,30,5,16,43,0,0,0,188]
[2024-05-18 20:01:50] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100]
[2024-05-18 20:01:50] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100]
[2024-05-18 20:01:50] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100
[2024-05-18 20:01:50] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0}
[2024-05-18 20:01:50] debug: zh:zstack:unpi:parser: --- parseNext []
[2024-05-18 20:01:50] debug: zhc:ota:common: Update checksum validation succeeded for '0xf0d1b8be240817c7' (A60 FIL DIM T)
[2024-05-18 20:01:50] debug: zhc:ota:common: Partially failed to parse the image, continuing anyway...
[2024-05-18 20:01:50] debug: z2m: Update of 'ab/licht/terrasse' failed (AssertionError [ERR_ASSERTION]: Size mismatch)
[2024-05-18 20:01:50] debug: z2m: MQTT publish: topic 'zigbee2mqtt/ab/licht/terrasse', payload '{"brightness":254,"last_seen":"2024-05-18T20:01:50+02:00","linkquality":18,"state":"OFF","update":{"installed_version":51656288,"latest_version":52442720,"state":"available"},"update_available":null}'
[2024-05-18 20:01:50] debug: z2m: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"ab/licht/terrasse"},"error":"Update of 'ab/licht/terrasse' failed (Size mismatch)","status":"error","transaction":"5d556-2"}'
[2024-05-18 20:01:50] error: z2m: Update of 'ab/licht/terrasse' failed (Size mismatch)
[2024-05-18 20:01:50] debug: z2m: AssertionError [ERR_ASSERTION]: Size mismatch
at parseImage (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:205:11)
at getNewImage (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:613:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.updateToLatest (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:438:19)
at OTAUpdate.onMQTTMessage (/app/lib/extension/otaUpdate.ts:273:41)
at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17)

@groggy99 groggy99 added the problem Something isn't working label May 18, 2024
@christopherkutzmann
Copy link

christopherkutzmann commented Jun 18, 2024

I have exact the same issue! I am very interested in a solution.

My logs:

[2024-06-18 21:01:35] info: z2m: Updating 'L-E-0' to latest firmware
[2024-06-18 21:01:35] debug: zh:controller:endpoint: ZCL command 0xf0d1b8be240817a3/1 genBasic.read(["dateCode","swBuildId"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false,"sendPolicy":"immediate"})
[2024-06-18 21:01:35] debug: zh:ezsp: sendZclFrameToEndpointInternal 0xf0d1b8be240817a3:49598/1 (0,0,1), timeout=10000
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: ==> sendUnicast: {"type":0,"indexOrDestination":49598,"apsFrame":{"profileId":260,"sequence":111,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":256},"messageTag":112,"message":{"type":"Buffer","data":[16,171,0,6,0,0,64]}}
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: ==> {"cls":"sendUnicast","id":52,"isRequest":true,"type":0,"indexOrDestination":49598,"apsFrame":{"profileId":260,"sequence":111,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":256},"messageTag":112,"message":{"type":"Buffer","data":[16,171,0,6,0,0,64]}}
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> DATA (0,6,0): 400001340000bec1040100000101000100006f700710ab0006000040
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> [060221a9602a150c98904b25aa5493499d4e27c49dc97720fdc06389bc8e5a7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: -?- waiting (1)
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- [6102a1a9602a157317817e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- DATA (6,1,0): 6102a1a9602a157317817e
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> ACK (7)
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> [87009f7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- ACK (1): 6102a1a9602a157317817e
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== Frame: 408001340000c1
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== 0x34: {"cls":"sendUnicast","id":52,"isRequest":false,"status":0,"sequence":193}
[2024-06-18 21:01:35] debug: zh:ezsp:uart: -+- waiting (1) success
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- [7102b1a96b2a150c98904b25aa5493499d4e276a9dce6751047e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- DATA (7,1,0): 7102b1a96b2a150c98904b25aa5493499d4e276a9dce6751047e
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> ACK (0)
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> [8070787e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- ACK (1): 7102b1a96b2a150c98904b25aa5493499d4e276a9dce6751047e
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== Frame: 4090013f0000bec104010000010100010000c1700000
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== 0x3f: {"cls":"messageSentHandler","id":63,"isRequest":false,"type":0,"indexOrDestination":49598,"apsFrame":{"profileId":260,"sequence":193,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":256},"messageTag":112,"status":0,"message":{"type":"Buffer","data":[]}}
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- [0102b1a97d312a15b658944a24ab1593499cf15b10530f9874eedec888fa7d5eb9a7abcd9c67bfccf6efe6e45fbc4405807e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- DATA (0,1,0): 0102b1a9112a15b658944a24ab1593499cf15b10530f9874eedec888fa7eb9a7abcd9c67bfccf6efe6e45fbc4405807e
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> ACK (1)
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> [8160597e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- ACK (1): 0102b1a9112a15b658944a24ab1593499cf15b10530f9874eedec888fa7eb9a7abcd9c67bfccf6efe6e45fbc4405807e
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== Frame: 40900145000004010000010140010000bf7cbbbec1ffff1318ab010600860040004208303331343336363002
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== 0x45: {"cls":"incomingMessageHandler","id":69,"isRequest":false,"type":0,"apsFrame":{"profileId":260,"sequence":191,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":320},"lastHopLqi":124,"lastHopRssi":-69,"sender":49598,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[24,171,1,6,0,134,0,64,0,66,8,48,51,49,52,51,54,54,48]}}
[2024-06-18 21:01:35] debug: zh:ezsp: processMessage: {"messageType":0,"apsFrame":{"profileId":260,"sequence":191,"clusterId":0,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":320},"lqi":124,"rssi":-69,"sender":49598,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[24,171,1,6,0,134,0,64,0,66,8,48,51,49,52,51,54,54,48]}}
[2024-06-18 21:01:35] debug: zh:controller: Received payload: clusterID=0, address=49598, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=124, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"manufacturerCode":null,"transactionSequenceNumber":171,"commandIdentifier":1},"payload":[{"attrId":6,"status":134},{"attrId":16384,"status":0,"dataType":66,"attrData":"03143660"}],"command":{"ID":1,"name":"readRsp","parameters":[{"name":"attrId","type":33},{"name":"status","type":32},{"name":"dataType","type":32,"conditions":[{"type":"statusEquals","value":0}]},{"name":"attrData","type":1000,"conditions":[{"type":"statusEquals","value":0}]}]}}
[2024-06-18 21:01:35] debug: z2m: Received Zigbee message from 'L-E-0', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"03143660"}' from endpoint 1 with groupID 0
[2024-06-18 21:01:35] debug: zh:controller:endpoint: ZCL command 0xf0d1b8be240817a3/1 genBasic.read(["dateCode","swBuildId"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false,"sendPolicy":"immediate"}) failed (Status 'UNSUPPORTED_ATTRIBUTE')
[2024-06-18 21:01:35] debug: zhc:ota:common: Updating to latest '0xf0d1b8be240817a3' (A60 FIL DIM T)
[2024-06-18 21:01:35] debug: zhc:ota:common: Using endpoint '1'
[2024-06-18 21:01:35] debug: zh:controller:endpoint: CommandResponse 0xf0d1b8be240817a3/1 genOta.imageNotify({"payloadType":0,"queryJitter":100}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false,"sendPolicy":"immediate"})
[2024-06-18 21:01:35] debug: zh:ezsp: sendZclFrameToEndpointInternal 0xf0d1b8be240817a3:49598/1 (0,0,1), timeout=10000
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: ==> sendUnicast: {"type":0,"indexOrDestination":49598,"apsFrame":{"profileId":260,"sequence":112,"clusterId":25,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":256},"messageTag":113,"message":{"type":"Buffer","data":[25,172,0,0,100]}}
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: ==> {"cls":"sendUnicast","id":52,"isRequest":true,"type":0,"indexOrDestination":49598,"apsFrame":{"profileId":260,"sequence":112,"clusterId":25,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":256},"messageTag":113,"message":{"type":"Buffer","data":[25,172,0,0,100]}}
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> DATA (1,1,0): 410001340000bec10401190001010001000070710519ac000064
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> [7d310321a9602a150c98904b3caa5493499d4e27db9ccb7d5e27fdc607be5d7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: -?- waiting (2)
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- [1203a1a9602a1570e7fa7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- DATA (1,2,0): 1203a1a9602a1570e7fa7e
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> ACK (2)
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> [82503a7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- ACK (2): 1203a1a9602a1570e7fa7e
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== Frame: 418001340000c2
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== 0x34: {"cls":"sendUnicast","id":52,"isRequest":false,"status":0,"sequence":194}
[2024-06-18 21:01:35] debug: zh:ezsp:uart: -+- waiting (2) success
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- [2203b1a96b2a150c98904b3caa5493499d4e27699cce67e10e7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- DATA (2,2,0): 2203b1a96b2a150c98904b3caa5493499d4e27699cce67e10e7e
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> ACK (3)
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> [83401b7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- ACK (2): 2203b1a96b2a150c98904b3caa5493499d4e27699cce67e10e7e
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== Frame: 4190013f0000bec104011900010100010000c2710000
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== 0x3f: {"cls":"messageSentHandler","id":63,"isRequest":false,"type":0,"indexOrDestination":49598,"apsFrame":{"profileId":260,"sequence":194,"clusterId":25,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":256},"messageTag":113,"status":0,"message":{"type":"Buffer","data":[]}}
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- [3203b1a97d312a15b6588d4a24ab1593499c8e5f7d31530f9874f1c76a88fcf72e77ebade87b8cfd091d7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- DATA (3,2,0): 3203b1a9112a15b6588d4a24ab1593499c8e5f11530f9874f1c76a88fcf72e77ebade87b8cfd091d7e
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> ACK (4)
[2024-06-18 21:01:35] debug: zh:ezsp:uart: --> [8430fc7e]
[2024-06-18 21:01:35] debug: zh:ezsp:uart: <-- ACK (2): 3203b1a9112a15b6588d4a24ab1593499c8e5f11530f9874f1c76a88fcf72e77ebade87b8cfd091d7e
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== Frame: 41900145000004011900010140010000c078babec1ffff0c010901008911d0006036140302
[2024-06-18 21:01:35] debug: zh:ezsp:ezsp: <== 0x45: {"cls":"incomingMessageHandler","id":69,"isRequest":false,"type":0,"apsFrame":{"profileId":260,"sequence":192,"clusterId":25,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":320},"lastHopLqi":120,"lastHopRssi":-70,"sender":49598,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[1,9,1,0,137,17,208,0,96,54,20,3]}}
[2024-06-18 21:01:35] debug: zh:ezsp: processMessage: {"messageType":0,"apsFrame":{"profileId":260,"sequence":192,"clusterId":25,"sourceEndpoint":1,"destinationEndpoint":1,"groupId":0,"options":320},"lqi":120,"rssi":-70,"sender":49598,"bindingIndex":255,"addressIndex":255,"message":{"type":"Buffer","data":[1,9,1,0,137,17,208,0,96,54,20,3]}}
[2024-06-18 21:01:35] debug: zh:controller: Received payload: clusterID=25, address=49598, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=120, frame={"header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":false,"reservedBits":0},"manufacturerCode":null,"transactionSequenceNumber":9,"commandIdentifier":1},"payload":{"fieldControl":0,"manufacturerCode":4489,"imageType":208,"fileVersion":51656288},"command":{"ID":1,"response":2,"parameters":[{"name":"fieldControl","type":32},{"name":"manufacturerCode","type":33},{"name":"imageType","type":33},{"name":"fileVersion","type":35}],"name":"queryNextImageRequest"}}
[2024-06-18 21:01:35] debug: z2m: Received Zigbee message from 'L-E-0', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":0,"fileVersion":51656288,"imageType":208,"manufacturerCode":4489}' from endpoint 1 with groupID 0
[2024-06-18 21:01:35] debug: zhc:ota:common: Got request '{"fieldControl":0,"manufacturerCode":4489,"imageType":208,"fileVersion":51656288}'
[2024-06-18 21:01:35] debug: zhc:ota:ledvance: Call getImageMeta for A60 FIL DIM T
[2024-06-18 21:01:36] debug: zhc:ota:common: Getting new image for '0xf0d1b8be240817a3' (A60 FIL DIM T), latest meta {"fileVersion":52442720,"fileSize":188416,"url":"https://api.update.ledvance.com/v1/zigbee/firmwares/download?company=4489&product=208&version=3.32.54.96","sha256":"f53af0b255d589c795913081560de211b162b491dcb5ea865546dec15f433a78"}
[2024-06-18 21:01:37] debug: zhc:ota:common: Update checksum validation succeeded for '0xf0d1b8be240817a3' (A60 FIL DIM T)
[2024-06-18 21:01:37] debug: zhc:ota:common: Partially failed to parse the image, continuing anyway...
[2024-06-18 21:01:37] debug: z2m: Update of 'L-E-0' failed (AssertionError [ERR_ASSERTION]: Size mismatch)
[2024-06-18 21:01:37] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/L-E-0', payload '{"brightness":238,"linkquality":120,"state":"ON","update":{"installed_version":51656288,"latest_version":52442720,"state":"available"}}'
[2024-06-18 21:01:37] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"L-E-0"},"error":"Update of 'L-E-0' failed (Size mismatch)","status":"error","transaction":"f2vkc-5"}'
[2024-06-18 21:01:37] error: z2m: Update of 'L-E-0' failed (Size mismatch)
[2024-06-18 21:01:37] debug: z2m: AssertionError [ERR_ASSERTION]: Size mismatch

@DanielB1982
Copy link

Hi. I have the same Problem.

LEDVANCE 4058075729247 Globe125
Zigbee2MQTT-Version 1.39.1 commit: 5bdf90d
Home Assistant SkyConnect USB Hub

info 2024-08-30 08:29:23z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Lampe-Stehlampe-Wohnzimmer', payload '{"brightness":51,"last_seen":"2024-08-30T08:29:16+02:00","linkquality":160,"state":"OFF","update":{"installed_version":51656288,"latest_version":52442720,"state":"available"},"update_available":null}' info 2024-08-30 08:29:23z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"Lampe-Stehlampe-Wohnzimmer"},"error":"Update of 'Lampe-Stehlampe-Wohnzimmer' failed (Size mismatch)","status":"error","transaction":"rppf4-2"}' error 2024-08-30 08:29:23z2m: Update of 'Lampe-Stehlampe-Wohnzimmer' failed (Size mismatch)LEDVANCE 4058075729247

@itchensen
Copy link

itchensen commented Sep 2, 2024

Hi, I also have the same problem with one of my plugs. The other one processed nicely.
Any help appreciated.

LEDVANCE 4058075729322 PLUG COMPACT EU T
Zigbee2MQTT-Version 1.40.0 commit: unknown
Adapter SONOFF ZB Dongle-P, Firmware: 20210128

info 2024-09-02 16:03:23z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Außensteckdose 2', payload '{"device":{"applicationVersion":1,"friendlyName":"Außensteckdose 2","hardwareVersion":0,"ieeeAddr":"0xf0d1b8be2408ab5e","manufacturerID":4489,"manufacturerName":"LEDVANCE","model":"4058075729322","networkAddress":35577,"powerSource":"Mains (single phase)","softwareBuildID":"03203672","stackVersion":2,"type":"Router","zclVersion":8},"last_seen":"2024-09-02T16:03:22+02:00","linkquality":69,"state":"OFF","update":{"installed_version":52442738,"latest_version":53163636,"state":"available"},"update_available":true}' info 2024-09-02 16:03:23z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Update of 'Außensteckdose 2' failed (Size mismatch)","meta":{"device":"Außensteckdose 2","status":"update_failed"},"type":"ota_update"}' info 2024-09-02 16:03:23z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"Außensteckdose 2"},"error":"Update of 'Außensteckdose 2' failed (Size mismatch)","status":"error","transaction":"q2imu-4"}' error 2024-09-02 16:03:23z2m: Update of 'Außensteckdose 2' failed (Size mismatch)

edit: attached debug.log

@dohco-gh
Copy link

dohco-gh commented Sep 3, 2024

Same problem here #23534

image

@Koenkk
Copy link
Owner

Koenkk commented Sep 3, 2024

For those running in Docker, can you try the following:

  1. Enter the z2m container: docker exec -it Z2M_CONTAINER_NAME sh
  2. apk add nano
  3. nano node_modules/zigbee-herdsman-converters/lib/ota/common.js, remove: (0, assert_1.default)(position === header.totalImageSize, `Size mismatch`);
  4. Save, and exit
  5. docker restart Z2M_CONTAINER_NAME

See if the issue is fixed, if it now throws: Image size mismatch, then also remove (0, assert_1.default)(!meta.fileSize || image.header.totalImageSize === meta.fileSize, Image size mismatch);

@itchensen
Copy link

Thanks for your fast response. Tried the modification and can confirm, that the update now succeeds.
In my case, only the first modification is needed - the "image size mismatch" did not occur.

@Koenkk
Copy link
Owner

Koenkk commented Sep 4, 2024

@itchensen many thanks for testing, integrated the fix!

Changes will be available in the dev branch in a few hours from now.

@Koenkk Koenkk closed this as completed Sep 4, 2024
Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Sep 4, 2024
@groggy99
Copy link
Author

groggy99 commented Sep 4, 2024

Many thanks to @itchensen and @Koenkk to solve this problem.

@NickTheRipper
Copy link

Many thanks from me too. I installed the dev version and all OTA updates for my lamps work now. Thank you for the really great and fast support.

@dohco-gh
Copy link

dohco-gh commented Sep 8, 2024

A little late to the party, but I would also say thanks!
Installed main branch (1.40.1-1) and can confirm that it works now.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants