zigbee2mqtt
zigbee2mqtt copied to clipboard
OTA Failed on 067774 Legrand Device Double Gang Wireless switch
What happened?
OTA failed
What did you expect to happen?
OTA update the device...
How to reproduce it (minimal and precise)
Each time I try to update the device
Zigbee2MQTT version
1.37.0
Adapter firmware version
7.4.1 [GA]
Adapter
Dongle E Sonoff with new Ember driver
Setup
Add-on Home Assistant
Debug log
My device :
Date du firmware : 20231113
Version du firmware : 0024
Constructeur : [Legrand](https://www.zigbee2mqtt.io/supported-devices/#v=Legrand)
Modèle : [067774](https://www.zigbee2mqtt.io/devices/067774.html#legrand-067774)
Alimentation : Batterie 100%
Info 2024-05-04 23:54:31Updating 'Bouton Eclairage Cuisine' to latest firmware
Info 2024-05-04 23:54:34Update of 'Bouton Eclairage Cuisine' at 0.00%
Error 2024-05-04 23:54:34~x~> [ZCL to=22306] Failed to send request with status=MESSAGE_TOO_LONG.
@Koenkk Can you label this thread as EMBER ? Thx
Same with Ikea ICPSHC24-30EU-IL-1/ICPSHC24-10EU-IL-2. But I still use the old ezsp
driver. And, like in #22463, Z2M has to be restarted after the update attempts.
I now seemingy have managed to run a complete update, with many error messages, but the version number has not (yet?) been updated in the ui.
However, this Ikea device has not had an update available for months according to Z2M, although another device of the same kind had been updated long ago. So this is an improvement ;-).
@Loic691 Can you generate a network map and identify the path from the coordinator to the device in question (just push irrelevant devices to the side or something) and send a screenshot of that?
@Loic691 Can you generate a network map and identify the path from the coordinator to the device in question (just push irrelevant devices to the side or something) and send a screenshot of that?
Thanks for your response. Here's a capture but the button isn't attached to a router node... The button works yet... How to get a schema wich attach the wireless device to one of node ?
For information : The Legrand wireless device are the only devices wich don't ping the network regularly... I had a false joy after switching to Ember (from EZSP) because one of my legrand wireless device ping several the network without touch the push button. It stops pinging after reconfigure the button. The genPollCtrl is yet enable. Do you have any information for this ?
Another information following the update to 1.37.1 Here's the log when I try to update the double gangs wireless switch
Info 2024-05-10 23:56:17Updating 'Bouton Eclairage Cuisine' to latest firmware
Info 2024-05-10 23:56:25Update of 'Bouton Eclairage Cuisine' at 0.00%
Error 2024-05-10 23:56:25~x~> [ZCL to=22306] Failed to send request with status=MESSAGE_TOO_LONG.
So same error than witch 1.37.0
For information I will create another thread for the polling of the Legrand device.. Finaly I have one of my wireless legrand device which poll the zigbee network each hours. It's the only device which this beahviour. I have another one (same model same firmware) wich won't ping network...
Here's more detailed log
[2024-05-20 23:16:16] debug: z2m: MQTT publish: topic 'zigbee2mqtt/Sonde Garage', payload '{"battery":100,"device":{"applicationVersion":0,"dateCode":"20230105","friendlyName":"Sonde Garage","hardwareVersion":0,"ieeeAddr":"0x842712fffe41791f","manufacturerID":4742,"manufacturerName":"SONOFF","model":"SNZB-02D","networkAddress":35093,"powerSource":"Battery","softwareBuildID":"1.0.9","type":"EndDevice","zclVersion":8},"humidity":56.8,"last_seen":"2024-05-20T23:16:16+02:00","linkquality":255,"temperature":20.7}'
[2024-05-20 23:16:16] debug: z2m: Device 'Sonde Garage' requested OTA
[2024-05-20 23:16:16] debug: zh:controller:endpoint: CommandResponse 0x842712fffe41791f/1 genOta.queryNextImageResponse({"status":152}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false})
[2024-05-20 23:16:16] debug: zh:controller:endpoint: Request Queue (0x842712fffe41791f/1): send request
[2024-05-20 23:16:16] debug: zh:ember:queue: Status queue=0 priorityQueue=0.
[2024-05-20 23:16:16] debug: zh:ember: ~~~> [ZCL to=35093 apsFrame={"profileId":260,"clusterId":25,"sourceEndpoint":1,"destinationEndpoint":1,"options":4352,"groupId":0,"sequence":0} header={"frameControl":{"reservedBits":0,"frameType":1,"direction":1,"disableDefaultResponse":true,"manufacturerSpecific":false},"manufacturerCode":null,"transactionSequenceNumber":4,"commandIdentifier":2}]
[2024-05-20 23:16:16] debug: zh:ember:ezsp: ===> [FRAME: ID=52:"SEND_UNICAST" Seq=162 Len=25]
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: ---> [FRAME type=DATA frmTx=2 frmRx=0]
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: <--- [FRAME type=DATA]
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=3]
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=3 frmNum=0] Added to rxQueue
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=1]
[2024-05-20 23:16:16] debug: zh:ember:ezsp: <=== [FRAME: ID=52:"SEND_UNICAST" Seq=162 Len=7]
[2024-05-20 23:16:16] debug: zh:ember:ezsp: ~~~> [SENT type=DIRECT apsSequence=183 messageTag=112 status=SUCCESS]
[2024-05-20 23:16:16] debug: z2m: Responded to OTA request of 'Sonde Garage' with 'NO_IMAGE_AVAILABLE'
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: <--- [FRAME type=DATA]
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=3]
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=3 frmNum=1] Added to rxQueue
[2024-05-20 23:16:16] debug: zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=2]
[2024-05-20 23:16:16] debug: zh:ember:ezsp: <=== [FRAME: ID=63:"MESSAGE_SENT_HANDLER" Seq=162 Len=26]
[2024-05-20 23:16:16] debug: zh:ember:ezsp: ezspMessageSentHandler(): callback called with: [type=DIRECT], [indexOrDestination=35093], [apsFrame={"profileId":260,"clusterId":25,"sourceEndpoint":1,"destinationEndpoint":1,"options":4352,"groupId":0,"sequence":183}], [messageTag=112], [status=SUCCESS], [messageContents=19040298]
[2024-05-20 23:16:17] debug: zh:ember:uart:ash: <--- [FRAME type=DATA]
[2024-05-20 23:16:17] debug: zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=3]
[2024-05-20 23:16:17] debug: zh:ember:uart:ash: <--- [FRAME type=DATA ackNum=3 frmNum=2] Added to rxQueue
[2024-05-20 23:16:17] debug: zh:ember:uart:ash: ---> [FRAME type=ACK frmRx=3]
[2024-05-20 23:16:17] debug: zh:ember:ezsp: <=== [FRAME: ID=89:"INCOMING_ROUTE_RECORD_HANDLER" Seq=162 Len=18]
[2024-05-20 23:16:17] debug: zh:ember:ezsp: ezspIncomingRouteRecordHandler(): callback called with: [source=59157], [sourceEui=0x001788010be842c1], [lastHopLqi=116], [lastHopRssi=185], [relayCount=0], [relayList=]
[2024-05-20 23:16:22] debug: z2m: Update of 'Bouton Eclairage Cuisine' failed (Error: OTA: Device didn't respond to OTA request)
[2024-05-20 23:16:22] debug: z2m: MQTT publish: topic 'zigbee2mqtt/Bouton Eclairage Cuisine', payload '{"action":null,"battery":0,"device":{"applicationVersion":0,"dateCode":" \u000020231113\u0000\u0000\u0000\u0000\u0000","friendlyName":"Bouton Eclairage Cuisine","hardwareVersion":8,"ieeeAddr":"0x0004740000961c83","manufacturerID":4129,"manufacturerName":" Legrand","model":"067774","networkAddress":22306,"powerSource":"Battery","softwareBuildID":"0024","stackVersion":67,"type":"EndDevice","zclVersion":2},"last_seen":"2024-05-20T23:16:10+02:00","linkquality":236,"update":{"installed_version":2376703,"latest_version":2966019,"state":"available"},"update_available":null,"voltage":2300}'
[2024-05-20 23:16:22] debug: z2m: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"Bouton Eclairage Cuisine"},"error":"Update of 'Bouton Eclairage Cuisine' failed (OTA: Device didn't respond to OTA request)","status":"error","transaction":"gwmbr-4"}'
[2024-05-20 23:16:22] error: z2m: Update of 'Bouton Eclairage Cuisine' failed (OTA: Device didn't respond to OTA request)
[2024-05-20 23:16:22] debug: z2m: Error: OTA: Device didn't respond to OTA request
at requestOTA (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:314:15)
at Object.updateToLatest (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:436:21)
at OTAUpdate.onMQTTMessage (/app/lib/extension/otaUpdate.ts:273:41)
at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:174:17)
@Loic691 Can you try latest dev branch (will be in July release otherwise)? OTA was reworked, in particular, the start of update was optimized a bit, see if those Legrand devices like it better now? CC: @cocapic #22498
Thx for your help ! No time for now... I spent much time on zigbee.... ZWave is still very very best at all points ;-) I try this week end. Since I migrate Z2M debian VM to HA add on, it's a little more complex to switch on dev branch. What's is the best choice for this with HA. It's my production server...
You can swap between regular and edge
add-ons in HA (edge
is using dev branch, simply uninstall/re-install the edge
add-on to get latest dev branch).
Hi, cannot move to dev branch ... or i will be killed by someone but in 1.38.0 no progress on legrand OTA devices
regards
Hi, I tried the latest dev branch, but I have trouble to get the OTA, same problems as @cocapic
Failed to check if update available for 'Volet parents' (OTA: Device didn't respond to OTA request)
I tried to remove the battery, wait for 20sec, put back the battery and instantly click on "check for updates" while pressing a button every second for the remote not to fall asleep. No luck for now, tried 100 times !
When I check the current firmware i have "019��!��!#@8n#" and formware date "20181218"
Thanks !
@Koenkk If those Legrand are indeed on 2018 firmware, that's old Zigbee spec (could even be pre-R21 😓). Remember anything changing in OTA in newer specs that could explain the fact they don't want to answer? Looks like datecode/swbuildid values also need some tweaks for proper display on these devices.
@pipolaq Any chance that device is not connected directly to the coordinator? If it is not, try bringing it close to the coordinator and re-pairing to it specifically. Then try to OTA again (keeping it awake until it starts), see if that makes it happier.
@pipolaq Any chance that device is not connected directly to the coordinator? If it is not, try bringing it close to the coordinator and re-pairing to it specifically. Then try to OTA again (keeping it awake until it starts), see if that makes it happier.
some of them are line powered and some just near the controller same issue
@Koenkk If those Legrand are indeed on 2018 firmware, that's old Zigbee spec (could even be pre-R21 😓). Remember anything changing in OTA in newer specs that could explain the fact they don't want to answer? Looks like datecode/swbuildid values also need some tweaks for proper display on these devices.
@pipolaq Any chance that device is not connected directly to the coordinator? If it is not, try bringing it close to the coordinator and re-pairing to it specifically. Then try to OTA again (keeping it awake until it starts), see if that makes it happier.
Hi @Nerivec and thanks for the help, So any way to update this old firmware switch ? I tried to switch off every line powered device (zigbee router device) and to re-pair my wall switch very close to the coordinator, but no luck with that. I even tried to change the battery and put a new one, without success, i am still not able to upgrade my wall switch.
Regards,
It seems the OTA never starts at the device side. Does someone have the original bridge and can make a sniff when updating the device there?
https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html
I have the same issue with a more recent firmware and the Edge version of the addon.
Device didn't respond to OTA request
What's the exact procedure to help the device to initiate the OTA update? I tried to keep it alive by pressing the button every second but it did not help.
Installed version 410115
Latest version 3097091
Zigbee Model Double gangs remote switch
Zigbee Manufacturer Legrand
Description Wireless double remote switch
Firmware build date 20220912
Firmware version 001e
And I have the same device, purchased the same day, with different values:
Installed version 1982979
Latest version 3097091
Firmware build date 20220214
Firmware version 0006
still not working in 1.39.0
Looks like some of the firmware versions might have quirks. Can someone with one of these devices see what's going on in the airwaves when OTA is requested? https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html
Hello all,
Any updates on the above ? I've got the same issue where i can not update my firmware that is from 2018.
Thank you for your help,
It seems the OTA never starts at the device side. Does someone have the original bridge and can make a sniff when updating the device there?
https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html
I have the original bridge, happy to ship it if someone wants to try that.
It seems the OTA never starts at the device side. Does someone have the original bridge and can make a sniff when updating the device there? https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html
I have the original bridge, happy to ship it if someone wants to try that.
Are you able to try yourself to avoid sending it, @MichaelMure ?
If not, I'm located in France and have two outdated Legrand 412171, maybe I can try to sniff.