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 does the ota update work? #113

Open
carlituxman opened this issue Feb 5, 2024 · 17 comments
Open

How does the ota update work? #113

carlituxman opened this issue Feb 5, 2024 · 17 comments

Comments

@carlituxman
Copy link

Just release 1.1.0 and I have 1.0.6 (3001-1006) but not detect OTA update to 1.1.0.

How works detect ota update?

Thanks

@devbis
Copy link
Owner

devbis commented Feb 5, 2024

Please, track Koenkk/zigbee-OTA#440

@dhewg
Copy link

dhewg commented Feb 6, 2024

Sorry for reusing this issue, but is it possible to ota from a pvvx fw? ZHA setup here

@devbis
Copy link
Owner

devbis commented Feb 6, 2024

@dhewg You may use this file 1141-020a-11003001-z03mmc.zigbee.zip (unzip it) to flash version 1.1.0 over pvvx's firmware with a standard ZHA OTA. Haven't tried it but maybe this article will help you https://sonoff.tech/product-review/tutorial/local-configure-zigbee-ota-in-home-assistant-tutorial/

@dhewg
Copy link

dhewg commented Feb 6, 2024

Nice, thanks!
I've ota'ed before, so generally it's working. I've asked because updating only works when the manufacturer code matches? But it seems you have that covered ;)
At least it triggers an ota with a running pvvx fw and that file [zigpy.zcl] [0x0DE8:1:0x0019] Updating: Xiaomi LYWSD03MMC
Let's see if that succeeds...

@dhewg
Copy link

dhewg commented Feb 6, 2024

For the record, HA 2024.1 fails for me with a timeout, but a 2024.2 beta (which reworked zha ota) works fine:
ota

@dhewg
Copy link

dhewg commented Feb 6, 2024

I can't set some config attributes with zha:
ui
Is that a zha thing or are the missing attributes not announced or something like that?

@shirou93
Copy link

shirou93 commented Feb 6, 2024

on z2m

  • create ota.json in z2m config dir:

[
{
"url": "ota/1141-020a-11003001-z03mmc.zigbee",
"force": true
}

]

  • create ota dir in z2m config dir

  • copy 1141-020a-11003001-z03mmc.zigbee firmware to ota dir

  • On webpanel z2m SETTINGS>OTA

image

  • Restart z2m and check OTA updates.

@shirou93
Copy link

shirou93 commented Feb 6, 2024

@devbis after flash 020a frimware from You next updates will work on standard z2m ota?

after update manually to 20a firmware from this post i have erros on logs:

Zigbee2MQTT:warn 2024-02-07 01:01:06: OTA: Images currently unavailable for device 'LYWSD03MMC', hardwareVersion '14', manufacturerName Xiaomi, {"fieldControl":0,"manufacturerCode":56085,"imageType":515,"fileVersion":285224961}'

Thanks for Your work

@lbarjak
Copy link

lbarjak commented Feb 7, 2024 via email

@devbis
Copy link
Owner

devbis commented Feb 7, 2024

@lbarjak Device is sleeping. Try one again, replug the battery.

@lbarjak
Copy link

lbarjak commented Feb 7, 2024 via email

@carlituxman
Copy link
Author

Try in dev console in zigbee2mqtt: cluster -> genBasic->swBuildId and read. Maybe it's cached

@gdbd
Copy link

gdbd commented Feb 9, 2024

updated via ota one of them today, version not changes and still 20231109 3001-1006

then updated zigbee2mqtt on 1.35.3

removed custom external converter

nothing changes...

what i am doing wrong?

@thermosiphonas
Copy link

thermosiphonas commented Mar 29, 2024

For the love of me, I cannot figure out how to update these devices!

I put

zha:
zigpy_config:
ota:
otau_directory: /config/zigpy_ota

into my confifuration.yaml

download 1141-0203-11003001-z03mmc.zigbee and z03mmc.bin and put them in the zigpy_ota directory

Then in ZHA I go to Manage Zigbee Device > Clusters > Ota > Commands > Image Notify and get the error

[140151761094464]` '>=' not supported between instances of 'NoneType' and 'PayloadType'

I have also tried through ZHA Toolkit but still nothing happens

@lllluke
Copy link

lllluke commented Apr 5, 2024

I flashed two of the devices with this firmware but unfortunately I flashed the first one with the fork.

All are paired within z2m in Home Assistant but only the two are recognised correctly.

How do I perform an OTA update for the one hygrometer if it is not even listed under the OTA section?
All other deviced are listed but this one isn't. I tried my best but couldn't find a way.
After adding the custom OTA path the the z2m configuration.yaml and copying the OTA file as well as the my_index.json to config/zigbee2mqtt/ still there is no update shown. So maybe I'm searching on the wrong spot?

@devbis
Copy link
Owner

devbis commented Apr 5, 2024

@lllluke You can use this file to convert from pvvx's zigbee firmware #118 (comment)

@lllluke
Copy link

lllluke commented Apr 5, 2024

Thank you, I already tried that but the flasher doesn't find the device anymore. So I thought OTA via z2m was the only way to go.

@devbis
Could you give me a hint how to OTA?
Is an OTA Update only possible if the device is shown under Zigbee2Mqtt --> OTA? Because mine isn't shown here.

Or do I have to look under Zigbee2Mqtt --> Devices --> Device--> Developer Console?

Where do I have to add the OTA Source? /config/zigbee2mqtt/configuration.yaml? In the yamI tried to add it under the "advanced" section:
advanced: homeassistant_legacy_entity_attributes: false legacy_api: false legacy_availability_payload: false ota: zigbee_ota_override_index_location: my_index.json

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