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

How to do OTA? #32

Closed
kubert96 opened this issue Oct 30, 2023 · 20 comments
Closed

How to do OTA? #32

kubert96 opened this issue Oct 30, 2023 · 20 comments

Comments

@kubert96
Copy link

kubert96 commented Oct 30, 2023

I have aded and flashed device on 1.0.4 and now 1.0.5 is out.
How to do ota?
Bluetooth is not working as expected.
And in zigbee2mqtt OTA doesnt register any update.

installed_version: 268709889
latest_version: 268709889

Update available: false

Firmware version: 3001-1004
Screenshot 2023-10-30 at 23 28 00
Screenshot 2023-10-30 at 23 27 46

Thanks :)

@Mostalk
Copy link

Mostalk commented Oct 31, 2023

Use this in "OTA index override"

[
     {
         "fileVersion": 268775425,
         "manufacturerCode": 4417,
         "imageType": 515,
         "url": "https://github.com/devbis/z03mmc/releases/download/1.0.5/1141-0203-10053001-z03mmc.zigbee"
     }
]

@kubert96
Copy link
Author

error 2023-10-31 07:19:44Update of 'Office Aquara Temp' failed (Device didn't respond to OTA request)

@kubert96
Copy link
Author

info 2023-10-31 08:42:28MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"Office Aquara Temp"},"error":"Update of 'Office Aquara Temp' failed (Device didn't respond to OTA request)","status":"error","transaction":"6594s-2"}'
error 2023-10-31 08:42:28Update of 'Office Aquara Temp' failed (Device didn't respond to OTA request)

@Mostalk
Copy link

Mostalk commented Oct 31, 2023

@kubert96
Hmm, it worked for me. With such an error, it helped me to reset the battery.

In any case, you can just wait until @devbis updates the OTA index repository.

@devbis
Copy link
Owner

devbis commented Oct 31, 2023

Koenkk/zigbee-OTA#386

PR to track

@Nab0y
Copy link

Nab0y commented Oct 31, 2023

One of my eight sensors also refuses to update via OTA, but it reports a slightly different error.
Info 2023-10-31 14:12:00MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"Температура влажность кухня"},"error":"Update of 'Температура влажность кухня' failed (Timeout: device did not request any image blocks)","status":"error","transaction":"j9w29-1"}' Error 2023-10-31 14:12:00Update of 'Температура влажность кухня' failed (Timeout: device did not request any image blocks)
I suspect that it's because this sensor is the only one currently connected not directly to the coordinator but to the nearest router, and the issue might not be with the sensor itself but with the router, which seems to be refusing to pass on the update through itself. Well, that's my theory, at least.
image

@kubert96
Copy link
Author

Mine is directly conected to Cordinator.

Screenshot 2023-10-31 at 12 26 07

@devbis
Copy link
Owner

devbis commented Oct 31, 2023

device did not request any image blocks

usually means that OTA image and fw version is the same. But if it is not, you may replug the battery and push OTA again

@Nab0y
Copy link

Nab0y commented Oct 31, 2023

Mine is directly conected to Cordinator.

Screenshot 2023-10-31 at 12 26 07

Yes, it's not my case. You can try to forcefully make the sensor take the firmware from a local folder.
image
image

After that, you'll need to restart Z2M since the configuration file has been modified. And once you're done, don't forget to revert everything back to its original state.

@Nab0y
Copy link

Nab0y commented Oct 31, 2023

device did not request any image blocks

usually means that OTA image and fw version is the same. But if it is not, you may replug the battery and push OTA again

That's what I intend to do, but it will take me a few hours to physically reach the sensor :)

@kubert96
Copy link
Author

OK :D

info 2023-10-31 13:05:42MQTT publish: topic 'zigbee2mqtt/Office Aquara Temp', payload '{"battery":90,"humidity":62.36,"linkquality":102,"temperature":24.06,"update":{"installed_version":268709889,"latest_version":268775425,"progress":0,"state":"updating"},"update_available":false,"voltage":2900}'

Finaly working. With Local File. :)

@Nab0y thank you :)

@adorobis
Copy link

adorobis commented Oct 31, 2023

usually means that OTA image and fw version is the same. But if it is not, you may replug the battery and push OTA again

For me some devices don't show correct fw version information in z2m (not in HA) although they were updated successfully. I have such case for 1 of 3 of the temp sensors but also some other devices (e.g. xiaomi wall switches). Re-inserting batteries and clicking "check for updates" does not help. Example below. The first two were updated OTA today, the last one was flashed straight with the latest version. Anyway it seems a z2m issue as it is not limited to those sensors.
image

@devbis
Copy link
Owner

devbis commented Oct 31, 2023

@adorobis You can read newer values for devices using dev console for a device
Screenshot 2023-10-31 at 18 06 53

@adorobis
Copy link

I get either timeout or nothing changes. Still shows the old version in z2m.

@fraddygil
Copy link

fraddygil commented Oct 31, 2023

Hey Guys , Is there any way to go back to the original firmware or any ATC firmware?
Using OTA or another option?

@Nab0y
Copy link

Nab0y commented Oct 31, 2023

Hey Guys , Is there any way to go back to the original firmware or any ATC firmware? Using OTA or another option?

https://github.com/devbis/z03mmc#flashing-firmware-with-usb-to-uart

@shirou93
Copy link

shirou93 commented Nov 1, 2023

Mine is directly conected to Cordinator.
Screenshot 2023-10-31 at 12 26 07

Yes, it's not my case. You can try to forcefully make the sensor take the firmware from a local folder. image image

After that, you'll need to restart Z2M since the configuration file has been modified. And once you're done, don't forget to revert everything back to its original state.

Thanks Your solution working :)

@beeline09
Copy link

Koenkk/zigbee-OTA#386

PR to track

Надо бы это добавить в инструкцию по откату назад. Долго ходил вокруг, да около, пока не наткнулся на это.

@Psytoshgen
Copy link

Koenkk/zigbee-OTA#386
PR to track

Надо бы это добавить в инструкцию по откату назад. Долго ходил вокруг, да около, пока не наткнулся на это.

тут все просто.... останавливаем z2m залазим в файл state.json и в latest version пишем (например файл на который хотим называется 1141-0208-01143001-ZMHOC401N) в последней версии прописываем 01143001 и после запуска z2m видим приглашение обновиться.... а вот как обновиться с альтернативной, еще не придумал...

@beeline09
Copy link

Koenkk/zigbee-OTA#386
PR to track

Надо бы это добавить в инструкцию по откату назад. Долго ходил вокруг, да около, пока не наткнулся на это.

тут все просто.... останавливаем z2m залазим в файл state.json и в latest version пишем (например файл на который хотим называется 1141-0208-01143001-ZMHOC401N) в последней версии прописываем 01143001 и после запуска z2m видим приглашение обновиться.... а вот как обновиться с альтернативной, еще не придумал...

Да, спасибо, я именно так и сделал) с альтернативной имеется ввиду не вашей?

@devbis devbis closed this as completed Feb 13, 2024
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

No branches or pull requests

9 participants