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

feat: Add OTA support for Bticino Shutter 4027C #6049

Merged
merged 1 commit into from
Aug 5, 2023

Conversation

RyuzakiKK
Copy link
Contributor

According to the official documentation, Legrand shutter 067776 and Bticino 4027C share the same NLV firmware.

Please be aware that I didn't personally test this with my K4027C device because I'm not really sure how I'm supposed to deploy those changes in a z2m docker container (if you have some pointers, it would be great).

/cc @SilentT-FR

@Koenkk Koenkk merged commit 72505b9 into Koenkk:master Aug 5, 2023
1 check passed
@Koenkk
Copy link
Owner

Koenkk commented Aug 5, 2023

thanks!

@RyuzakiKK
Copy link
Contributor Author

I just tried to apply an update with two different K4027C but unfortunately, once it reached 100%, in both instances it failed to finalize it:

Zigbee2MQTT:debug 2023-08-05 10:58:03: Got OTA request '{"fieldControl":0,"manufacturerCode":4129,"imageType":15,"fileVersion":2900483}'
Zigbee2MQTT:debug 2023-08-05 10:58:03: ZigbeeOTA: downloaded main index
Zigbee2MQTT:debug 2023-08-05 10:58:03: getNewImage for 'REDACTED', meta {"fileVersion":3555843,"fileSize":255815,"url":"https://github.com/Koenkk/zigbee-OTA/raw/master/images/Legrand/1021-000f-00364203-NLL-54.zigbee","sha512":"82d10f725972503cb08bc30882a2082b5402d694604105dbbd9515b35be8882bd746b1ff7d32c06403cbfd2d46ef9c98c6f6b866984a23baac958015c09d9c36"}
Zigbee2MQTT:debug 2023-08-05 10:58:03: ZigbeeOTA: downloading firmware image from https://github.com/Koenkk/zigbee-OTA/raw/master/images/Legrand/1021-000f-00364203-NLL-54.zigbee
Zigbee2MQTT:debug 2023-08-05 10:58:04: OTA update checksum validation succeeded for 'REDACTED'
Zigbee2MQTT:debug 2023-08-05 10:58:04: getNewImage for 'REDACTED', image header {"otaUpgradeFileIdentifier":{"type":"Buffer","data":[30,241,238,11]},"otaHeaderVersion":256,"otaHeaderLength":56,"otaHeaderFieldControl":0,"manufacturerCode":4129,"imageType":15,"fileVersion":3555843,"zigbeeStackVersion":2,"otaHeaderString":"                                ","totalImageSize":255815}

[...]

Zigbee2MQTT:debug 2023-08-05 11:28:11: Update of 'shutter_kitchen' failed (Error: Timeout: device did not request any image blocks)
Zigbee2MQTT:info  2023-08-05 11:28:11: MQTT publish: topic 'zigbee2mqtt/shutter_kitchen', payload '{"led_in_dark":"ON","linkquality":47,"position":100,"state":"CLOSE","tilt":0,"update":{"installed_version":2900483,"latest_version":3555843,"state":"available"},"update_available":null}'
Zigbee2MQTT:info  2023-08-05 11:28:11: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"shutter_kitchen"},"error":"Update of 'shutter_kitchen' failed (Timeout: device did not request any image blocks)","status":"error","transaction":"aw660-3"}'
Zigbee2MQTT:error 2023-08-05 11:28:11: Update of 'shutter_kitchen' failed (Timeout: device did not request any image blocks)
Zigbee2MQTT:debug 2023-08-05 11:28:11: Error: Timeout: device did not request any image blocks
    at /app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:371:28
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:538:9)
    at processTimers (node:internal/timers:512:7)

@SilentT-FR
Copy link
Contributor

not the same wall switch but same issue Koenkk/zigbee-OTA#328 (comment)

the issue was initial for the powersocket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants