-
Notifications
You must be signed in to change notification settings - Fork 203
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
Legrand 067775/741811 update invalid image failure #328
Comments
Original post : Koenkk/zigbee2mqtt#17709 Same problem for me The Firmware files was downloaded from Legrand Website I have open a post on the forum of legrand i Cant sniffing my zigbee traffic to capture the OTA i have tested to capture from ethernet network but contrary from this howto : https://github.com/zigbeefordomoticz/wiki/blob/master/en-eng/Corner_Retreiving-Legrand-Firmware.md from @pipiche38 i dont see same url |
@benjR You have Capture the 78 OTA Files and it was the same issue with your file, you have an idea about my capture ? i have this Gateway @essegi65 just for follow the issue and an user with same issue with bticino product @rossowl just for follow the issue, you have 46 outlet no news with the new file from legrand, you have better experiance ? @vezyr same issue follow the issue @novisys same issue follow the issue @sekot same issue i thinks follow the issue @essegi65 same issue follow the issue |
I used another gateway, but here is my theory : I think the firmware files are fine (I used the same method for the other Legrand device I pushed and managed to update through z2m locally) but there is an issue on how the files are matched to the devices, seems like it's trying to apply to a wide scope of devices instead of just the single corresponding device. When I added the fw file I sniffed I used the node tool provided to do so, and instead of adding some new lines it replaced another fw for another device in the json file. So I'm thinking both issue could be the same : the detection of the device is not working well on Legrand files or products (same info? same ids?) therefore when trying to update it is probably using the wrong file on the wrong device. |
ok i have a beginning of response about legrand https://developer.legrand.com/forums/topic/nlc-firmware-version/#post-9734 they are aware about the difference between the version number which is written in the file and those which are provided by the zigbee stack |
yes because the precedent firmware is the NLP v74, you have replaced that by the v78 3b61e15#diff-7aebb122a6ea8a2749d60cb05b7e103c9eae6e2e85e48d2d6cd9e20b63013975L1539-L1541 and i you can see the firmware file from legrand i use also the node script and it replace your c0234dd#diff-7aebb122a6ea8a2749d60cb05b7e103c9eae6e2e85e48d2d6cd9e20b63013975R1539-R1541 the script detect same version same size but not the same checksum... enough to pull your hair out
here is your PR you have writen : Legrand-412171-78.fw NLP Firmware is for this devices : https://static.developer.legrand.com/files/2023/02/Connected-outlet.xlsx Cloud legrand firmware say NLPO but i thinks its use the same firmware |
@benjR Comparing your file and the legrand firmware website Only 2 lines is not equal the first and the last buts its not exploitable file in notepad++ i dont know software can read this |
Normaly new info next week |
🤞🏻 |
Hi all Legrand respond : If anyone of subscribed user with same problem can capture the traffic and identify the version from you start upgrade For me from v74 ( "installed_version": 4867071, ) and v62 ("installed_version": 4080131) not work |
Ehhhh i have testing to simply reboot the socket by using my circuit breaker and i have clic update just after apear online i make more socket tommorow,,, you know the WAF... If you can test other... Cordially |
Not work for other socket... |
Its because it was in older version |
Hmm, interesting. I have two wall switches here (067771) and am trying to upgrade them. Both have The first one was not power cycled. This shows the "invalid image" error (see before_reboot.txt). The second one I rebooted with the circuit breaker (for ~15 sec), then clicked update as soon as the switch appeared again. Here I see several I attach the two logs from z2m, but probably it's the same that you folks see... |
I also do not understand in the case of NLF: It says on developer.legrand.com that the version is 72. Now, 474203 is the actual version in the file header, but maybe there was a mistake when uploading? |
I updated to version 1.32.2 but I still have problems updating the "bticino" K4531C devices (zigbee associates them as LEGRAND 067775/741811) currente firmware version 004A. |
No news from legrand forum |
Same problem for me : impossible to update Legrand 412170 Firmware passed of 0025 to 004e on 1/3 Legrand 412170 Does it possible to force the falsh with the firmware file under Z2M |
@SilentT-FR I think we should disable OTA for now, agree? (which devices are affected?) |
I don't know what to do... |
@titou4307 zigbee2mqtt settings OTA Disable automatic update check |
Same issue with a Bticino F20T60A that is a Legrand 412015 say invalid image. |
@titou4307 does it work for anyone? If not, we should disable it. |
@Koenkk it's impossible to upgrade legrand devices to latest firmware. So I think you can disable it ! |
Hello, same issue here when using with skyconnect dongle. I have installed zigbee2mqtt on my macbook, connected older sonoff zigbee 3.0 stick and made upgrade. After upgrade i have powered off circuit breaker with all lights for 2 minutes. Then my device was updated properly. |
Same issue. This is so annoying. Cannot do anything :s |
I wonder if the Legrand gateway would make the update process easier... I have one coming next week. |
Sure. OTA Legrand firmware is more complexe with z2m or other lib...
I like Legrand for the design and product quality.
I don't like legrand (i hate 😀😂) for zigbee implémentation by Legrand
Le lun. 11 mars 2024, 17:56, ddrag001 ***@***.***> a écrit :
… I wonder if the Legrand gateway would make the update process easier... I
have one coming next week.
—
Reply to this email directly, view it on GitHub
<#328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQE5FX5PT2F5ZIR7WRB5QDYXXO3NAVCNFSM6AAAAAAZMBFRIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBYHE2TANZUGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
That's weird. Originally, my power sockets 067775/741811 came with firmware version 54529536 and the power consumption was not working, so I forced the update using the NLP-74, and now it says fw version 4867071, 20180307 004a and everything works, but that is actually downgrade lol what a mess . |
Quick update: I was able to upgrade by turning off the circuit breaker for 2min. then as soon as I turn it back on, within less than a minute, I initiated the update and after about 20 min it was successfully updated from 004a (4867071) to 0053 (5456895) and everything works. |
Hello,
Same for me than ddrag001, while it was not possible to update it for w while, I succeed today.
Model : Legrand 412171
Version : 4e
Zigbee2MQTT : version 1.36.0 <https://github.com/Koenkk/zigbee2mqtt/releases/tag/1.36.0> main branch
Coordinator type : zStack3x0
Coordinator revision : 20230507
What I did (probably some are useless) :
* Circuit break for 2 mn
* Push 412171 On/Off front button to flush any residual power (probably useless)
* Circuit re-powered
* Push 412171 On/Off as it reconnect the mondule to coordinator
* Immediately start OTA
* OTA start few seconds after
* On my previous tries it was failing after 100% device moving back to 4e.
* Here it worked and 412171 was updated to 0053 date 20221130
De : ddrag001 ***@***.***>
Envoyé : mardi 12 mars 2024 13:14
À : Koenkk/zigbee-OTA ***@***.***>
Cc : marcbernis ***@***.***>; Mention ***@***.***>
Objet : Re: [Koenkk/zigbee-OTA] Legrand 067775/741811 update invalid image failure (Issue #328)
Quick update: I was able to upgrade by turning off the circuit breaker for 2min. then as soon as I turn it back on, within less than a minute, I initiated the update and after about 20 min it was successfully updated from 004a (4867071) to 0053 (5456895) and everything works.
—
Reply to this email directly, view it on GitHub <#328 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ANAXMN235TPY2PMC6T2P4BDYX3WPJAVCNFSM6AAAAAAZMBFRIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGUYTENZVHE> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ANAXMN3NBUYOT7XYVDQ7CN3YX3WPJA5CNFSM6AAAAAAZMBFRIKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTWWQJLO.gif> Message ID: ***@***.***>
|
@marcbernis I am glad you got it updated. My socket also shows fw 0053 but with a build date 20180307. That is weird. I have two more of these.I am fighting with the second one. Now after the NLP-74 fw forced update procedure, the power consumption was not working (worked on the 1st socket), but I suspected the entries in the reporting were just not added which I did and then it worked. What I also noticed is that for two identical devices Legrand (067775/741811) its giving me a different upgrade path |
For legrand devices, the firmware build date is actually the device manufacturing date. It won't change via firmware update. |
Hi there, The last couple of firmwares have been quite a struggle indeed.
or use the attached file locally. common.ts.txt Also, generally speaking, please open a new ticket referencing this one, instead of writing into a closed thread, since this makes tracking way more complicated. Cheers, |
THanks @FabianMangold for the feedback. I will try. Can I abuse you? I'm not sure where to place common.ts under my Z2M docker container ? Cheers, |
Oh maybe I speak too quickly. |
Thanks again. This is the right files. I made the change I'm gonna try this and keep you posted ! |
Feedback: This is working super well. @FabianMangold So what is working well (some device ask two updates):
This time it should complete. Thanks a lot ! |
I have been able to update my 3 sockets using the method I posted above, however it's a little tricky, but it gets the job done eventually. |
@ddrag001 the ts file is not compiled yet. I had to edit this exact file: I don't know where it can be located on your bare metal system. I have to edit this file again every time I recreate the docker container. @FabianMangold I had to put 1800000 ms instead your 900000ms. |
Hi @r0m1CH , Thanks for the feedback. You are right, my value was based on a somewhat faster update (i had decreased the delay between packets for troubleshooting purposes) and of course of a less congested network. I've created PR #7212 so that the fix makes into the DEV branch. |
Hello. Just FYI, I switched the Z2M add-on in HA to the edge branch, which includes this PR |
Hi, did i miss something to do ? im in 1.36.1 OOTB who normaly fix this issue, but still have same behavior fo 412170, 412171 ty |
Hello I cannot update Legrand 412171 even using Z2M dev branch. Many thanks for support! I'm using Z2M Edge (1.37.1-dev commit: 9f5b5d1 over HA. Zigbee2MQTT version 1.37.1-dev commit: 9f5b5d1 Initial version of 41271: Target version of 41271: The update upload work to the end but it finished saying it updated to same version (see logs below): I'm using Z2M Edge (1.37.1-dev commit: 9f5b5d1 over HA. ==================================================================================================================================================================== => From verion 2441731 SW Build 0025 to 5456895 SW Buils 0053 Info 2024-05-30 14:47:33Update of 'Chauffe Eau Legrand' at 7.89%, ≈ 20 minutes remaining Info 2024-05-30 15:06:33Finished update of 'Chauffe Eau Legrand' => Update said from 5456895 to 5456895 (looks maybe abnormal) ==================================================================================================================================================================== => Update said from 0025 to 0025 (initial version 2441731) Info 2024-05-30 15:06:35MQTT publish: topic 'zigbee2mqtt/Chauffe Eau Legrand', payload '{"action":"off","auto_mode":"off","current":null,"device_mode":"switch","led_if_on":"OFF","led_in_dark":"OFF","linkquality":109,"power":0,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":5456895,"latest_version":5456895,"state":"idle"},"update_available":null,"voltage":null}' Info 2024-05-30 15:06:35MQTT publish: topic 'zigbee2mqtt/Chauffe Eau Legrand', payload '{"action":"","auto_mode":"off","current":null,"device_mode":"switch","led_if_on":"OFF","led_in_dark":"OFF","linkquality":109,"power":0,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":5456895,"latest_version":5456895,"state":"idle"},"update_available":null,"voltage":null}' Error 2024-05-30 15:16:35Failed to configure 'Chauffe Eau Legrand', attempt 1 (Error: ZCL command 0x0004740000854ff5/1 haElectricalMeasurement.configReport([{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"activePower"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":null,"attribute":"rmsCurrent"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":null,"attribute":"rmsVoltage"}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNREPORTABLE_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:316:28) at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:771:26) at Endpoint.configureReporting (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:557:9) at setupAttributes (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:76:13) at result.configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:1488:29) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:173:21) at Configure.configure (/app/lib/extension/configure.ts:121:13) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17)) ==================================================================================================================================================================== => From verion 2441731 SW Build 0025 to 5456895 SW Buils 0053 Info 2024-05-30 14:47:33Update of 'Chauffe Eau Legrand' at 7.89%, ≈ 20 minutes remaining Info 2024-05-30 15:06:33Finished update of 'Chauffe Eau Legrand' Info 2024-05-30 15:06:33MQTT publish: topic 'zigbee2mqtt/Chauffe Eau Legrand', payload '{"auto_mode":"off","current":null,"device_mode":"switch","led_if_on":"OFF","led_in_dark":"OFF","linkquality":105,"power":0,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":5456895,"latest_version":5456895,"state":"idle"},"update_available":null,"voltage":null}' ==================================================================================================================================================================== => Update said from 0025 to 0025 (initial version 2441731)Info 2024-05-30 15:06:34MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"from":{"date_code":" \u000020220706\u0000\u0000\u0000\u0000\u0000","software_build_id":"0025"},"id":"Chauffe Eau Legrand","to":{"date_code":" \u000020220706\u0000\u0000\u0000\u0000\u0000","software_build_id":"0025"}},"status":"ok","transaction":"zz8fd-6"}' Info 2024-05-30 15:06:35MQTT publish: topic 'zigbee2mqtt/Chauffe Eau Legrand', payload '{"action":"off","auto_mode":"off","current":null,"device_mode":"switch","led_if_on":"OFF","led_in_dark":"OFF","linkquality":109,"power":0,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":5456895,"latest_version":5456895,"state":"idle"},"update_available":null,"voltage":null}' Info 2024-05-30 15:06:35MQTT publish: topic 'zigbee2mqtt/Chauffe Eau Legrand', payload '{"action":"","auto_mode":"off","current":null,"device_mode":"switch","led_if_on":"OFF","led_in_dark":"OFF","linkquality":109,"power":0,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":5456895,"latest_version":5456895,"state":"idle"},"update_available":null,"voltage":null}' Error 2024-05-30 15:16:35Failed to configure 'Chauffe Eau Legrand', attempt 1 (Error: ZCL command 0x0004740000854ff5/1 haElectricalMeasurement.configReport([{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"activePower"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":null,"attribute":"rmsCurrent"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":null,"attribute":"rmsVoltage"}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNREPORTABLE_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:316:28) at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:771:26) at Endpoint.configureReporting (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:557:9) at setupAttributes (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:76:13) at result.configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:1488:29) at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:173:21) at Configure.configure (/app/lib/extension/configure.ts:121:13) at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17)) |
Hello I still have this update issue with at the end of the update process "from 025 to 025" and no update to latest version while initilal OTA message is "installed_version":2441731,"latest_version":5456895,"". Any idea on how to fix it? Thanks |
Hi Marc, Since this thread is closed, it's probably best to open another one, for better tracking. Can you please give this a try, and if not successful open another issue for further tracking ? |
Hi Fabian, thanks it is a good idea. Could you explain how to upload a
previous firmware?
Le mer. 25 sept. 2024, 18:22, FabianMangold ***@***.***> a
écrit :
… Hi Marc,
Since this thread is closed, it's probably best to open another one, for
better tracking.
It's been quite a whilte since the last update, if none of the above
workarounds work, you could try to explicitly downgrade to an older
firmware, and attempt to update to the latest.
Also note that certain devices require some intermediate firmwares, thus
this approach "may" work for your device.
Can you please give this a try, and if not successful open another issue
for further tracking ?
Thanks,
Fabian
—
Reply to this email directly, view it on GitHub
<#328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANAXMN42POCTJ4I7EBPAHZTZYLPLBAVCNFSM6AAAAAAZMBFRIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZUGU2DMNZWGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What happened?
Interface tells me there is an update
I try to upgrade and get the message “invalid image”
What did you expect to happen?
Upgrade successfully
How to reproduce it (minimal and precise)
Press upgrade firmware
Get the message:
“ Error 2023-05-17 09:18:40Update of 'refrigerator_plug' failed (Update failed with reason: 'invalid image')”
Zigbee2MQTT version
1.30.4-1
Adapter firmware version
004a
Adapter
Legrand 067775/741811
I’ve also tried with dev version and updated index.json. Same result
thank you
The text was updated successfully, but these errors were encountered: