Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.19k stars 1.68k forks source link

[Feature request]: manual ota update from UI by uploading our own file. #24295

Open KipK opened 1 month ago

KipK commented 1 month ago

Is your feature request related to a problem? Please describe

Sometime we want to downgrade, sometime the ota implementation for a device prevent to use local otaindex file ( lixee.js as example ), and sometime you just use custom fw

Describe the solution you'd like

It would be a good thing having the ability to select and upload our own ota file for a device in ota page, and force an update.

Describe alternatives you've considered

This should test the ota header metas to prevent mess-up with wrong file, but this would be a good feature on UX point of view to have a file selector on each device from the ota list, and force the update with it

Additional context

image

Nerivec commented 1 month ago

What prevents local OTA index from working?

PS: that ZLinky_TIC is in the official OTA index from what I can see: https://github.com/Koenkk/zigbee-OTA/blob/b8dee47ba1ff6e79ec6f249b666b9631d71c406e/index.json#L1668

KipK commented 1 month ago

I think it's this https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/lib/ota/lixee.ts

On what I see it just download the same version whatever the Type meta is and prevent local OTA

Edit: but local OTA implemented is a bit tricky for common users, and having a selector on the UI would solve many hassles I think.