zigpy / zigpy-zigate

A library which communicates with ZiGate radios for zigpy
GNU General Public License v3.0
30 stars 18 forks source link

Question about OTA update with zigpy-zigate #76

Open Jsl-1 opened 3 years ago

Jsl-1 commented 3 years ago

Hi,

All my ota update attempt have failed with zha/zigpy-zigate. Is there a known issue with this ? Does someone had success with ota update with zigpy-zigate ?

Here is a log with hue firmware update in ota folder. All ota update stopped at file_offset = 40

https://termbin.com/n6be

Thanks !

Zigate firmware 3.1d HA core 2020.12.1 in docker

Hedda commented 3 years ago

Have you created otau_directories and also manually downloaded + added the right OTA firmware update image files yourself?

https://www.home-assistant.io/integrations/zha/#ota-firmware-updates

zigpy only automatically download OTA firmware update image files for IKEA and Ledvance so far, so not for Philips Hue devices.

If want automatic OTA updates for Hue then you need to code a provider -> https://github.com/zigpy/zigpy/issues?q=ota

If that is the case then suggest that you specifically check out -> https://github.com/zigpy/zigpy/issues/154

PS: I do not own zigate hardware myself so can not verify OTA working with zigate in ZHA but it works in zigpy-znp and bellows.

Jsl-1 commented 3 years ago

Hi @Hedda,

All OTA files are fine and detected correctly by zigpy. OTA update transfert start but is stopped very early in the process. I have tried Ikea provider and some hue update files downloaded from https://github.com/Koenkk/zigbee-OTA/blob/master/index.json

I moved to zigpy-znp for now and ota update works perfectly without changing anything. So i'm pretty sure there's something broken in the process with zigate.

I can do more test next week with a clean HA instance and my unused zigate to help.

max5962 commented 2 years ago

I think i have the same issue when trying to update a zigbee device : https://github.com/fairecasoimeme/Zlinky_TIC/issues/44

Hedda commented 2 years ago

@max5962 To rule out zigpy, any chance could also test ZHA with other compatible Zigbee Coordinator not using zigpy-zigate?

https://www.home-assistant.io/integrations/zha#compatible-hardware

@Jsl-1 for example wrote that tested a Texas Instruments based Zigbee Coordinator with "znp" which could help narrow it down:

I moved to zigpy-znp for now and ota update works perfectly without changing anything. So i'm pretty sure there's something broken in the process with zigate.

Sadly there is not yet an easy way to migrate back and forth between ZiGate and others so advice testing on a separate instance.

pdecat commented 2 years ago

A few months ago, I moved from using a Zigate v1 with zigpy-zigate to a zzh with zigpy-znp because the former had a maximum of 40 devices (I have 76 as of today), and there was no export/import migration process to Zigate v2.

I did the migration from Zigate to zzh progressively using Remote Home Assistant as one cannot have two ZHA integrations in a single HA instance.

Since then, all sort of issues I had with the Zigate v1 from time to time are gone (devices not responding to commands, unreadable attributes, and painful OTA with some devices).

Updating the firmware of the ZLinky_TIC went well twice for me.

max5962 commented 2 years ago

@pdecat can you send a link of your coordinator ? ( i will updagrade too )

pdecat commented 2 years ago

It's the CC2652R based zzh: https://electrolama.com/projects/zig-a-zig-ah/

max5962 commented 2 years ago

does 5btn ikea works with that coordinator ?

pdecat commented 2 years ago

It does, I've got 4 of them and button presses events are properly reaching ZHA and I use some in my automations. But one of the remotes is facing a quick battery drain issue since a recent firmware update I believe, despite all having the same firmware version. For now, I've replaced it by the new STYRBAR remote which uses rechargeable AAA batteries and had no apparent issue for over a month (got three of them, all fine).

PS: we should probably move this conversation elsewhere (maybe https://community.home-assistant.io/) to keep this issue on topic.